From ccccf88e77c03d8ab8f120003a1b3d8fe8863ec9 Mon Sep 17 00:00:00 2001 From: doyc2 Date: Tue, 23 Nov 2021 16:51:44 +0000 Subject: [PATCH 01/12] initalise branch --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index e69de29..250d240 100644 --- a/main.py +++ b/main.py @@ -0,0 +1 @@ +# Task 1 \ No newline at end of file From ffc768cc1d486752248976b5918a9c951b127f7a Mon Sep 17 00:00:00 2001 From: "Pedro Almeida Garcia (almeidagaj)" Date: Mon, 29 Nov 2021 22:08:33 +0000 Subject: [PATCH 02/12] Add files via upload --- documentation cw2.docx | Bin 0 -> 12377 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 documentation cw2.docx diff --git a/documentation cw2.docx b/documentation cw2.docx new file mode 100644 index 0000000000000000000000000000000000000000..5612be3361ef76e99c9a1f573bcb48e1c6485663 GIT binary patch literal 12377 zcmeHtWm{ay)^_9W?oM!r5Q0O1Ai*1VcY*|WcbDMq!JWo~ySo!Kc#xoP&zv)7W^(3w z|G;zhhq}6U)xCD@>LvHCwG?Eaps@k40C)fZKmph&n6}o00078g001liJfxPGovo9J zt&^ULo4tvn4vVXeHF+L1BwY>w5hwlLie2O0cJ$GP1Dyl-nAzD+?aNe$S0{a7|meZ^eFdAHFj`0MN{StI7UNbH& z>@xcp6VPrYvaO2@@%UPEf!YaVc_7%R8hYc$lo91K@-qT()b9Y%3`sFSYWFBk(!fVt z&duBQb*Pke8hd*A1~?*A-5gA$gxUpeFIy=}eB&j@8FjNH*+Bhz?64!x!`bXa&lH7N zhm`)dfr+R){x$s20-H-!C(Z zvqHp;ucqaFQO{k=dZB|Wih=;~zuQ?ML8Fh`Bm}(O{}6~HD^w+MF#^IW$Xg9dC2Z!G zuv$ZiGl$A`yP4QqT+RqD82|VK!Xkf1sDHi6`pdY*CV>5L#z!YzYTj%D?%F0tm}GEo z<-z6-3IKR{fdVM}%_K?V2%FBpdiDWqaY$g3)N?Sgc4TG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YX+dIWXVNDouIsrw&pL@*7s-)1dgS6i*9LU1WRl+EmA_@S7JrgQoJQA4 zJCn0hgC>QktDRpK`{w2P!j_&xDW`;qg<1T%F3}i|S|)zNeMI*~QQ;Ktu4(&Qb(Jf+ zdDM~5;x^nrIkVQB$IAtPE-qugk+ zMQjsI+QB(OJb_r09y`s7;ns2F?cu@vH|)T+U!MQ?HrgI>4H*@ zCj<1G>EN{8s2;ePnS%q;s8lM?zcpV(z-&vh+X%J!0YOP9g`?O!TMcEX?wIuh0yYU3 z`xEw|7cq7`!R_j8`;`6u^#}mpXmu@1U|rc96FJ8sjCU{)+EdM*f5zJsX=D zxtjs{CwFIk#P|;R-FKWXk|tW5z7=Y_*~~Sn9#WT@=Ln%@WNp-HiCh#lZ%RtIrlC!q zDse&8eFNwfQ-~Igml0D_uQrUX*$^u)J-SD*MdZE?;5tZ~ z>=XJ_+diTv=Ks7TnDXr`9+7sgojZ>#p+Z)>GrBl zY*iU<%GBHa_+~QG@fmeD!adC!sIkG6{3Gg>)6Epcs88G@!XL%}0m%$zQU6?n{jb0N z&-NcGvK3_hF5vGKqklpHfCR9G{iS~NSKzOubbmtYz&zu>3hRD_|Glo|PcQ&r0zU2i z|5dsCD(Tl+hd*VdgXz#eRzCbH;@7;^pCT@?{w?CKS*~BtDgY zvg1F&bkzR_|H74jmGCRS`%^**&A%o5jqUx4|2qNr6Ab_iyaE9Jiw^t>|GP*2E8Lmk cFYtf+X9XD;uzLJfos0zN1~U$S=HGh%5Bbd=4*&oF literal 0 HcmV?d00001 From a78624d7ce739ac79e1a3a95e34dde139a80fc57 Mon Sep 17 00:00:00 2001 From: "Pedro Almeida Garcia (almeidagaj)" Date: Mon, 29 Nov 2021 22:09:13 +0000 Subject: [PATCH 03/12] Add files via upload still got to add some code but almost finished --- Final Version CW2.py | 229 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 229 insertions(+) create mode 100644 Final Version CW2.py diff --git a/Final Version CW2.py b/Final Version CW2.py new file mode 100644 index 0000000..5aec0ef --- /dev/null +++ b/Final Version CW2.py @@ -0,0 +1,229 @@ +def menu(): + print("The code will now check what operating system you are using") + from sys import platform + if platform == "linux" or platform == "linux2": + print("Operating system = Linux") + print("Please Select The Process You Require") + option = (input("\n1: Enumeration\n2: Privilege Escalation\n")) + if option == "1": + print("Enumeration Selected") + input("Press the enter key to continue") + print("What Method would you like to use") + option = (input( + "\n1. IP Address \n2. Username\n3. Hostname\n4. Port Scan \n5. UID 5\n6. Method 6\n")) + if option == "1": + import socket + hostname = socket.gethostname() + ipv4 = socket.gethostbyname(hostname) + + print(ipv4) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "2": + import getpass + username = getpass.getuser() + + print(username) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "3": + import socket + print(socket.gethostname()) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "4": + import socket + socket.setdefaulttimeout(2) + s = socket.socket() + target_ip = input('Enter IP in single quotes: ') + for target_port in range(1, 10000): + try: + s.connect((target_ip, target_port)) + print('Scan results for target ip: ', target_ip) + print('[+]%d/tcp open' % target_port) + except (Exception, Exception): + print('[-]%d/tcp close' % target_port) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "5": + import os + uid = os.getuid() + print(uid) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "6": + + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + + elif option == "2": + + print("Privilege Escalation") + input("Press the enter key to continue") + print("What Method would you like to use") + option = (input("\n1. Method 1\n2. Method 2\n3. Method 3\n")) + if option == "1": + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "2": + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "3": + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + else: + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + + elif platform == "win32": + print("Operating system = Windows") + print("Please Select The Process You Require") + option = (input("\n1: Enumeration\n2: Privilege Escalation\n")) + if option == "1": + print("Enumeration Selected") + input("Press the enter key to continue") + print("What Method would you like to use") + option = (input( + "\n1. IP Address \n2. Username\n3. Hostname\n4. Firewall Status\n5. Port Scan\n6. Method 6\n")) + if option == "1": + import socket + hostname = socket.gethostname() + ipv4 = socket.gethostbyname(hostname) + + print(ipv4) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "2": + import getpass + username = getpass.getuser() + + print(username) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "3": + import socket + print(socket.gethostname()) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "4": + import subprocess + subprocess.check_call('netsh advfirewall show allprofiles') + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "5": + import socket + socket.setdefaulttimeout(2) + s = socket.socket() + target_ip = input('Enter IP in single quotes: ') + for target_port in range(1, 10000): + try: + s.connect((target_ip, target_port)) + print('Scan results for target ip: ', target_ip) + print('[+]%d/tcp open' % target_port) + except (Exception, Exception): + print('[-]%d/tcp close' % target_port) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "6": + + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "2": + + print("Privilege Escalation") + input("Press the enter key to continue") + print("What Method would you like to use") + option = (input("\n1. Method 1\n2. Method 2\n3. Method 3\n")) + if option == "1": + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "2": + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "3": + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + else: + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() +menu() \ No newline at end of file From c01b0f203ead3a8af72b4f19f574fd7f02c3c4bf Mon Sep 17 00:00:00 2001 From: "Pedro Almeida Garcia (almeidagaj)" Date: Tue, 30 Nov 2021 18:36:51 +0000 Subject: [PATCH 04/12] Add files via upload --- Final Version CW2.py | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/Final Version CW2.py b/Final Version CW2.py index 5aec0ef..68c4e6d 100644 --- a/Final Version CW2.py +++ b/Final Version CW2.py @@ -1,4 +1,5 @@ def menu(): + while True: print("The code will now check what operating system you are using") from sys import platform if platform == "linux" or platform == "linux2": @@ -10,7 +11,7 @@ def menu(): input("Press the enter key to continue") print("What Method would you like to use") option = (input( - "\n1. IP Address \n2. Username\n3. Hostname\n4. Port Scan \n5. UID 5\n6. Method 6\n")) + "\n1. IP Address \n2. Username\n3. Hostname\n4. Port Scan \n5. UID 5\n6. Process Id\n")) if option == "1": import socket hostname = socket.gethostname() @@ -72,6 +73,9 @@ def menu(): elif option == "n": exit() elif option == "6": + import os + pid = os.getpid() + print(pid) print("Do you want to quit or return to menu?") option = (input("y or n\n")) @@ -85,8 +89,18 @@ def menu(): print("Privilege Escalation") input("Press the enter key to continue") print("What Method would you like to use") - option = (input("\n1. Method 1\n2. Method 2\n3. Method 3\n")) + option = (input("\n1. Admin CMD\n2. Method 2\n3. Method 3\n")) if option == "1": + import os + import sys + import win32com.shell.shell as shell + ASADMIN = 'asadmin' + + if sys.argv[-1] != ASADMIN: + script = os.path.abspath(sys.argv[0]) + params = ' '.join([script] + sys.argv[1:] + [ASADMIN]) + shell.ShellExecuteEx(lpVerb='runas', lpFile=sys.executable, lpParameters=params) + sys.exit(0) print("Do you want to quit or return to menu?") option = (input("y or n\n")) if option == "y": @@ -124,7 +138,7 @@ def menu(): input("Press the enter key to continue") print("What Method would you like to use") option = (input( - "\n1. IP Address \n2. Username\n3. Hostname\n4. Firewall Status\n5. Port Scan\n6. Method 6\n")) + "\n1. IP Address \n2. Username\n3. Hostname\n4. Firewall Status\n5. Port Scan\n6. Process ID\n")) if option == "1": import socket hostname = socket.gethostname() @@ -185,7 +199,9 @@ def menu(): elif option == "n": exit() elif option == "6": - + import os + pid = os.getpid() + print(pid) print("Do you want to quit or return to menu?") option = (input("y or n\n")) if option == "y": From b398ecf07267a92876332fae562c9eddb41878a9 Mon Sep 17 00:00:00 2001 From: "Pedro Almeida Garcia (almeidagaj)" Date: Tue, 30 Nov 2021 18:38:52 +0000 Subject: [PATCH 05/12] Add files via upload --- Final Version CW2.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Final Version CW2.py b/Final Version CW2.py index 68c4e6d..35fc8c8 100644 --- a/Final Version CW2.py +++ b/Final Version CW2.py @@ -91,16 +91,6 @@ def menu(): print("What Method would you like to use") option = (input("\n1. Admin CMD\n2. Method 2\n3. Method 3\n")) if option == "1": - import os - import sys - import win32com.shell.shell as shell - ASADMIN = 'asadmin' - - if sys.argv[-1] != ASADMIN: - script = os.path.abspath(sys.argv[0]) - params = ' '.join([script] + sys.argv[1:] + [ASADMIN]) - shell.ShellExecuteEx(lpVerb='runas', lpFile=sys.executable, lpParameters=params) - sys.exit(0) print("Do you want to quit or return to menu?") option = (input("y or n\n")) if option == "y": @@ -215,6 +205,16 @@ def menu(): print("What Method would you like to use") option = (input("\n1. Method 1\n2. Method 2\n3. Method 3\n")) if option == "1": + import os + import sys + import win32com.shell.shell as shell + ASADMIN = 'asadmin' + + if sys.argv[-1] != ASADMIN: + script = os.path.abspath(sys.argv[0]) + params = ' '.join([script] + sys.argv[1:] + [ASADMIN]) + shell.ShellExecuteEx(lpVerb='runas', lpFile=sys.executable, lpParameters=params) + sys.exit(0) print("Do you want to quit or return to menu?") option = (input("y or n\n")) if option == "y": From ece1ce327b1416d4bafdfd85bfabfe18ec1f2191 Mon Sep 17 00:00:00 2001 From: "Pedro Almeida Garcia (almeidagaj)" Date: Tue, 30 Nov 2021 19:40:36 +0000 Subject: [PATCH 06/12] Add files via upload --- documentation cw2.docx | Bin 12377 -> 13804 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/documentation cw2.docx b/documentation cw2.docx index 5612be3361ef76e99c9a1f573bcb48e1c6485663..10195ab08781345eceac154533be82bdc331a078 100644 GIT binary patch delta 7913 zcmZWu1yI~e(qB9f2rMoEg6rZMED$tkaCdk27**L4=`*BbCzS;stH`M&?wPJQ#}!mHJHlbi;xgD5a@z)i)TKrDkxKNopvy_9u0 zhB8mLO<^`0yKibr2OZjb!BHgACElb;7orNF%AZ<) zD75n~wdP@4n35XSafuiBIo%Se;vu<)#h{9rYJ7jKJUK zDB~o(Is9|txM%`n-09D(s|}}ICmxLF^^=6{<{g9^@ok5$=4n@G`TBqurf}SLq_Py| zih9mwK>`fMnirI8`;v)KpBD-jSMF9Ov-piCvE0CFXTqEhdl*kG)3%h2wdU$As&5>`!R&I$cD&MLa zQ&MuI33`k5^&+z}WM$Xs;sa{M1KsujPG(|d{gIm=$pcQ2a)-1xg6jw&?DEHpkEC08 zEMsl+!zl0~fY;W^?x45O@684c?!ii-L4v)@<{jGyq23bU>%0$(uU>E}y+dz^ZD;5j z1vrREGlg_d@`Et=gBQ8;X|3$lTQycb|9cKmqRA+wgafG*aMA&}zE3-(Su==O+2UD$tmq zN}6Qd9Bw@}aSc59dPng?tkIBgGsWadXy>W7!5a?9>$tR~SpRaYfQEiRqs%u{S zJu#L?ZVut_F*4D?#P)G0=2YU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zH~dmcWw8Hr2gq)%YT$f&_6e9>yFzPD;?q1fNo#`rTBz+A3JZ-Axkl4W6`Gmum&`L1 z%mfNDSF&9nImi{%SQ`=rA*au`5xW!>Dij`;pte5ayEZ9hY$j_H?z4nJrOA^4 z*kRU;@5I8#dPpS7fi_T|1)j8*h&2L7Lhee}Qk6NkA4p>1YhCu!uZgW@v(FNk2+K_s z$s?S87S;_?RpVpl+2HGMWF8PFTCs~B)&9gb Date: Wed, 1 Dec 2021 08:42:55 +0000 Subject: [PATCH 07/12] added linux enumeration gid fixed main --- Final Version CW2.py | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/Final Version CW2.py b/Final Version CW2.py index 35fc8c8..b84efec 100644 --- a/Final Version CW2.py +++ b/Final Version CW2.py @@ -2,6 +2,7 @@ def menu(): while True: print("The code will now check what operating system you are using") from sys import platform + import getpass if platform == "linux" or platform == "linux2": print("Operating system = Linux") print("Please Select The Process You Require") @@ -11,7 +12,7 @@ def menu(): input("Press the enter key to continue") print("What Method would you like to use") option = (input( - "\n1. IP Address \n2. Username\n3. Hostname\n4. Port Scan \n5. UID 5\n6. Process Id\n")) + "\n1. IP Address \n2. Username\n3. Hostname\n4. Port Scan \n5. UID 5\n6. Process Id\n7. GID")) if option == "1": import socket hostname = socket.gethostname() @@ -25,7 +26,6 @@ def menu(): elif option == "n": exit() elif option == "2": - import getpass username = getpass.getuser() print(username) @@ -77,6 +77,20 @@ def menu(): pid = os.getpid() print(pid) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif option == "7": + import grp, pwd + user = getpass.getuser() + groups = [g.gr_name for g in grp.getgrall() if user in g.gr_mem] + gid = pwd.getpwnam(user).pw_gid + groups.append(grp.getgrgid(gid).gr_name) + print(groups) + print("Do you want to quit or return to menu?") option = (input("y or n\n")) if option == "y": @@ -242,4 +256,7 @@ def menu(): menu() elif option == "n": exit() -menu() \ No newline at end of file + + +if __name__ == '__main__': + menu() From 4c84836a8042372741a6e9716562eec2755e5bef Mon Sep 17 00:00:00 2001 From: "Charlie Wright (wrightc11)" Date: Wed, 1 Dec 2021 09:07:28 +0000 Subject: [PATCH 08/12] Update Final Version CW2.py added output --- Final Version CW2.py | 218 +++++++++++++++++++++++++++++-------------- 1 file changed, 147 insertions(+), 71 deletions(-) diff --git a/Final Version CW2.py b/Final Version CW2.py index b84efec..e58c98e 100644 --- a/Final Version CW2.py +++ b/Final Version CW2.py @@ -2,7 +2,6 @@ def menu(): while True: print("The code will now check what operating system you are using") from sys import platform - import getpass if platform == "linux" or platform == "linux2": print("Operating system = Linux") print("Please Select The Process You Require") @@ -17,33 +16,58 @@ def menu(): import socket hostname = socket.gethostname() ipv4 = socket.gethostbyname(hostname) - - print(ipv4) - print("Do you want to quit or return to menu?") - option = (input("y or n\n")) - if option == "y": - menu() + print("\nWhich output would you like to use") + output = (input("1. Console\n2. File\n")) + if output == "1": + print(ipv4) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() elif option == "n": exit() + elif output == "2": + with open('output.txt', 'a') as output_file: + output_file.write('\n') + output_file.write(ipv4) + exit() + elif option == "2": + import getpass username = getpass.getuser() - print(username) - print("Do you want to quit or return to menu?") - option = (input("y or n\n")) - if option == "y": - menu() + print("\nWhich output would you like to use") + output = (input("1. Console\n2. File\n")) + if output == "1": + print(username) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() elif option == "n": exit() + elif output == "2": + with open('output.txt', 'a') as output_file: + output_file.write('\n') + output_file.write(username) + exit() elif option == "3": import socket - print(socket.gethostname()) - print("Do you want to quit or return to menu?") - option = (input("y or n\n")) - if option == "y": - menu() + print("\nWhich output would you like to use") + output = (input("1. Console\n2. File\n")) + if output == "1": + print(socket.gethostname()) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() elif option == "n": exit() + elif output == "2": + with open('output.txt', 'a') as output_file: + output_file.write('\n') + output_file.write(socket.gethostname()) + exit() elif option == "4": import socket socket.setdefaulttimeout(2) @@ -66,37 +90,60 @@ def menu(): import os uid = os.getuid() print(uid) - print("Do you want to quit or return to menu?") - option = (input("y or n\n")) - if option == "y": - menu() + print("\nWhich output would you like to use") + output = (input("1. Console\n2. File\n")) + if output == "1": + print(uid) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() elif option == "n": exit() + elif output == "2": + with open('output.txt', 'a') as output_file: + output_file.write('\n') + output_file.write(uid) + exit() elif option == "6": import os pid = os.getpid() - print(pid) - - print("Do you want to quit or return to menu?") - option = (input("y or n\n")) - if option == "y": - menu() - elif option == "n": - exit() - elif option == "7": - import grp, pwd - user = getpass.getuser() - groups = [g.gr_name for g in grp.getgrall() if user in g.gr_mem] - gid = pwd.getpwnam(user).pw_gid - groups.append(grp.getgrgid(gid).gr_name) - print(groups) - - print("Do you want to quit or return to menu?") - option = (input("y or n\n")) - if option == "y": - menu() + print("\nWhich output would you like to use") + output = (input("1. Console\n2. File\n")) + if output == "1": + print(pid) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() elif option == "n": exit() + elif output == "2": + with open('output.txt', 'a') as output_file: + output_file.write('\n') + print(pid, file=output_file) + exit() + elif option == "7": + import grp, pwd + user = getpass.getuser() + groups = [g.gr_name for g in grp.getgrall() if user in g.gr_mem] + gid = pwd.getpwnam(user).pw_gid + groups.append(grp.getgrgid(gid).gr_name) + print("\nWhich output would you like to use") + output = (input("1. Console\n2. File\n")) + if output == "1": + print(groups) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif output == "2": + with open('output.txt', 'a') as output_file: + output_file.write('\n') + print(groups, file=output_file) + exit() elif option == "2": @@ -144,37 +191,61 @@ def menu(): option = (input( "\n1. IP Address \n2. Username\n3. Hostname\n4. Firewall Status\n5. Port Scan\n6. Process ID\n")) if option == "1": - import socket - hostname = socket.gethostname() - ipv4 = socket.gethostbyname(hostname) - - print(ipv4) - print("Do you want to quit or return to menu?") - option = (input("y or n\n")) - if option == "y": - menu() - elif option == "n": - exit() + if option == "1": + import socket + hostname = socket.gethostname() + ipv4 = socket.gethostbyname(hostname) + print("\nWhich output would you like to use") + output = (input("1. Console\n2. File\n")) + if output == "1": + print(ipv4) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() + elif output == "2": + with open('output.txt', 'a') as output_file: + output_file.write('\n') + output_file.write(ipv4) + exit() elif option == "2": import getpass username = getpass.getuser() - print(username) - print("Do you want to quit or return to menu?") - option = (input("y or n\n")) - if option == "y": - menu() + print("\nWhich output would you like to use") + output = (input("1. Console\n2. File\n")) + if output == "1": + print(username) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() elif option == "n": exit() + elif output == "2": + with open('output.txt', 'a') as output_file: + output_file.write('\n') + output_file.write(username) + exit() elif option == "3": import socket - print(socket.gethostname()) - print("Do you want to quit or return to menu?") - option = (input("y or n\n")) - if option == "y": - menu() + print("\nWhich output would you like to use") + output = (input("1. Console\n2. File\n")) + if output == "1": + print(socket.gethostname()) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() elif option == "n": exit() + elif output == "2": + with open('output.txt', 'a') as output_file: + output_file.write('\n') + output_file.write(socket.gethostname()) + exit() elif option == "4": import subprocess subprocess.check_call('netsh advfirewall show allprofiles') @@ -205,13 +276,21 @@ def menu(): elif option == "6": import os pid = os.getpid() - print(pid) - print("Do you want to quit or return to menu?") - option = (input("y or n\n")) - if option == "y": - menu() + print("\nWhich output would you like to use") + output = (input("1. Console\n2. File\n")) + if output == "1": + print(pid) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() elif option == "n": exit() + elif output == "2": + with open('output.txt', 'a') as output_file: + output_file.write('\n') + print(pid, file=output_file) + exit() elif option == "2": print("Privilege Escalation") @@ -256,7 +335,4 @@ def menu(): menu() elif option == "n": exit() - - -if __name__ == '__main__': - menu() +menu() From 8c337e1d5a1b6c07324ae6043bd8a8451a4fbdda Mon Sep 17 00:00:00 2001 From: doyc2 Date: Wed, 1 Dec 2021 11:43:23 +0000 Subject: [PATCH 09/12] rework get gid to fit all machines --- Final Version CW2.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Final Version CW2.py b/Final Version CW2.py index b84efec..7291ba3 100644 --- a/Final Version CW2.py +++ b/Final Version CW2.py @@ -2,7 +2,7 @@ def menu(): while True: print("The code will now check what operating system you are using") from sys import platform - import getpass + import getpass, socket, os if platform == "linux" or platform == "linux2": print("Operating system = Linux") print("Please Select The Process You Require") @@ -14,7 +14,6 @@ def menu(): option = (input( "\n1. IP Address \n2. Username\n3. Hostname\n4. Port Scan \n5. UID 5\n6. Process Id\n7. GID")) if option == "1": - import socket hostname = socket.gethostname() ipv4 = socket.gethostbyname(hostname) @@ -36,7 +35,6 @@ def menu(): elif option == "n": exit() elif option == "3": - import socket print(socket.gethostname()) print("Do you want to quit or return to menu?") option = (input("y or n\n")) @@ -45,7 +43,6 @@ def menu(): elif option == "n": exit() elif option == "4": - import socket socket.setdefaulttimeout(2) s = socket.socket() target_ip = input('Enter IP in single quotes: ') @@ -63,7 +60,6 @@ def menu(): elif option == "n": exit() elif option == "5": - import os uid = os.getuid() print(uid) print("Do you want to quit or return to menu?") @@ -73,7 +69,6 @@ def menu(): elif option == "n": exit() elif option == "6": - import os pid = os.getpid() print(pid) @@ -84,12 +79,8 @@ def menu(): elif option == "n": exit() elif option == "7": - import grp, pwd - user = getpass.getuser() - groups = [g.gr_name for g in grp.getgrall() if user in g.gr_mem] - gid = pwd.getpwnam(user).pw_gid - groups.append(grp.getgrgid(gid).gr_name) - print(groups) + gid = os.getgid() + print(gid) print("Do you want to quit or return to menu?") option = (input("y or n\n")) From b2f1448ef2863aef8a5335b4a6856ee9db83d6b3 Mon Sep 17 00:00:00 2001 From: "Pedro Almeida Garcia (almeidagaj)" Date: Wed, 1 Dec 2021 11:49:08 +0000 Subject: [PATCH 10/12] Add files via upload --- Final Version CW2.py | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/Final Version CW2.py b/Final Version CW2.py index e58c98e..4df1aca 100644 --- a/Final Version CW2.py +++ b/Final Version CW2.py @@ -51,23 +51,23 @@ def menu(): output_file.write('\n') output_file.write(username) exit() - elif option == "3": - import socket - print("\nWhich output would you like to use") - output = (input("1. Console\n2. File\n")) - if output == "1": - print(socket.gethostname()) - print("Do you want to quit or return to menu?") - option = (input("y or n\n")) - if option == "y": - menu() - elif option == "n": - exit() - elif output == "2": - with open('output.txt', 'a') as output_file: - output_file.write('\n') - output_file.write(socket.gethostname()) + elif option == "3": + import socket + print("\nWhich output would you like to use") + output = (input("1. Console\n2. File\n")) + if output == "1": + print(socket.gethostname()) + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": exit() + elif output == "2": + with open('output.txt', 'a') as output_file: + output_file.write('\n') + output_file.write(socket.gethostname()) + exit() elif option == "4": import socket socket.setdefaulttimeout(2) @@ -89,7 +89,6 @@ def menu(): elif option == "5": import os uid = os.getuid() - print(uid) print("\nWhich output would you like to use") output = (input("1. Console\n2. File\n")) if output == "1": @@ -103,7 +102,7 @@ def menu(): elif output == "2": with open('output.txt', 'a') as output_file: output_file.write('\n') - output_file.write(uid) + print(uid, file=output_file) exit() elif option == "6": import os @@ -335,4 +334,4 @@ def menu(): menu() elif option == "n": exit() -menu() +menu() \ No newline at end of file From 154965c14974e6f1cf9da6fadf9dd78cbdb80d9e Mon Sep 17 00:00:00 2001 From: doyc2 Date: Wed, 1 Dec 2021 12:44:35 +0000 Subject: [PATCH 11/12] rework get gid to fit all machines --- Final Version CW2.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Final Version CW2.py b/Final Version CW2.py index 4df1aca..efac392 100644 --- a/Final Version CW2.py +++ b/Final Version CW2.py @@ -2,6 +2,7 @@ def menu(): while True: print("The code will now check what operating system you are using") from sys import platform + import os, socket if platform == "linux" or platform == "linux2": print("Operating system = Linux") print("Please Select The Process You Require") @@ -13,7 +14,6 @@ def menu(): option = (input( "\n1. IP Address \n2. Username\n3. Hostname\n4. Port Scan \n5. UID 5\n6. Process Id\n7. GID")) if option == "1": - import socket hostname = socket.gethostname() ipv4 = socket.gethostbyname(hostname) print("\nWhich output would you like to use") @@ -52,7 +52,6 @@ def menu(): output_file.write(username) exit() elif option == "3": - import socket print("\nWhich output would you like to use") output = (input("1. Console\n2. File\n")) if output == "1": @@ -69,7 +68,6 @@ def menu(): output_file.write(socket.gethostname()) exit() elif option == "4": - import socket socket.setdefaulttimeout(2) s = socket.socket() target_ip = input('Enter IP in single quotes: ') @@ -87,7 +85,6 @@ def menu(): elif option == "n": exit() elif option == "5": - import os uid = os.getuid() print("\nWhich output would you like to use") output = (input("1. Console\n2. File\n")) @@ -105,7 +102,6 @@ def menu(): print(uid, file=output_file) exit() elif option == "6": - import os pid = os.getpid() print("\nWhich output would you like to use") output = (input("1. Console\n2. File\n")) @@ -123,15 +119,19 @@ def menu(): print(pid, file=output_file) exit() elif option == "7": - import grp, pwd - user = getpass.getuser() - groups = [g.gr_name for g in grp.getgrall() if user in g.gr_mem] - gid = pwd.getpwnam(user).pw_gid - groups.append(grp.getgrgid(gid).gr_name) + gid = os.getgid() + print(gid) + + print("Do you want to quit or return to menu?") + option = (input("y or n\n")) + if option == "y": + menu() + elif option == "n": + exit() print("\nWhich output would you like to use") output = (input("1. Console\n2. File\n")) if output == "1": - print(groups) + print(gid) print("Do you want to quit or return to menu?") option = (input("y or n\n")) if option == "y": @@ -141,7 +141,7 @@ def menu(): elif output == "2": with open('output.txt', 'a') as output_file: output_file.write('\n') - print(groups, file=output_file) + print(gid, file=output_file) exit() elif option == "2": From 9052a59bd902f6c4e22c2d65bf7e467e5d2d2135 Mon Sep 17 00:00:00 2001 From: doyc2 Date: Wed, 1 Dec 2021 17:18:42 +0000 Subject: [PATCH 12/12] reverted __main__ --- Final Version CW2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Final Version CW2.py b/Final Version CW2.py index efac392..320863c 100644 --- a/Final Version CW2.py +++ b/Final Version CW2.py @@ -334,4 +334,7 @@ def menu(): menu() elif option == "n": exit() -menu() \ No newline at end of file + + +if __name__ == '__main__': + menu()