Commit Graph

34 Commits (cd7536ecae1bf82aabaf0478d406f97a241e5f11)

Author SHA1 Message Date
Daniel Corbett c980416e9f MINOR: readfiles: check if output is ELF binary
One of the checks for /proc/self/exe returns a binary directly to
terminal, which could print a several MB file out and also can cause
pain within a terminal due to a variety of escape sequences requiring a
"reset" to be performed.

This commit adds a check for ELF magic bytes to determine whether the
output is an ELF binary and if so it avoid writing it to stdout but
still writes it a local file.

Sample output:
```
[INFO]:Reading file : /proc/self/exe
ELF binary found - not printing to stdout
[INFO]:Writing file : /proc/self/exe to 127.0.0.1/_proc_self_exe
```
2023-02-10 14:17:26 -05:00
Mili-NT 908775e397 - Added logging to file for better troubleshooting
- Swapped instances of format() to use fstrings for readability, as some of the format calls were convoluted:
    - "".join("%{0:0>2}".format(format(ord(char), "x")) for char in string) => "".join([f"%{ord(char):0>2x}" for char in string])
    - logging.info("Original file length: {}".format('{0:0{1}X}'.format(len(webshell_data),8))) => logging.info(f"Original file length: {len(webshell_data):08X}")

- Added missing 'module launched' message for SMTP
2022-03-16 14:27:30 -04:00
Swissky e57714e493 Fix false-positives in modules networkscan and portscan 2021-07-16 11:00:51 +02:00
Mateus Pimentel d01c58a524 Added the possibility to specify files via the --rflags parameter when using the readfiles module. 2021-02-02 19:42:12 -03:00
Mateus Pimentel 7055df6315 Added the possibility to specify files via the --rflags parameter when using the readfiles module. 2021-02-02 19:34:38 -03:00
xyzkab a94dd361a7 Update handlers: add http handler and httpcollaborator module 2020-01-09 00:41:09 +07:00
Swissky 3729b8b67f MODULE - AWS Lambda URL 2019-11-06 22:29:56 +01:00
Swissky 12f233e2bb MODULE - Tomcat WAR uploader 2019-07-12 01:01:28 +02:00
Swissky da86cab442 MODULE - Memcache store data 2019-07-08 23:46:48 +02:00
Swissky d57cbcce98 MODULE - Send custom data to service (nc) + examples 2019-07-08 21:17:03 +02:00
Swissky 12c13aa2f2 BUGFIX - Payload size in Redis module 2019-07-07 23:39:13 +02:00
Swissky 7ec9a6b1d0 BUGFIX - SSL warnings + https wrapper 2019-07-07 22:05:31 +02:00
Swissky f7c0c0d6de README refactoring 2019-04-08 13:24:27 +02:00
Swissky 34c79755ff MySQL - Arbitratry command 2019-04-08 11:37:17 +02:00
derpadoo 35520651e3 Removed trailing / for AWS 169.254.169.254 IPs 2019-01-30 14:47:22 -06:00
Swissky e8751bb51e MODULE - Tomcat module - bruteforce attack against manager 2018-12-29 22:14:55 +01:00
mrtc0 37a030de98
add gce module 2018-11-25 22:43:18 +09:00
Swissky a5f1f360cf MODULE - Hashicorp Consul API 2018-11-18 19:59:20 +01:00
Tarunkant Gupta e763f1777b
Update mysql.py 2018-11-16 21:36:59 +05:30
Swissky bb65e0f755 MODULE - Cloud services : alibaba, aws, digitalocean 2018-10-18 21:03:31 +02:00
Swissky aec8eaa935 MODULE - docker : extracting name, commands from the containers/images 2018-10-18 18:07:05 +02:00
Swissky 08333dfd01 MODULE - readfile : keep a backup of the files 2018-10-18 13:50:43 +02:00
Swissky baac471a09 MODULE - smbhash : force an SMB auth via UNC path 2018-10-18 13:37:28 +02:00
Swissky 37b1ddc990 MODULE - SOCKS4 Proxy via gopher:// 2018-10-18 02:11:43 +02:00
Swissky df96b080c7 README - Template and usage updated + bypass in readfiles 2018-10-17 14:52:25 +02:00
Swissky 1b176ae26d MODULE - Update modules with the args.level 2018-10-17 14:16:51 +02:00
Swissky ee74058eda MODULE - "--level" added and portscan improved 2018-10-17 14:03:43 +02:00
Swissky 7fe2eb1ba6 MODULE - Documentation header added + template module 2018-10-17 00:54:13 +02:00
Swissky 0fa1af8839 MODULE - Network scan : code cleaning 2018-10-17 00:24:03 +02:00
Swissky ed066d4622 MODULE - Network scan : HTTP ping sweep of the network 2018-10-16 22:42:39 +02:00
Swissky 65c73647f8 MODULE - SMTP service : send mail 2018-10-16 21:53:25 +02:00
Swissky 59f3d27a15 MODULE - MySQL and Zabbix services 2018-10-16 21:34:04 +02:00
Swissky 378901a948 MODULE - github enterprise + ssrf example service 2018-10-16 01:08:08 +02:00
Swissky fc08b46214 MODULE - core + redis + fastcgi + portscan + readfile 2018-10-15 21:22:04 +02:00