Differences between revisions 4 and 5
Revision 4 as of 2019-12-07 10:00:07
Size: 357
Editor: Sciuro
Comment:
Revision 5 as of 2019-12-10 11:36:23
Size: 607
Editor: Sciuro
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Shell examples #acl All:read
#lang en
Line 3: Line 4:
== Sort IP adresses ==
{{{
sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4
}}}
[[https://www.madboa.com/geek/sort-addr/]]
<<TableOfContents()>>
Line 9: Line 6:
== Scan PTR records ==
{{{
for i in `seq 1 254`; do host 192.168.1.$i 192.168.1.1; done |grep pointer
}}}
= File operations =
Line 15: Line 8:
Extract all files out of an image.
Line 19: Line 13:
= List operations =
== Sort IP adresses ==
Sort a list of IP adresses.
{{{
sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4
}}}
Thanks: [[https://www.madboa.com/geek/sort-addr/]]

= Processes =
Line 20: Line 23:
Kill your current process.
Line 23: Line 27:

= Networking operations =
== Scan PTR records ==
Do a reverse scan of an IP range.
{{{
for i in `seq 1 254`; do host 192.168.1.$i 8.8.8.8; done |grep pointer
}}}

File operations

Extract files

Extract all files out of an image.

binwalk --dd='.*' file.bin

List operations

Sort IP adresses

Sort a list of IP adresses.

sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4

Thanks: https://www.madboa.com/geek/sort-addr/

Processes

Kill processes

Kill your current process.

kill -9 $$

Networking operations

Scan PTR records

Do a reverse scan of an IP range.

for i in `seq 1 254`; do host 192.168.1.$i 8.8.8.8; done |grep pointer

Howto/Shell (last edited 2020-03-07 11:05:16 by Sciuro)