From 6e0011e5763636cc36b2d95122eb5864311088f2 Mon Sep 17 00:00:00 2001 From: DroidKali Date: Sat, 24 May 2025 14:34:10 +0800 Subject: [PATCH 1/2] update README.md Signed-off-by: DroidKali --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0c73d88..ad9003f 100644 --- a/README.md +++ b/README.md @@ -35,11 +35,11 @@ **Getting OneShot** ``` cd ~ - wget https://raw.githubusercontent.com/drygdryg/OneShot/master/oneshot.py + wget https://raw.githubusercontent.com/kimocoder/OneShot/master/oneshot.py ``` Optional: getting a list of vulnerable to pixie dust devices for highlighting in scan results: ``` - wget https://raw.githubusercontent.com/drygdryg/OneShot/master/vulnwsc.txt + wget https://raw.githubusercontent.com/kimocoder/OneShot/master/vulnwsc.txt ``` ## Arch Linux **Installing requirements** @@ -48,11 +48,11 @@ Optional: getting a list of vulnerable to pixie dust devices for highlighting in ``` **Getting OneShot** ``` - wget https://raw.githubusercontent.com/drygdryg/OneShot/master/oneshot.py + wget https://raw.githubusercontent.com/kimocoder/OneShot/master/oneshot.py ``` Optional: getting a list of vulnerable to pixie dust devices for highlighting in scan results: ``` - wget https://raw.githubusercontent.com/drygdryg/OneShot/master/vulnwsc.txt + wget https://raw.githubusercontent.com/kimocoder/OneShot/master/vulnwsc.txt ``` ## Alpine Linux It can also be used to run on Android devices using [Linux Deploy](https://play.google.com/store/apps/details?id=ru.meefik.linuxdeploy) @@ -67,18 +67,18 @@ Adding the testing repository: ``` **Getting OneShot** ``` - sudo wget https://raw.githubusercontent.com/drygdryg/OneShot/master/oneshot.py + sudo wget https://raw.githubusercontent.com/kimocoder/OneShot/master/oneshot.py ``` Optional: getting a list of vulnerable to pixie dust devices for highlighting in scan results: ``` - sudo wget https://raw.githubusercontent.com/drygdryg/OneShot/master/vulnwsc.txt + sudo wget https://raw.githubusercontent.com/kimocoder/OneShot/master/vulnwsc.txt ``` ## [Termux](https://termux.com/) Please note that root access is required. #### Using installer ``` - curl -sSf https://raw.githubusercontent.com/drygdryg/OneShot_Termux_installer/master/installer.sh | bash + curl -sSf https://raw.githubusercontent.com/kimocoder/OneShot_Termux_installer/master/installer.sh | bash ``` #### Manually **Installing requirements** @@ -88,7 +88,7 @@ Please note that root access is required. ``` **Getting OneShot** ``` - git clone --depth 1 https://github.com/drygdryg/OneShot OneShot + git clone --depth 1 https://github.com/kimocoder/OneShot OneShot ``` #### Running ``` From a584dad1c31191c3a490701c939d729faf556d3f Mon Sep 17 00:00:00 2001 From: DroidKali Date: Sat, 24 May 2025 14:36:21 +0800 Subject: [PATCH 2/2] update oneshot.py: fix hidden essid error 'KeyError: 'ESSID'' Signed-off-by: DroidKali --- oneshot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oneshot.py b/oneshot.py index 8056513..5b43de2 100755 --- a/oneshot.py +++ b/oneshot.py @@ -1013,14 +1013,14 @@ def colored(text, color=None): for n, network in network_list_items: number = f'{n})' model = '{} {}'.format(network['Model'], network['Model number']) - essid = truncateStr(network['ESSID'], 25) + essid = truncateStr(network.get('ESSID', 'Unknown'), 25) deviceName = truncateStr(network['Device name'], 27) line = '{:<4} {:<18} {:<25} {:<8} {:<4} {:<27} {:<}'.format( number, network['BSSID'], essid, network['Security type'], network['Level'], deviceName, model ) - if (network['BSSID'], network['ESSID']) in self.stored: + if (network['BSSID'], network.get('ESSID', 'Unknown')) in self.stored: print(colored(line, color='yellow')) elif network['WPS locked']: print(colored(line, color='red'))