ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

Python更改本机物理地址的脚本_艾孜尔江撰

2021-02-26 19:33:31  阅读:143  来源: 互联网

标签:Python 艾孜尔江 system 物理地址 XX print 033 97m os


#
# =======================================+SCRIPT BY Alexander Ezharjan+=======================================
#
# ==========================================+date : 2020/12/12 +===============================================
#
# ================================+contact : ezhar.cnblogs.com +=====================================
#
# =============================================================================================================
import sys
import os
import time

print(
    """
XX   MMMMMMMMMMMMMMMMss"""
    """ssMMMMMMMMMMMMMMMM   XX
XX   MMMMMMMMMMMMyy''                                    ''yyMMMMMMMMMMMM   XX
XX   MMMMMMMMyy''                                            ''yyMMMMMMMM   XX
XX   MMMMMy''                                                    ''yMMMMM   XX
XX   MMMy'                                                          'yMMM   XX
XX   Mh'                                                              'hM   XX
XX   -                                                                  -   XX
XX                                                                          XX
XX   ::                                                                ::   XX
XX   MMhh.        ..hhhhhh..                      ..hhhhhh..        .hhMM   XX
XX   MMMMMh   ..hhMMMMMMMMMMhh.                .hhMMMMMMMMMMhh..   hMMMMM   XX
XX   ---MMM .hMMMMdd:::dMMMMMMMhh..        ..hhMMMMMMMd:::ddMMMMh. MMM---   XX
XX   MMMMMM MMmm''      'mmMMMMMMMMyy.  .yyMMMMMMMMmm'      ''mmMM MMMMMM   XX
XX   ---mMM ''             'mmMMMMMMMM  MMMMMMMMmm'             '' MMm---   XX
XX   yyyym'    .              'mMMMMm'  'mMMMMm'              .    'myyyy   XX
XX   mm''    .y'     ..yyyyy..  """
    "      "
    """  ..yyyyy..     'y.    ''mm   XX
XX           MN    .sMMMMMMMMMss.   .    .   .ssMMMMMMMMMs.    NM           XX
XX           N`    MMMMMMMMMMMMMN   M    M   NMMMMMMMMMMMMM    `N           XX
XX            +  .sMNNNNNMMMMMN+   `N    N`   +NMMMMMNNNNNMs.  +            XX
XX              o+++     ++++Mo    M      M    oM++++     +++o              XX
XX                                oo      oo                                XX
XX           oM                 oo          oo                 Mo           XX
XX         oMMo                M              M                oMMo         XX
XX       +MMMM                 s              s                 MMMM+       XX
XX      +MMMMM+            +++NNNN+        +NNNN+++            +MMMMM+      XX
XX     +MMMMMMM+       ++NNMMMMMMMMN+    +NMMMMMMMMNN++       +MMMMMMM+     XX
XX     MMMMMMMMMNN+++NNMMMMMMMMMMMMMMNNNNMMMMMMMMMMMMMMNN+++NNMMMMMMMMM     XX
XX     yMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMy     XX
XX   m  yMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMy  m   XX
XX   MMm yMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMy mMM   XX
XX   MMMm .yyMMMMMMMMMMMMMMMM     MMMMMMMMMM     MMMMMMMMMMMMMMMMyy. mMMM   XX
XX   MMMMd   """
    "hhhhh       odddo          obbbo        hhhh"
    """   dMMMM   XX
XX   MMMMMd             'hMMMMMMMMMMddddddMMMMMMMMMMh'             dMMMMM   XX
XX   MMMMMMd              'hMMMMMMMMMMMMMMMMMMMMMMh'              dMMMMMM   XX
XX   MMMMMMM-               ''ddMMMMMMMMMMMMMMdd''               -MMMMMMM   XX
XX   MMMMMMMM                   '::dddddddd::'                   MMMMMMMM   XX
XX   MMMMMMMM-                                                  -MMMMMMMM   XX
XX   MMMMMMMMM                                                  MMMMMMMMM   XX
XX   MMMMMMMMMy                                                yMMMMMMMMM   XX
XX   MMMMMMMMMMy.                                            .yMMMMMMMMMM   XX
XX   MMMMMMMMMMMMy.                                        .yMMMMMMMMMMMM   XX
XX   MMMMMMMMMMMMMMy.                                    .yMMMMMMMMMMMMMM   XX
XX   MMMMMMMMMMMMMMMMs.                                .sMMMMMMMMMMMMMMMM   XX
XX   MMMMMMMMMMMMMMMMMMss.           ....           .ssMMMMMMMMMMMMMMMMMM   XX
XX   MMMMMMMMMMMMMMMMMMMMNo         oNNNNo         oNMMMMMMMMMMMMMMMMMMMM   XX
"""
)


def slowprint(s):
    for c in s + "\n":
        sys.stdout.write(c)
        sys.stdout.flush()
        time.sleep(10.0 / 100)


slowprint("[!] Starting : ")
time.sleep(5)
os.system("clear")


def slowprint(s):
    for c in s + "\n":
        sys.stdout.write(c)
        sys.stdout.flush()
        time.sleep(4.0 / 100)


slowprint("    \033[91mThe Easy")


def slowprint(s):
    for c in s + "\n":
        sys.stdout.write(c)
        sys.stdout.flush()
        time.sleep(0.0 / 100)


slowprint(
    """\033[1;31m \033[91m    
       __  ___                 ________                               
      /  |/  /___ ______      / ____/ /_  ____ _____  ____ ____  _____
     / /|_/ / __ `/ ___/_____/ /   / __ \/ __ `/ __ \/ __ `/ _ \/ ___/
    / /  / / /_/ / /__/_____/ /___/ / / / /_/ / / / / /_/ /  __/ /    
   /_/  /_/\__,_/\___/      \____/_/ /_/\__,_/_/ /_/\__, /\___/_/     
                                                   /____/\033[97m             
"""
)


def slowprint(s):
    for c in s + "\n":
        sys.stdout.write(c)
        sys.stdout.flush()
        time.sleep(3.0 / 100)


slowprint(
    "\t\t                                         \033[93mBy :Lamani Hani VEGETA-LFH\033[97m"
)
print(" ")
print("1- show the current MAC-ADDRESS")
print("")
print("2- change your MAC-ADDRESS Randomly")
print("")
print("3- change your MAC-ADDRESS Customly")
print("")
print("4- reset the original MAC-ADDRESS")
print(" ")
print("5- why change MAC-ADDRESS")
print("")
mohamed = input("\033[92m[?] \033[96mmake your choise ==>")
if mohamed == ("1"):
    print(" ")
    print("\033[94m1 \033[97m- \033[91mwlan0 \033[97m( WIFI connexion)")
    print("\033[94m2 \033[97m- \033[91meth0 \033[97m( CABLE connection)")
    print(" ")
    lawla = input("   \033[95m[?] \033[97menter your \033[91mconnection type \033[97m:")
    if lawla == ("1"):
        slowprint("\033[97m")
        os.system("macchanger -s wlan0")
        print(" ")
        alla = input("press any key to cuntinue")
        os.system("clear")
        os.system("python3 mac.py")
    if lawla == ("2"):
        slowprint("\033[97m")
        os.system("macchanger -s eth0")
        print(" ")
        allah = input("press any key to cuntinue")
        os.system("clear")
        os.system("python3 mac.py")

if mohamed == ("2"):
    print(" ")
    print("\033[94m1 \033[97m- \033[91mwlan0 \033[97m( WIFI connexion)")
    print("\033[94m2 \033[97m- \033[91meth0 \033[97m( CABLE connection)")
    print(" ")
    deuxs = input("   \033[95m[?] \033[97menter your \033[91mconnection type \033[97m:")
    if deuxs == ("2"):
        slowprint("")
        os.system("ifconfig eth0 down")
        os.system("macchanger -r eth0")
        os.system("ifconfig eth0 up")
        print(" ")
        hoho = input("press any key to cuntinue")
        os.system("clear")
        os.system("python3 mac.py")
    if deuxs == ("1"):
        slowprint("")
        os.system("ifconfig wlan0 down")
        os.system("macchanger -r wlan0")
        os.system("ifconfig wlan0 up")
        print(" ")
        hoho = input("press any key to cuntinue")
        os.system("clear")
        os.system("python3 mac.py")

if mohamed == ("4"):
    print(" ")
    print("\033[94m1 \033[97m- \033[91mwlan0 \033[97m( WIFI connexion)")
    print("\033[94m2 \033[97m- \033[91meth0 \033[97m( CABLE connection)")
    print(" ")
    talta = input("   \033[95m[?] \033[97menter your \033[91mconnection type \033[97m:")
    if talta == ("2"):
        print(" ")
        slowprint("\033[97m")
        os.system("macchanger -p eth0")
        print(" ")
        lopa = input("press any key to cuntinue ")
        os.system("clear")
        os.system("python3 mac.py")
    if talta == ("1"):
        print(" ")
        slowprint("\033[97m")
        os.system("ifconfig wlan0 down")
        os.system("macchanger -p wlan0")
        os.system("ifconfig wlan0 up")
        print(" ")
        lopa = input("press any key to cuntinue ")
        os.system("clear")
        os.system("python3 mac.py")


def slowprint(s):
    for c in s + "\n":
        sys.stdout.write(c)
        sys.stdout.flush()
        time.sleep(8.0 / 100)


if mohamed == ("5"):
    print("\033[97m")
    slowprint(
        """ 
       [*] Static IP Assignment: Routers allow you to assign static IP addresses to your computers. When a device connects, it always receives a specific IP address if it has a matching MAC address

   [*] MAC Address Filtering: Networks can use MAC address filtering, only allowing devices with specific MAC addresses to connect to a network. This isn’t a great security tool because people can spoof their MAC addresses.
   
   [*] MAC Authentication: Some Internet service providers may require authentication with a MAC address and only allow a device with that MAC address to connect to the Internet. You may need to change your router or computer’s MAC address to connect.
 
   [*] Device Identification: Many airport Wi-Fi networks and other public Wi-Fi networks use a device’s MAC address to identify it. For example, an airport Wi-Fi network might offer a free 30 minutes and then ban your MAC address from receiving more Wi-Fi. Change your MAC address and you could get more Wi-Fi. (Free, limited Wi-Fi may also be tracked using browser cookies or an account system.)

   [*] Device Tracking: Because they’re unique, MAC addresses can be used to track you. When you walk around, your smartphone scans for nearby Wi-Fi networks and broadcasts its MAC address. A company named Renew London used trash bins in the city of London to track people’s movements around the city based on their MAC addresses. Apple’s iOS 8 will use a random MAC address each time it scans for nearby Wi-Fi networks to prevent this sort of tracking. 
                                                                                     Lamani-Hani

               """
    )


def slowprint(s):
    for c in s + "\n":
        sys.stdout.write(c)
        sys.stdout.flush()
        time.sleep(3.0 / 100)


if mohamed == ("3"):
    print(" ")
    print("\033[94m1 \033[97m- \033[91mwlan0 \033[97m( WIFI connexion)")
    print("\033[94m2 \033[97m- \033[91meth0 \033[97m( CABLE connection)")
    print(" ")
    rabaa = input("   \033[95m[?] \033[97menter your \033[91mconnection type \033[97m:")
    if rabaa == ("2"):
        print(" ")
        os.system("ifconfig eth0 down")
        dire = input("\033[95m[?] \033[97menter THE NEW \033[92mMAC-ADDRESS \033[97m: ")
        os.system("ifconfig eth0 down")
        os.system("macchanger -m" + (dire) + " eth0")
        os.system("ifconfig eth0 up")
        print("done")
    if rabaa == ("1"):
        os.system("ifconfig wlan0 down")
        print(" ")
        dire = input("\033[95m[?] \033[97menter THE NEW \033[92mMAC-ADDRESS \033[97m: ")
        os.system("ifconfig wlan0 down")
        os.system("macchanger -m" + (dire) + " wlan0")
        os.system("ifconfig wlan0 up")
        print("done")

标签:Python,艾孜尔江,system,物理地址,XX,print,033,97m,os
来源: https://blog.csdn.net/weixin_43867242/article/details/114148479

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有