Skip to content

👻 Socket based RAT for Windows with evasion techniques and other features for control

Notifications You must be signed in to change notification settings

exploitd/CASPER-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👻 CASPER

For educational use only!

Installation:

pip install -r requirements.txt

Commands:

* shell cmd                   <sends shell command>
* download url                <download and execute via shell>
* schtasks create/delete/run  <create/delete/run schtasks tasks>
* intercept proxy/dns         <set a proxy or change dns server>
* clone                       <clones myself to temp directory>
* infect                      <adds itself to startup via registry>
* screenshot                  <takes screenshot>
* removal                     <remove myself>
* quit                        <quit server>

C&C:

Socket control

Test the connection against google server before we connects back to command server where we are listning for incoming connections. The data between server and CASPER is encoded with base64 using a key to obfuscate it a little bit.

IRC control (under development)

Connect to IRC server and wait for commands from operator. Using nick and auth token to login on all bots that is currently in the channel if !auth command is typed in the channel. You can auth/control a single bot if you query a auth message to the bot you want to control and pass all the commands in the query as well.

Evasion techniques:

  • Lowest amount of total disk space accepted before executing
  • Lowest amount of total memory/ram accepted before executing
  • Go through all the running processes in attempt to find known processes
  • Go through files in attempt to find known DLL files and drivers
  • Go through max 20 network interfaces and match it against known MACs
  • Check if a debugger is present with IsDebuggerPresent
  • Check for user interaction before main code is executed
  • Check for known hostnames

Known issues:

  • Server only handles one connection at the same time
  • When building you might get Access Denied errors depending on OS (Rebuild until success)
  • When passing wrong or to many parameters, CASPER might disconnect and reconnect due to error/exception

About

👻 Socket based RAT for Windows with evasion techniques and other features for control

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.2%
  • Batchfile 0.8%