Skip to content

Commit 98b6bf4

Browse files
authored
Merge pull request #21 from flashnuke/fix/import_sys
fix/add import for sys
2 parents 1a393ec + 07bfd74 commit 98b6bf4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='wifi_deauth',
5-
version='1.4',
5+
version='1.41',
66
description='WiFi deauthentication tool built with Python using the Scapy library',
77
long_description=open('README.md').read(),
88
long_description_content_type='text/markdown',

wifi_deauth/wifi_deauth.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python3
22

3+
import sys
34
import signal
45
import logging
56
import argparse
@@ -389,8 +390,8 @@ def main():
389390
printf(DELIM)
390391
restore_print()
391392

392-
if "linux" not in platform:
393-
raise Exception(f"Unsupported operating system {platform}, only linux is supported...")
393+
if "linux" not in sys.platform:
394+
raise Exception(f"Unsupported operating system {sys.platform}, only linux is supported...")
394395

395396

396397
parser = argparse.ArgumentParser(description='A simple program to perform a deauth attack')

0 commit comments

Comments
 (0)