Skip to content

lenzzair/C2-Sever-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C2-Server-Python

Server part

Init server

from class_client import *

server_c2 = Server("IP", PORT)

server_c2.run()

# Or with ssl
server_c2.run_ssl()

Methods

Public

stop : for stop the server, Arguments: self.

Private

__client_connect : For the list of actions where a client is connected, the server attempts to determine the client's operating system. Then, it sends a payload depending on whether the client is running Linux or Windows. After that, it waits for the client's response. Arguments: self, client connection, ip of the client.

__envoi_client : For sending a request to the client specific in entry. Argument: self, client connection, ip of the client, the request no encode.

__recois_client : For receiving the client request. Arguments: self, client connection, ip of the client. Return the decode request.

Client part

Init server

from class_server import *

cible1 = Client("IP", PORT)
cible1.run()

# Or with ssl
cible1.run_ssl()

Methods

Public

stop : for stop the client. Arguments: self.

Private

__client_connect : For the list of actions where is connected to the server, the client sends the operating system. Then, it receives a payload depending on whether he's running Linux or Windows. After that, it sends to the server the response. Arguments: self.

__envoi_client : For sending a request to the server. Argument: self, the request no encode.

__recois_client : For receiving the server request. Arguments: self. Return the decode request.

Exemple of linux client

'Image for the linux client exemple'

Author

  • Lenny Lambert
  • Medrick Mariet

About

Python pour la cyber

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors