Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use spoof source IP #28

Open
qq351844 opened this issue Jul 10, 2017 · 1 comment
Open

Use spoof source IP #28

qq351844 opened this issue Jul 10, 2017 · 1 comment
Labels

Comments

@qq351844
Copy link

qq351844 commented Jul 10, 2017

Hi,

I want to use spoof source IP to do the detection destination IP and port.
What should I do to change the source IP?

Thanks!!

@harryhorton
Copy link
Owner

From the README:

//    Accepts array or comma separarted string for custom nmap commands in the second argument.
var nmapscan = new nmap.NmapScan('127.0.0.1 google.com', '-sn');

nmapscan.on('complete',function(data){
  console.log(data);
});
nmapscan.on('error', function(error){
  console.log(error);
});

nmapscan.startScan();

You can replace -sn in the second paramter with whatever argument string you'd normally pass to nmap (other than the destinations).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants