Skip to content

Commit 6999c74

Browse files
committed
Added changelog, version file, and banner. DropEngine now prints banner when no arguments are passed via CLI.
1 parent b64e7a3 commit 6999c74

File tree

6 files changed

+41
-9
lines changed

6 files changed

+41
-9
lines changed

Changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
0.0.1 - s0lst1c3 <gabriel@solstice.sh>
2+
Initial release.

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
![DropEngine](https://raw.githubusercontent.com/s0lst1c3/dropengine/master/DropEngine%201.png)
22

3-
By [@s0lst1c3](https://twitter.com/s0lst1c3)
3+
by [@s0lst1c3](https://twitter.com/s0lst1c3)
4+
5+
Current release: [v0.0.1-alpha](https://github.com/s0lst1c3/dropengine/releases/tag/v0.0.1-alpha)
6+
7+
Supports _Python 3.7+_.
48

59
# Overview
610

__version__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
__version__ = '0.0.1'
2+
__codename__ = 'lambsauce'
3+
__author__ = '@s0lst1c3'
4+
__contact__ = 'gabriel<<<at>>solstice(dot))sh'
5+
__tagline__ = 'Malleable Payloads'

core/dispatcher_cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from argparse import ArgumentParser
88
from core.loader import Loader
99
from core.helpers.error import pcompat, picompat, perror, pnoselect, pexit
10+
from core.helpers.banner import print_banner
1011

1112
class Dispatcher:
1213

@@ -479,9 +480,12 @@ def parse_args(self):
479480

480481
else:
481482

482-
self.print_help()
483+
print_banner()
483484
sys.exit()
484485

486+
487+
488+
485489
def validate_build_args(self):
486490

487491
interface = self.dispatch['interface']

core/helpers/banner.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from __version__ import __version__, __tagline__, __author__, __contact__, __codename__
2+
3+
4+
def print_banner():
5+
6+
print('''
7+
8+
9+
██████╗ ██████╗ ██████╗ ██████╗ ███████╗███╗ ██╗ ██████╗ ██╗███╗ ██╗███████╗
10+
██╔══██╗██╔══██╗██╔═══██╗██╔══██╗██╔════╝████╗ ██║██╔════╝ ██║████╗ ██║██╔════╝
11+
██║ ██║██████╔╝██║ ██║██████╔╝█████╗ ██╔██╗ ██║██║ ███╗██║██╔██╗ ██║█████╗
12+
██║ ██║██╔══██╗██║ ██║██╔═══╝ ██╔══╝ ██║╚██╗██║██║ ██║██║██║╚██╗██║██╔══╝
13+
██████╔╝██║ ██║╚██████╔╝██║ ███████╗██║ ╚████║╚██████╔╝██║██║ ╚████║███████╗
14+
╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝╚═╝ ╚═══╝╚══════╝
15+
16+
17+
%s
18+
19+
Version: %s
20+
Codename: %s
21+
Author: %s
22+
Contact: %s
23+
24+
''' % (__tagline__, __version__, __codename__, __author__, __contact__))

dropengine.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
dispatcher = Dispatcher()
88

99
dispatcher.parse_args()
10-
dispatcher.validate_module_compatibility()
1110

1211
if dispatcher.options['master']['debug']:
1312
dispatcher.print_args()
@@ -27,9 +26,3 @@
2726
else:
2827

2928
print(payload)
30-
31-
32-
33-
34-
35-

0 commit comments

Comments
 (0)