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

Latest commit

 

History

History
25 lines (20 loc) · 954 Bytes

File metadata and controls

25 lines (20 loc) · 954 Bytes

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