Skip to content

Golang C2 Agent PoC utilizing web and social media paltforms to issue command and control and pasting results to PasteBin

Notifications You must be signed in to change notification settings

un4ckn0wl3z/AgentSmith

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AgentSmith

Golang C2 Agent PoC utilizing web and social media paltforms to issue command and control and pasting results to PasteBin or other basic HTTP Endpoints.

Usage (Basic Setup)

  1. Set URL for issuing commands in the GetCmd handler function. (Example: a Github Gist link)
  2. Set URL for posting command output in the SendResponse handler function. (Example: A simple HTTP Server URL/IP that logs GET Request output)
  3. If using Pastebin instead of step 2, enter a valid API key to the SendtoPB handler function and turn on the flag in the SendResponse handler function.

Usage (Server)

  1. Issue a command using the following syntax:
    • (cmd)some_command(cmd)
  2. To issue more complex commands please review the official golang documentation on exec and use the following syntax to satisfy those paramters:
    • (cmd)ls(cmd)
    • (arg)-la(arg)
    • (val)/etc(val)
    • The above example constructs the command string ls -la /etc

Usage (Agent)

  1. Follow the Basic Setup usage to configure your agent
  2. Build the Agent for deployment: make agent-{os} (Be sure you have Go installed and in your path! See Makefile for types of agents you can build)
  3. Deploy to target

About

Golang C2 Agent PoC utilizing web and social media paltforms to issue command and control and pasting results to PasteBin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 55.1%
  • Makefile 22.8%
  • Python 22.1%