Skip to content

Commit a6cf4f2

Browse files
Add files via upload
1 parent 35aa62a commit a6cf4f2

File tree

12 files changed

+1963
-0
lines changed

12 files changed

+1963
-0
lines changed

snort/snortgui/installer.py

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
import os, socket
2+
os.system("pip install --user tk")
3+
import tkinter as tk
4+
from tkinter import messagebox,scrolledtext
5+
6+
# the terms and conditions
7+
8+
import tkinter.simpledialog
9+
i=0
10+
while i!=1:
11+
# Prompt the user for their sudo password
12+
sudo_password = tkinter.simpledialog.askstring("Setting up", "\nCreate your SNORT administrator password: \n\n( Note: Once set, admin password cannot be changed and \npassword should be your Linux sudo password to download\npackages and perform administrator operations, incase if\nyou intend to change the password, reinstall the application.)\n", show='*')
13+
14+
#error handling if window is closed unexpectedly.
15+
if(sudo_password is None):
16+
exit()
17+
elif sudo_password:
18+
19+
os.system('mkdir resources/temp')
20+
os.system('cp -r resources/alert .')
21+
i=1
22+
23+
# Write the password to a text file named "password.txt"
24+
with open("resources/temp/admin.pass", "w") as f:
25+
f.write(sudo_password)
26+
27+
tc='''
28+
You are using the SNORT GUI developed by White Hat Cyberus!
29+
Developed by 4 students from Rajagiri School of Engineering and Technology . This is a Open Source Software, so feel free to check out the code.
30+
Github: https://github.com/WhiteHatCyberus
31+
Disclaimer:
32+
To be used for personal, educational and enterprise purposes.
33+
34+
What is SNORT?
35+
SNORT is a Open Source Intrusion Detection System / Intrusion Prevention System maintained by Cisco Talos.
36+
37+
T&C
38+
----------
39+
1. Use this software at your own risk.
40+
2. The authors of this software are not responsible for any damages caused by this software.
41+
3. This software is provided "as is" without warranty of any kind, express or implied.
42+
4. By using this software, you agree to these terms and conditions.
43+
44+
Note: This application will monitor your network in real time and access your administrative directories. For proper functioning, run the application in 'sudo' mode.
45+
Manipulating this application for malicious purposes is not entertained.
46+
47+
'''
48+
####################
49+
50+
snort=tk.Tk()
51+
snort.geometry('600x420+1+1')
52+
snort.title('Terms and Conditions')
53+
54+
##############################################################################################3333
55+
#functions
56+
def agree():
57+
result=messagebox.askokcancel("Agreement Confirmation","By clicking 'OK', you agree with the t&c")
58+
if(result==True):
59+
snort.destroy()
60+
os.system("python3 resources/resources.py")
61+
62+
def disagree():
63+
result=messagebox.askyesno("Disagreement Confirmation","To ensure proper functioning of application, accept the t&c")
64+
if(result==False):
65+
snort.destroy()
66+
#############################################################################################
67+
#text
68+
T=scrolledtext.ScrolledText(snort,width=70, height=20)
69+
T.insert(tk.INSERT,tc)
70+
T.configure(state="disabled")
71+
T.pack(pady=20)
72+
73+
#buttons
74+
agreebtn=tk.Button(snort, text="Agree", command=agree, cursor="hand2",bg="#000", relief="groove", fg="#fff",activebackground="grey72", activeforeground="#fff")
75+
disagreebtn=tk.Button(snort,text="Disagree", command=disagree, cursor="hand2",bg="#000", relief="groove", fg="#fff",activebackground="grey72", activeforeground="#fff")
76+
agreebtn.place(x=430,y=380)
77+
disagreebtn.place(x=500,y=380)
78+
snort.resizable(False,False)
79+
snort.mainloop()
80+
81+
else:
82+
messagebox.showerror("Failure", "Password field cannot be empty")
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
03/04-15:18:56.602735 [**] [1:1001:0] ping 1 detected [**] [Priority: 0] {ICMP} 192.168.1.3 -> 192.168.1.2
2+
03/04-15:18:57.621327 [**] [1:1001:0] ping 1 detected [**] [Priority: 0] {ICMP} 192.168.1.3 -> 192.168.1.2
3+
03/04-15:18:58.622643 [**] [1:1001:0] ping 1 detected [**] [Priority: 0] {ICMP} 192.168.1.3 -> 192.168.1.2
4+
03/04-15:18:59.624205 [**] [1:1001:0] ping 1 detected [**] [Priority: 0] {ICMP} 192.168.1.3 -> 192.168.1.2
5+
03/04-15:19:23.631401 [**] [1:10001:0] FTP Attempt [**] [Priority: 1] {TCP} 192.168.1.3:49856 -> 192.168.1.2:21
6+
03/04-15:19:40.459474 [**] [1:10005:0] FTP Change Directory [**] [Priority: 0] {TCP} 192.168.1.3:49856 -> 192.168.1.2:21
7+
03/04-15:19:45.394328 [**] [1:10005:0] FTP Change Directory [**] [Priority: 0] {TCP} 192.168.1.3:49856 -> 192.168.1.2:21
8+
03/04-15:19:50.232516 [**] [1:10007:1] FTP Exit [**] [Priority: 1] {TCP} 192.168.1.3:49856 -> 192.168.1.2:21
9+
03/04-15:20:15.266559 [**] [1:1234:0] SMTP connection attempt [**] [Priority: 0] {TCP} 192.168.1.3:55786 -> 192.168.1.2:25
10+
03/04-15:20:15.267502 [**] [1:1234:0] SMTP connection attempt [**] [Priority: 0] {TCP} 192.168.1.3:55786 -> 192.168.1.2:25
11+
03/04-15:20:16.560989 [**] [1:1234:0] SMTP connection attempt [**] {TCP} 192.168.1.3:55786 -> 192.168.1.2:25
12+
03/04-15:20:23.018989 [**] [1:1234:1] SMTP connection attempt [**] [Priority: 1] {TCP} 192.168.1.3:55786 -> 192.168.1.2:25
13+
03/04-15:20:23.019730 [**] [1:1234:0] SMTP connection attempt [**] [Priority: 0] {TCP} 192.168.1.3:55786 -> 192.168.1.2:25
14+
03/04-15:20:27.401388 [**] [1:1234:0] SMTP connection attempt [**] [Priority: 0] {TCP} 192.168.1.3:55786 -> 192.168.1.2:25
15+
03/04-15:20:27.402088 [**] [1:1234:0] SMTP connection attempt [**] [Priority: 0] {TCP} 192.168.1.3:55786 -> 192.168.1.2:25
16+
03/04-15:20:27.402365 [**] [1:1234:0] SMTP connection attempt [**] [Priority: 0] {TCP} 192.168.1.3:55786 -> 192.168.1.2:25
17+
03/04-15:19:45.394328 [**] [1:10005:0] FTP Change Directory [**] [Priority: 0] {TCP} 192.168.1.3:49856 -> 192.168.1.2:21
18+
03/04-15:19:45.394328 [**] [1:10006:0] ssh Change Directory [**] [Priority: 0] {TCP} 192.168.1.3:49856 -> 192.168.1.2:22
19+
03/04-15:19:50.232516 [**] [1:10007:1] FTP Exit [**] [Priority: 1] {TCP} 192.168.1.3:49856 -> 192.168.1.2:21
20+
03/04-15:19:45.394328 [**] [1:10005:0] FTP Change Directory [**] [Priority: 0] {TCP} 192.168.1.3:49856 -> 192.168.1.2:21
21+
03/04-15:19:50.232516 [**] [1:10007:1] FTP Exit [**] [Priority: 1] {TCP} 192.168.1.3:49856 -> 192.168.1.2:21
22+
03/04-15:19:45.394328 [**] [1:10005:0] FTP Change Directory [**] [Priority: 0] {TCP} 192.168.1.3:49856 -> 192.168.1.2:21
23+
03/04-15:19:50.232516 [**] [1:10007:1] FTP Exit [**] [Priority: 1] {TCP} 192.168.1.3:49856 -> 192.168.1.2:21
24+
03/04-15:20:45.119134 [**] [1:1001:0] ping 1 detected [**] [Priority: 0] {ICMP} 192.168.1.3 -> 192.168.1.2
25+
03/04-15:20:46.121197 [**] [1:1001:0] ping 1 detected [**] [Priority: 0] {ICMP} 192.168.1.3 -> 192.168.1.2
26+
03/04-15:20:47.122341 [**] [1:1001:0] ping 1 detected [**] [Priority: 0] {ICMP} 192.168.1.3 -> 192.168.1.2
27+
03/04-15:20:48.122898 [**] [1:1001:0] ping 1 detected [**] [Priority: 0] {ICMP} 192.168.1.3 -> 192.168.1.2
28+
03/04-15:20:49.123468 [**] [1:1001:0] ping 1 detected [**] [Priority: 0] {ICMP} 192.168.1.3 -> 192.168.1.2

0 commit comments

Comments
 (0)