DNS spoofing in Kali Linux [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-6
down vote

favorite













This question already has an answer here:



  • Why is Kali Linux so hard to set up? Why won't people help me?

    5 answers



I'm trying to learn some stuff about DNSspoofing, but it didn't work well for me. Here's what i have done. step 1 : turn my NIC into promisc mode using the following command



ifconfig wlan0 promisc


step 2 : make a hosts file for dnsspoof named : /usr/share/dsniff/dnsspoof.hosts (this is suggested in the man page of dnsspoof ) here's what's i typed inside the file



github.com 192.168.1.102
*.github.com 192.168.1.102
www.github.com 192.168.1.102


step 3: run dnsspod with the following command



dnsspoof -i wlan0 -f /usr/share/dsniff/dnsspoof.hosts


then i get this output :
image from terminal



everything seems okay to me, but whenever i tried visiting github from my machine or other machine in my network, it didn't go to the given adress 192.168.1.102










share|improve this question













marked as duplicate by Ipor Sircer, Stephen Harris, Rui F Ribeiro linux
Users with the  linux badge can single-handedly close linux questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Sep 8 at 13:58


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















    up vote
    -6
    down vote

    favorite













    This question already has an answer here:



    • Why is Kali Linux so hard to set up? Why won't people help me?

      5 answers



    I'm trying to learn some stuff about DNSspoofing, but it didn't work well for me. Here's what i have done. step 1 : turn my NIC into promisc mode using the following command



    ifconfig wlan0 promisc


    step 2 : make a hosts file for dnsspoof named : /usr/share/dsniff/dnsspoof.hosts (this is suggested in the man page of dnsspoof ) here's what's i typed inside the file



    github.com 192.168.1.102
    *.github.com 192.168.1.102
    www.github.com 192.168.1.102


    step 3: run dnsspod with the following command



    dnsspoof -i wlan0 -f /usr/share/dsniff/dnsspoof.hosts


    then i get this output :
    image from terminal



    everything seems okay to me, but whenever i tried visiting github from my machine or other machine in my network, it didn't go to the given adress 192.168.1.102










    share|improve this question













    marked as duplicate by Ipor Sircer, Stephen Harris, Rui F Ribeiro linux
    Users with the  linux badge can single-handedly close linux questions as duplicates and reopen them as needed.

    StackExchange.ready(function()
    if (StackExchange.options.isMobile) return;

    $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
    var $hover = $(this).addClass('hover-bound'),
    $msg = $hover.siblings('.dupe-hammer-message');

    $hover.hover(
    function()
    $hover.showInfoMessage('',
    messageElement: $msg.clone().show(),
    transient: false,
    position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
    dismissable: false,
    relativeToBody: true
    );
    ,
    function()
    StackExchange.helpers.removeMessages();

    );
    );
    );
    Sep 8 at 13:58


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
















      up vote
      -6
      down vote

      favorite









      up vote
      -6
      down vote

      favorite












      This question already has an answer here:



      • Why is Kali Linux so hard to set up? Why won't people help me?

        5 answers



      I'm trying to learn some stuff about DNSspoofing, but it didn't work well for me. Here's what i have done. step 1 : turn my NIC into promisc mode using the following command



      ifconfig wlan0 promisc


      step 2 : make a hosts file for dnsspoof named : /usr/share/dsniff/dnsspoof.hosts (this is suggested in the man page of dnsspoof ) here's what's i typed inside the file



      github.com 192.168.1.102
      *.github.com 192.168.1.102
      www.github.com 192.168.1.102


      step 3: run dnsspod with the following command



      dnsspoof -i wlan0 -f /usr/share/dsniff/dnsspoof.hosts


      then i get this output :
      image from terminal



      everything seems okay to me, but whenever i tried visiting github from my machine or other machine in my network, it didn't go to the given adress 192.168.1.102










      share|improve this question














      This question already has an answer here:



      • Why is Kali Linux so hard to set up? Why won't people help me?

        5 answers



      I'm trying to learn some stuff about DNSspoofing, but it didn't work well for me. Here's what i have done. step 1 : turn my NIC into promisc mode using the following command



      ifconfig wlan0 promisc


      step 2 : make a hosts file for dnsspoof named : /usr/share/dsniff/dnsspoof.hosts (this is suggested in the man page of dnsspoof ) here's what's i typed inside the file



      github.com 192.168.1.102
      *.github.com 192.168.1.102
      www.github.com 192.168.1.102


      step 3: run dnsspod with the following command



      dnsspoof -i wlan0 -f /usr/share/dsniff/dnsspoof.hosts


      then i get this output :
      image from terminal



      everything seems okay to me, but whenever i tried visiting github from my machine or other machine in my network, it didn't go to the given adress 192.168.1.102





      This question already has an answer here:



      • Why is Kali Linux so hard to set up? Why won't people help me?

        5 answers







      linux networking kali-linux dns spoofing






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 8 at 11:35









      ablil98

      1




      1




      marked as duplicate by Ipor Sircer, Stephen Harris, Rui F Ribeiro linux
      Users with the  linux badge can single-handedly close linux questions as duplicates and reopen them as needed.

      StackExchange.ready(function()
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function()
      $hover.showInfoMessage('',
      messageElement: $msg.clone().show(),
      transient: false,
      position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
      dismissable: false,
      relativeToBody: true
      );
      ,
      function()
      StackExchange.helpers.removeMessages();

      );
      );
      );
      Sep 8 at 13:58


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by Ipor Sircer, Stephen Harris, Rui F Ribeiro linux
      Users with the  linux badge can single-handedly close linux questions as duplicates and reopen them as needed.

      StackExchange.ready(function()
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function()
      $hover.showInfoMessage('',
      messageElement: $msg.clone().show(),
      transient: false,
      position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
      dismissable: false,
      relativeToBody: true
      );
      ,
      function()
      StackExchange.helpers.removeMessages();

      );
      );
      );
      Sep 8 at 13:58


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Your dnsspoof.hosts file is wrong. Read the man page again - it says quite clearly it needs to be in hosts format




          Specify the pathname of a file in hosts(5) format. Only one hostname allowed per line (no aliases), although hostnames may contain wildcards (such as *.doubleclick.net).







          share|improve this answer




















          • i tried using the hosts file of the system /etc/hosts, but i get an error: INVALID ENTRY
            – ablil98
            Sep 8 at 17:54











          • Then you have an invalid entry. Perhaps if you'd care to share the entry that's at fault...?
            – roaima
            Sep 8 at 18:07

















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          Your dnsspoof.hosts file is wrong. Read the man page again - it says quite clearly it needs to be in hosts format




          Specify the pathname of a file in hosts(5) format. Only one hostname allowed per line (no aliases), although hostnames may contain wildcards (such as *.doubleclick.net).







          share|improve this answer




















          • i tried using the hosts file of the system /etc/hosts, but i get an error: INVALID ENTRY
            – ablil98
            Sep 8 at 17:54











          • Then you have an invalid entry. Perhaps if you'd care to share the entry that's at fault...?
            – roaima
            Sep 8 at 18:07














          up vote
          1
          down vote













          Your dnsspoof.hosts file is wrong. Read the man page again - it says quite clearly it needs to be in hosts format




          Specify the pathname of a file in hosts(5) format. Only one hostname allowed per line (no aliases), although hostnames may contain wildcards (such as *.doubleclick.net).







          share|improve this answer




















          • i tried using the hosts file of the system /etc/hosts, but i get an error: INVALID ENTRY
            – ablil98
            Sep 8 at 17:54











          • Then you have an invalid entry. Perhaps if you'd care to share the entry that's at fault...?
            – roaima
            Sep 8 at 18:07












          up vote
          1
          down vote










          up vote
          1
          down vote









          Your dnsspoof.hosts file is wrong. Read the man page again - it says quite clearly it needs to be in hosts format




          Specify the pathname of a file in hosts(5) format. Only one hostname allowed per line (no aliases), although hostnames may contain wildcards (such as *.doubleclick.net).







          share|improve this answer












          Your dnsspoof.hosts file is wrong. Read the man page again - it says quite clearly it needs to be in hosts format




          Specify the pathname of a file in hosts(5) format. Only one hostname allowed per line (no aliases), although hostnames may contain wildcards (such as *.doubleclick.net).








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 8 at 13:54









          roaima

          40.6k547110




          40.6k547110











          • i tried using the hosts file of the system /etc/hosts, but i get an error: INVALID ENTRY
            – ablil98
            Sep 8 at 17:54











          • Then you have an invalid entry. Perhaps if you'd care to share the entry that's at fault...?
            – roaima
            Sep 8 at 18:07
















          • i tried using the hosts file of the system /etc/hosts, but i get an error: INVALID ENTRY
            – ablil98
            Sep 8 at 17:54











          • Then you have an invalid entry. Perhaps if you'd care to share the entry that's at fault...?
            – roaima
            Sep 8 at 18:07















          i tried using the hosts file of the system /etc/hosts, but i get an error: INVALID ENTRY
          – ablil98
          Sep 8 at 17:54





          i tried using the hosts file of the system /etc/hosts, but i get an error: INVALID ENTRY
          – ablil98
          Sep 8 at 17:54













          Then you have an invalid entry. Perhaps if you'd care to share the entry that's at fault...?
          – roaima
          Sep 8 at 18:07




          Then you have an invalid entry. Perhaps if you'd care to share the entry that's at fault...?
          – roaima
          Sep 8 at 18:07


          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?