Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kirula0626 committed Nov 18, 2024
1 parent 1b09d67 commit 5d77f2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions Python_Files/pickler.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ def main():
print("Usage: python3 pickler.py <filename>")
sys.exit(1)

filename = sys.argv[1]
result = detect_evil_twin(filename)
# filename = sys.argv[1]
# result = detect_evil_twin(filename)

# Write the result to a JSON file in the Captures directory
json_output_filepath = os.path.join(BASE_DIR, "../Captures", "flask_api.json")
with open(json_output_filepath, 'w') as json_file:
json.dump(result, json_file, indent=4)
# # Write the result to a JSON file in the Captures directory
# json_output_filepath = os.path.join(BASE_DIR, "../Captures", "flask_api.json")
# with open(json_output_filepath, 'w') as json_file:
# json.dump(result, json_file, indent=4)

print(f"\nOutput written to {json_output_filepath}")
# print(f"\nOutput written to {json_output_filepath}")

if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion wifi_captuer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PIDFILE="/tmp/evil_twin/wifi_captuer_script.pid"

# Ensure the directory exists
#mkdir -p "$(dirname "$PIDFILE")"
mkdir -p "$(dirname "$PIDFILE")"

# Check if the PID file exists and the process is still running
if [ -f "$PIDFILE" ] && kill -0 $(cat "$PIDFILE") 2>/dev/null; then
Expand Down

0 comments on commit 5d77f2b

Please sign in to comment.