Skip to content

Commit 4c1783c

Browse files
authored
Merge pull request #67 from NullArray/banner_fix
fixed banners `None` issue
2 parents f9c1578 + fb53eaa commit 4c1783c

File tree

2 files changed

+40
-13
lines changed

2 files changed

+40
-13
lines changed

autosploit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,12 +556,12 @@ def try_shodan():
556556

557557
if __name__ == "__main__":
558558

559+
logo()
560+
559561
if len(sys.argv) > 1:
560562
opts = AutoSploitParser().optparser()
561563
AutoSploitParser().single_run_args(opts)
562564

563-
logo()
564-
565565
info("Initializing AutoSploit...")
566566
info("One moment please while we check the Postgresql and Apache services...")
567567

lib/banner.py

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44

55

66
def banner_1(line_sep="#--", space=" " * 30):
7-
print("""\033[1m\033[36m{space_sep}_____ _ _____ _ _ _
7+
banner = """\033[1m\033[36m{space_sep}_____ _ _____ _ _ _
88
{sep1}Author : Vector/NullArray | _ |_ _| |_ ___| __|___| |___|_| |_
99
{sep1}Twitter: @Real__Vector | | | | _| . |__ | . | | . | | _|
1010
{sep1}Type : Mass Exploiter |__|__|___|_| |___|_____| _|_|___|_|_|
1111
{sep1}Version: {v_num} |_|
1212
##############################################\033[0m
13-
""".format(sep1=line_sep, v_num=VERSION, space_sep=space))
13+
""".format(sep1=line_sep, v_num=VERSION, space_sep=space)
14+
return banner
1415

1516

1617
def banner_2():
17-
print(r"""
18+
banner = r"""
1819
{blue}--+{end} {red}Graffiti the world with exploits{end} {blue}+--{end}
1920
{blue}--+{end} __ ____ {blue}+--{end}
2021
{blue}--+{end} / _\ / ___) {blue}+--{end}
@@ -23,13 +24,14 @@ def banner_2():
2324
{blue}--+{end} {red}AutoSploit{end} {blue}+--{end}
2425
{blue}--+{end} NullArray/Eku {blue}+--{end}
2526
{blue}--+{end} v({red}{vnum}{end}) {blue}+--{end}
26-
""".format(vnum=VERSION, blue="\033[36m", red="\033[31m", end="\033[0m"))
27+
""".format(vnum=VERSION, blue="\033[36m", red="\033[31m", end="\033[0m")
28+
return banner
2729

2830

2931
def banner_3():
30-
print(r'''#SploitaSaurus Rex{green}
31-
O_
32-
/ >
32+
banner = r'''#SploitaSaurusRex{green}
33+
O_ RAWR!!
34+
/ >
3335
- > ^\
3436
/ > ^ /
3537
(O) > ^ / / / /
@@ -53,11 +55,12 @@ def banner_3():
5355
\ \__ | \__
5456
/\____=\ /\_____=\{end} v({vnum})'''''.format(
5557
green="\033[1m\033[32m", end="\033[0m", vnum=VERSION
56-
))
58+
)
59+
return banner
5760

5861

5962
def banner_4():
60-
print(r"""
63+
banner = r"""
6164
{red} .__. , __. . , {end}
6265
{red} [__]. .-+- _ (__ ._ | _ *-+- {end}
6366
{red} | |(_| | (_).__)[_)|(_)| | {end}
@@ -75,13 +78,37 @@ def banner_4():
7578
{blue}-----+v({red}{vnum}{end}) +-----{end}
7679
{blue}-----------NullArray/Eku----------{end}
7780
{blue}__________________________________{end}
78-
""".format(vnum=VERSION, blue="\033[36m", red="\033[31m", end="\033[0m"))
81+
""".format(vnum=VERSION, blue="\033[36m", red="\033[31m", end="\033[0m")
82+
return banner
83+
84+
85+
def banner_5():
86+
banner = r"""
87+
{red}. ' .{end}
88+
{red}' .( '.) '{end}
89+
{white}_{end} {red}('-.)' (`'.) '{end}
90+
{white}|0|{end}{red}- -( #autosploit ){end}
91+
{grey}.--{end}{white}`+'{end}{grey}--.{end} {red}. (' -,).(') .{end}
92+
{grey}|`-----'|{end} {red}(' .) - ('. ){end}
93+
{grey}| |{end} {red}. (' `. ){end}
94+
{grey}| {red}.-.{end} {grey}|{end} {red}` . `{end}
95+
{grey}| {red}(0.0){end}{grey} |{end}
96+
{grey}| {red}>|=|<{end} {grey}|{end}
97+
{grey}| {red}`"`{end}{grey} |{end}
98+
{grey}| |{end}
99+
{grey}| |{end}
100+
{grey}`-.___.-'{end}
101+
v({red}{version}{end})
102+
""".format(end="\033[0m", grey="\033[36m", white="\033[37m", version=VERSION, red="\033[31m")
103+
return banner
104+
79105

80106
def banner_main():
81107
"""
82108
grab a random banner each run
83109
"""
84110
banners = [
85-
banner_4 banner_3, banner_2, banner_1
111+
banner_5, banner_4,
112+
banner_3, banner_2, banner_1
86113
]
87114
return random.choice(banners)()

0 commit comments

Comments
 (0)