• 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
    bet52/125
    Sana14.05.2024
    Hajmi7,3 Mb.
    #232858
    1   ...   48   49   50   51   52   53   54   55   ...   125
    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 

    Download 7,3 Mb.
    1   ...   48   49   50   51   52   53   54   55   ...   125




    Download 7,3 Mb.
    Pdf ko'rish