• Changing Your IP Address To change your IP address, enter ifconfig
  • Changing Your Network Mask and Broadcast Address
  • Changing Your Network Information




    Download 7,3 Mb.
    Pdf ko'rish
    bet47/115
    Sana27.11.2023
    Hajmi7,3 Mb.
    #106243
    1   ...   43   44   45   46   47   48   49   50   ...   115
    Bog'liq
    linuxbasicsforhackers

    Changing Your Network Information
    Being able to change your IP address and other network information is a 
    useful skill because it will help you access other networks while appearing 
    as a trusted device on those networks. For example, in a denial-of-service 
    (DoS) attack, you can spoof your IP so that that the attack appears to come 
    from another source, thus helping you evade IP capture during forensic 
    analysis. This is a relatively simple task in Linux, and it’s done with the 
    ifconfig
    command.
    Changing Your IP Address
    To change your IP address, enter 
    ifconfig
    followed by the interface you want 
    to reassign and the new IP address you want assigned to that interface. For 
    example, to assign the IP address 192.168.181.115 to interface 
    eth0
    , you would 
    enter the following:
    kali >ifconfig eth0 192.168.181.115
    kali >
    When you do this correctly, Linux will simply return the command 
    prompt and say nothing. This is a good thing! 


    32
    Chapter 3
    Then, when you again check your network connections with 
    ifconfig

    you should see that your IP address has changed to the new IP address you 
    just assigned.
    Changing Your Network Mask and Broadcast Address
    You can also change your network mask (netmask) and broadcast address 
    with the 
    ifconfig
    command. For instance, if you want to assign that same 
    eth0
    interface with a netmask of 255.255.0.0 and a broadcast address of 
    192.168.1.255, you would enter the following:
    kali >ifconfig eth0 192.168.181.115 netmask 255.255.0.0 broadcast 192.168.1.255
    kali >
    Once again, if you’ve done everything correctly, Linux responds with a 
    new command prompt. Now enter 
    ifconfig
    again to verify that each of the 
    parameters has been changed accordingly.

    Download 7,3 Mb.
    1   ...   43   44   45   46   47   48   49   50   ...   115




    Download 7,3 Mb.
    Pdf ko'rish