Skip to content

Commit

Permalink
Merge pull request #21 from flashnuke/fix/import_sys
Browse files Browse the repository at this point in the history
fix/add import for sys
  • Loading branch information
flashnuke authored Oct 18, 2024
2 parents 1a393ec + 07bfd74 commit 98b6bf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='wifi_deauth',
version='1.4',
version='1.41',
description='WiFi deauthentication tool built with Python using the Scapy library',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
Expand Down
5 changes: 3 additions & 2 deletions wifi_deauth/wifi_deauth.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3

import sys
import signal
import logging
import argparse
Expand Down Expand Up @@ -389,8 +390,8 @@ def main():
printf(DELIM)
restore_print()

if "linux" not in platform:
raise Exception(f"Unsupported operating system {platform}, only linux is supported...")
if "linux" not in sys.platform:
raise Exception(f"Unsupported operating system {sys.platform}, only linux is supported...")


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

0 comments on commit 98b6bf4

Please sign in to comment.