Skip to content
/ pyc2 Public

simple c2 written in python to demonstrate security concepts

Notifications You must be signed in to change notification settings

r00k5A58/pyc2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pyc2

simple c2 written in python2 to demonstrate security concepts. use icmp echo requests and replies to trade base64 encoded commands and replies. Video explaining some of the security concepts and implementation decisions: https://www.youtube.com/watch?v=DHrEn7oK9vQ

requires scapy (pip install scapy)

on a client computer, enter the c2 IP address in the c2_config.py file.

command_list.client id should be a list of commands, one per line, exactly how you would enter it into the cli. use echo >> command_list to add new commands to the file:

echo "cat /etc/passwd" >> command_list.client id

probably won't work on windows (i tried to get scapy running on windows 10 and gave up, you might have better success)

c2 server requires that icmp echo packets are ignored by the kernel:

in linux: echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all

About

simple c2 written in python to demonstrate security concepts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages