Files
mango/tools/socks.kexttool

28 lines
450 B
Plaintext
Raw Normal View History

2023-04-04 09:59:25 +01:00
#!/usr/bin/env python3
# vim: ft=python
# -*- mode: python -*-
import glob
2023-04-05 18:53:10 +01:00
import inquirer
import os
2023-04-05 18:53:10 +01:00
import sys
from kexttool import kext, scan, select
2023-04-05 18:53:10 +01:00
if len(sys.argv) < 2:
print('usage: {} <command>'.format(sys.argv[0]))
exit(0)
2023-04-05 18:53:10 +01:00
cmd = sys.argv[1]
2023-04-05 18:53:10 +01:00
commands = {
'select': select.select_kexts,
'list': scan.list_all
}
2023-04-05 18:53:10 +01:00
if cmd not in commands:
print('E: unknown command \'{}\''.format(cmd))
exit(-1)
2023-04-05 18:53:10 +01:00
commands[cmd]()