-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
38 lines (28 loc) · 1.09 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
################################################################
# Licensed under the BSD 3-Clause License #
# See https://github.com/knokbak/cyber-tools/blob/main/LICENSE #
################################################################
# Utilities for knokbak/cyber-tools
# OK - 27 Sep 2023
from functools import partial
from os import geteuid
from utils import prompt_menu
from module_arp import main as arp_main
def main():
print(f'''
Tools by Ollie Killean
################################################################
# Copyright (c) 2023; Licensed under the BSD 3-Clause License #
# See https://github.com/knokbak/cyber-tools/blob/main/LICENSE #
################################################################
Press Ctrl+C to exit from a mode.
Press Ctrl+Z to quit the program.
''')
if geteuid() != 0:
raise Exception('This script must be run as root.')
interface = input('Enter an interface [eth0]: ').lower() or 'eth0'
prompt_menu('Main Menu', [
('ARP', partial(arp_main, interface)),
])
if __name__ == '__main__':
main()