0xrick / c2 Goto Github PK
View Code? Open in Web Editor NEWA basic c2 / agent.
Home Page: https://0xrick.github.io/misc/c2/
A basic c2 / agent.
Home Page: https://0xrick.github.io/misc/c2/
Hi there,
Thank you for your time with this! Its really good!! The exe and powershell doesnt get detected by Windows Defender and Symantec Endpoint. Are you doing any syscalls against the APIs?
Also, Would love a download feature to data exfiltrate off the c2! That would be handy.
I exit the C2 Program incorrectly and an agent is currently still running with no connection back.
I try to remove it, however it gives me an error
(agents)::> remove RGMFPD
Traceback (most recent call last):
File "/home/kali/c2/c2.py", line 31, in
main()
File "/home/kali/c2/c2.py", line 28, in main
home()
File "./core/menu.py", line 219, in home
evHome(command, args)
File "./core/menu.py", line 138, in evHome
agentsHelper()
File "./core/menu.py", line 181, in agentsHelper
home()
File "./core/menu.py", line 219, in home
evHome(command, args)
File "./core/menu.py", line 140, in evHome
payloadsHelper()
File "./core/menu.py", line 203, in payloadsHelper
evPayloads(command, args)
File "./core/menu.py", line 121, in evPayloads
home()
File "./core/menu.py", line 219, in home
evHome(command, args)
File "./core/menu.py", line 138, in evHome
agentsHelper()
File "./core/menu.py", line 181, in agentsHelper
home()
File "./core/menu.py", line 219, in home
evHome(command, args)
File "./core/menu.py", line 136, in evHome
listenersHelper()
File "./core/menu.py", line 159, in listenersHelper
home()
File "./core/menu.py", line 219, in home
evHome(command, args)
File "./core/menu.py", line 140, in evHome
payloadsHelper()
File "./core/menu.py", line 203, in payloadsHelper
evPayloads(command, args)
File "./core/menu.py", line 121, in evPayloads
home()
File "./core/menu.py", line 219, in home
evHome(command, args)
File "./core/menu.py", line 138, in evHome
agentsHelper()
File "./core/menu.py", line 187, in agentsHelper
evAgents(command, args)
File "./core/menu.py", line 114, in evAgents
interactWithAgent(args)
File "./core/agentshelpers.py", line 119, in interactWithAgent
agents[name].interact()
File "./core/agent.py", line 174, in interact
self.ev(command, args)
File "./core/agent.py", line 158, in ev
self.QuitandRemove()
File "./core/agent.py", line 122, in QuitandRemove
menu.home()
File "./core/menu.py", line 219, in home
evHome(command, args)
File "./core/menu.py", line 138, in evHome
agentsHelper()
File "./core/menu.py", line 187, in agentsHelper
evAgents(command, args)
File "./core/menu.py", line 110, in evAgents
removeAgent(args)
File "./core/agentshelpers.py", line 95, in removeAgent
taskAgentToQuit(name)
File "./core/agentshelpers.py", line 157, in taskAgentToQuit
agents[name].Quit()
File "./core/agent.py", line 128, in Quit
self.writeTask("quit")
File "./core/agent.py", line 44, in writeTask
task = ENCRYPT(task, self.key)
File "./core/encryption.py", line 48, in ENCRYPT
enc = c.encrypt(PLAIN)
File "./core/encryption.py", line 18, in encrypt
iv = Random.new().read(AES.block_size)
File "/usr/local/lib/python3.9/dist-packages/Crypto/Random/_UserFriendlyRNG.py", line 202, in read
return self._singleton.read(bytes)
File "/usr/local/lib/python3.9/dist-packages/Crypto/Random/_UserFriendlyRNG.py", line 178, in read
return _UserFriendlyRNG.read(self, bytes)
File "/usr/local/lib/python3.9/dist-packages/Crypto/Random/_UserFriendlyRNG.py", line 129, in read
self._ec.collect()
File "/usr/local/lib/python3.9/dist-packages/Crypto/Random/_UserFriendlyRNG.py", line 77, in collect
t = time.clock()
AttributeError: module 'time' has no attribute 'clock'
Could you please assist?
when i try this command
shell cd ..
shell "cd .."
i'm not able to change directory
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.