Difference between revisions of "Linux Commands"

From SkullSecurity
Jump to navigation Jump to search
Line 23: Line 23:
$ ./qtrace.pl
$ ./qtrace.pl
</pre>
</pre>
==Scanning==
===tcpdump===
Parameters:
* -n -- use numbers
* -i &lt;interface&gt;
* -v -- be verbose
* -r &lt;file&gt;/-w &lt;file&gt; -- read from/write to file
* -x -- print hex
* -A -- print ASCII
* -X -- print hex and ASCII
* -s &lt;snaplen&gt; -- length to capture (-s0 for all data)

Revision as of 14:28, 15 July 2008

Recon

whois

$ whois [-h whois_server] name

nslookup

$ nslookup <target>

dig

  • Types of record: NS, A, HINFO, MX, TXT, CNAME, SOA, RP, PTR, SRV
$ dig [@server] <name> [type]
  • Zone transfer
$ dig [@server] <domain> -t AXFR

* Iterative zone transfer
<pre>$ dig [@server] <domain> -t IXFR=<N>

BiLE.pl

$ ./BiLE <target> <result_file>
$ ./BiLE-weigh.pl <site_of_interest> <BiLE_output.mine>
$ ./tld-expand.pl
$ ./vet-IPrange.pl
$ ./qtrace.pl

Scanning

tcpdump

Parameters:

  • -n -- use numbers
  • -i <interface>
  • -v -- be verbose
  • -r <file>/-w <file> -- read from/write to file
  • -x -- print hex
  • -A -- print ASCII
  • -X -- print hex and ASCII
  • -s <snaplen> -- length to capture (-s0 for all data)