Skip to content

Commit 8220739

Browse files
Hack-Framework
Hack-Framework v1.4.1
1 parent 08d6000 commit 8220739

1 file changed

Lines changed: 153 additions & 0 deletions

File tree

hack

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
#!/usr/bin/python3
2+
# This code write by Mr.nope
3+
# Hack-Framework v1.4.1
4+
# MIT License
5+
6+
# Copyright (c) 2021 Mr.Programmer
7+
8+
# Permission is hereby granted, free of charge, to any person obtaining a copy
9+
# of this software and associated documentation files (the "Software"), to deal
10+
# in the Software without restriction, including without limitation the rights
11+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
# copies of the Software, and to permit persons to whom the Software is
13+
# furnished to do so, subject to the following conditions:
14+
15+
# The above copyright notice and this permission notice shall be included in all
16+
# copies or substantial portions of the Software.
17+
18+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
# SOFTWARE.
25+
from modules import banner
26+
import os
27+
import time
28+
import webbrowser
29+
import sys
30+
try:
31+
from colorama import Fore,init
32+
except:
33+
os.system("pip install colorama")
34+
try:
35+
import socket
36+
except:
37+
os.system("pip install socket")
38+
init()
39+
class color:
40+
green = '\033[92m'
41+
red = '\033[91m'
42+
End = '\033[0m'
43+
line = '\033[4m'
44+
blue = '\033[96m'
45+
darkblue = '\033[34m'
46+
org = '\033[33m'
47+
#####################################################
48+
#----------------------------------------------
49+
opt = color.line + "\nHack/>" + color.End
50+
def cls():
51+
os.system("clear")
52+
def bannermenu():
53+
cls()
54+
banner.banner()
55+
main()
56+
def main():
57+
try:
58+
host = ""
59+
packet = ""
60+
try:
61+
choose = input(opt)
62+
except:
63+
sys.exit()
64+
choose = choose.split()
65+
while True:
66+
if choose == []:
67+
pass
68+
elif choose[0] == 'options':
69+
print("""
70+
----------------------------------
71+
HOST |
72+
----------------------------------
73+
Packet |
74+
----------------------------------""")
75+
elif choose[0] == 'cls':
76+
cls()
77+
elif choose[0] == 'help':
78+
print("""
79+
-----------------------------------------------------
80+
Command | Work |
81+
-----------------------------------------------------
82+
clear | clear screen |
83+
cls | clear screen |
84+
reset | reset ip,port,packet |
85+
set | set host,port,packet |
86+
banner | Hack-Framework ascii art |
87+
exit | exit Hack-Framework |
88+
quit | quit Hack-Framework |
89+
info | Hack-Framework Developer :) |
90+
-----------------------------------------------------""")
91+
elif choose[0] == 'info':
92+
banner.info()
93+
elif choose[0] == 'banner':
94+
banner.banner()
95+
elif choose[0] == 'clear':
96+
cls()
97+
elif choose[0] == 'exit':
98+
banner.ext()
99+
elif choose[0] == 'quit':
100+
banner.ext()
101+
elif choose[0] == "set":
102+
if len(choose) < 3:
103+
print("""
104+
-------------------------
105+
set [Otions] |
106+
-------------------------""")
107+
else:
108+
if choose[1].lower() == "host":
109+
host = choose[2]
110+
print("HOST ==> " + choose[2])
111+
elif choose[1].lower() == "packet":
112+
packet = choose[2]
113+
print("packet ==> " + choose[2])
114+
else:
115+
print("options is Not Found!")
116+
elif choose[0] == "run":
117+
os.system("ping -w " + packet + " " + host)
118+
elif choose[0] == 'exploit':
119+
os.system("ping -w " + packet + " " + host)
120+
elif choose[0] == 'host':
121+
print("""
122+
--------------------------------
123+
""" + host + """
124+
--------------------------------""")
125+
elif choose[0] == 'developer':
126+
print(Fore.BLUE + "\n[" + Fore.YELLOW + "~" + Fore.BLUE + "] " + Fore.GREEN + "Open " + Fore.RED + "Mr.nope" + Fore.GREEN + " Github..." + color.End)
127+
webbrowser.open_new("https://github.com/mrprogrammer2938")
128+
print("\n")
129+
print("------------------\n")
130+
elif choose[0] == 'packet':
131+
print("""
132+
--------------------------------
133+
""" + packet + """
134+
--------------------------------""")
135+
elif choose[0] == 'reset':
136+
host = None
137+
packet = None
138+
else:
139+
print(color.green + "[" + color.red + "~" + color.green + "] " + color.End + choose[0] + " " + color.red + "Not Found!" + color.End)
140+
try:
141+
choose = input(opt)
142+
except:
143+
sys.exit()
144+
choose = choose.split()
145+
except KeyboardInterrupt:
146+
print("\nCtrl + C")
147+
print("\nExiting...")
148+
if __name__ == '__main__':
149+
try:
150+
bannermenu()
151+
except KeyboardInterrupt:
152+
print("\nCtrl + C")
153+
print("Exit Command: exit,quit")

0 commit comments

Comments
 (0)