Forum Replies Created
- AuthorPosts
- pranetkulParticipant
Apologies I looked at the file name. My PyCharm version is 2024.1.3
pranetkulParticipantThe pycharm version I am using is 2.5.1.34629. have attached a screenshot which I do not understand at all and I believe is related to my issue
Attachments:
You must be logged in to view attached files.pranetkulParticipantHi these are the settings I used for kali linux
Attachments:
You must be logged in to view attached files.pranetkulParticipantI have attached the file of a screenshot of my network used to connect to Kali Linux. Please let me know if you meant something else
Attachments:
You must be logged in to view attached files.pranetkulParticipantHi my host OS is WIndows 11, 16GB RAM, 155GB free space, i7-1800H processor
pranetkulParticipantcan you let me know please what I should do
pranetkulParticipantimg1
https://drive.google.com/file/d/1PiVxpWo3JIqQpZMF81ivlA_Qs29DLmac/view?usp=sharing
I still get error when I change the codepranetkulParticipant#!/usr/bin/env python import re import subprocess import optparse def get_args(): parser = optparse.OptionParser() parser.add_option("-i", "--interface", dest="interface", help="Interface to change its MAC address") parser.add_option("-m", "--mac", dest="new_mac", help="New mac address") (options, arguments) = get_args() if not options.interface: parser.error("[-] Please specify an interface, use --help for more info.") elif not options.new_mac: parser.error("[-] Please specify a new mac, use --help for more info.") return options def change_mac(interface, new_mac): print("[+] Changing MAC address for " + interface + " to " + new_mac) subprocess.call(["ifconfig", interface, "down"]) subprocess.call(["ifconfig", interface, "hw", "ether", new_mac]) subprocess.call(["ifconfig", interface, "up"]) def get_current_mac(interface): ifconfig_result = subprocess.check_output("ifconfig", interface) print(ifconfig_result) mac_address_search_result = re.search(r"\w\w:\w\w:\w\w:\w\w:\w\w:\w\w", str(ifconfig_result)) if mac_address_search_result: return mac_address_search_result.group(0) else: print("[-] Could not read MAC address.") options = get_args() current_mac = get_current_mac(options.interface) print("Current MAC = " + str(current_mac)) change_mac(options.interface, options.new_mac) current_mac = get_current_mac(options.interface) if current_mac == options.new_mac: print("[+] MAC address was successfully changed to " + current_mac) else: print("[-] MAC address did not get changed")
pranetkulParticipantHopefully, the images work now
pranetkulParticipantpranetkulParticipantpranetkulParticipantSorry if you can’t see the image. I cannot figure out how to send them
pranetkulParticipantfile:///root/Pictures/Screenshot%20from%202021-06-09%2022-41-11.png
file:///root/Pictures/Screenshot%20from%202021-06-09%2022-41-16.png
- AuthorPosts