aboutsummaryrefslogtreecommitdiffstats
path: root/autoscan/tests
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-11-01 23:07:03 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2013-11-01 23:07:03 +0100
commit8f821f0ca589fda38166e1b1a025d1ceb1a92910 (patch)
treed4a173d107b1fa247f72428a3ed9f47c76cf1bd8 /autoscan/tests
parentmove wifcap to github (diff)
downloadlaurent-tools-master.tar.xz
laurent-tools-master.zip
autoscan: move to https://github.com/P1sec/autoscanHEADmaster
git clone https://github.com/P1sec/autoscan.git
Diffstat (limited to 'autoscan/tests')
-rw-r--r--autoscan/tests/Makefile5
-rwxr-xr-xautoscan/tests/spoofbin/curl3
-rwxr-xr-xautoscan/tests/spoofbin/ifconfig12
-rwxr-xr-xautoscan/tests/spoofbin/iwconfig4
-rwxr-xr-xautoscan/tests/spoofbin/nmap16
-rwxr-xr-xautoscan/tests/spoofbin/route7
-rwxr-xr-xautoscan/tests/spoofbin/traceroute18
-rwxr-xr-xautoscan/tests/test_autoscan.sh24
8 files changed, 0 insertions, 89 deletions
diff --git a/autoscan/tests/Makefile b/autoscan/tests/Makefile
deleted file mode 100644
index 77bebab..0000000
--- a/autoscan/tests/Makefile
+++ /dev/null
@@ -1,5 +0,0 @@
-all: clean
- ./test_autoscan.sh
-
-clean:
- rm -rf test_output/
diff --git a/autoscan/tests/spoofbin/curl b/autoscan/tests/spoofbin/curl
deleted file mode 100755
index f3788e4..0000000
--- a/autoscan/tests/spoofbin/curl
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-echo "1.2.3.4"
diff --git a/autoscan/tests/spoofbin/ifconfig b/autoscan/tests/spoofbin/ifconfig
deleted file mode 100755
index 0df746d..0000000
--- a/autoscan/tests/spoofbin/ifconfig
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-echo "eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 10.137.2.9 netmask 255.255.255.255 broadcast 10.255.255.255
- inet6 fe80::216:3eff:fe5e:6c07 prefixlen 64 scopeid 0x20<link>
- ether 00:16:3e:5e:6c:07 txqueuelen 1000 (Ethernet)
- RX packets 74405 bytes 93418449 (89.0 MiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 54640 bytes 5365525 (5.1 MiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- device interrupt 47
-"
diff --git a/autoscan/tests/spoofbin/iwconfig b/autoscan/tests/spoofbin/iwconfig
deleted file mode 100755
index 2302264..0000000
--- a/autoscan/tests/spoofbin/iwconfig
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-echo "eth0 no wireless extensions.
-"
diff --git a/autoscan/tests/spoofbin/nmap b/autoscan/tests/spoofbin/nmap
deleted file mode 100755
index 513ad52..0000000
--- a/autoscan/tests/spoofbin/nmap
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-oa=""
-while true; do
- case $1 in
- -oA) oa=$2; shift ;;
- *) shift ;;
- esac
- [[ $# -eq 1 ]] && break
-done
-
-if [ X"$oa" != X"" ]; then
- touch $oa.xml
- touch $oa.gnmap
- touch $oa.nmap
-fi
diff --git a/autoscan/tests/spoofbin/route b/autoscan/tests/spoofbin/route
deleted file mode 100755
index 20abcc3..0000000
--- a/autoscan/tests/spoofbin/route
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-echo "Kernel IP routing table
-Destination Gateway Genmask Flags Metric Ref Use Iface
-0.0.0.0 10.137.2.1 0.0.0.0 UG 0 0 0 eth0
-10.137.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
-"
diff --git a/autoscan/tests/spoofbin/traceroute b/autoscan/tests/spoofbin/traceroute
deleted file mode 100755
index 36546a5..0000000
--- a/autoscan/tests/spoofbin/traceroute
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-echo "traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
- 1 10.137.2.1 (10.137.2.1) 0.781 ms 0.683 ms 0.608 ms
- 2 172.28.194.1 (172.28.194.1) 115.733 ms 115.752 ms 115.763 ms
- 3 * * *
- 4 * * *
- 5 bhs-g2-6k.qc.ca (198.27.73.15) 124.822 ms 125.331 ms 129.664 ms
- 6 198.27.73.206 (198.27.73.206) 139.953 ms * *
- 7 ash-1-6k.va.us (178.32.135.233) 124.985 ms 134.881 ms *
- 8 198.27.73.105 (198.27.73.105) 182.568 ms 182.509 ms 182.519 ms
- 9 216.239.46.250 (216.239.46.250) 138.474 ms 216.239.46.248 (216.239.46.248) 137.078 ms 216.239.46.250 (216.239.46.250) 123.555 ms
-10 72.14.236.146 (72.14.236.146) 124.983 ms 72.14.236.148 (72.14.236.148) 121.850 ms 127.460 ms
-11 72.14.235.12 (72.14.235.12) 131.885 ms 133.096 ms 133.784 ms
-12 72.14.234.53 (72.14.234.53) 133.715 ms 72.14.234.55 (72.14.234.55) 133.535 ms 72.14.234.67 (72.14.234.67) 135.416 ms
-13 * * *
-14 google-public-dns-a.google.com (8.8.8.8) 131.568 ms 131.605 ms 133.601 ms
-"
diff --git a/autoscan/tests/test_autoscan.sh b/autoscan/tests/test_autoscan.sh
deleted file mode 100755
index 4c488cc..0000000
--- a/autoscan/tests/test_autoscan.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-err() {
- echo "ERROR: $1"
- exit 1
-}
-
-sudo PATH="./spoofbin/:$PATH" ../autoscan.py -v -p 127.0.0.1 -o test_output/ -r eth0 ||err "autoscan execution failed"
-
-# XXX test output dirs
-dir="test_output/$(ls -1 test_output |tail -n1)"
-[[ -e $dir/pcap/tcpdump.pcap ]] ||err "pcap/tcpdump.pcap"
-[[ $(cat $dir/ifconfig/ip4) = "10.137.2.9" ]] ||err "ifconfig/ip4"
-[[ $(cat $dir/ifconfig/ip6) = "fe80::216:3eff:fe5e:6c07" ]] ||err "ifconfig/ip6"
-[[ $(cat $dir/route/gw) = "10.137.2.1" ]] ||err "route/gw"
-[[ $(cat $dir/pubip_ping/code) = "0" ]] ||err "pubip_ping/code"
-[[ -e $dir/resolv/resolv.conf ]] ||err "resolv/resolv.conf"
-[[ $(cat $dir/pubip_get/ip) = "1.2.3.4" ]] ||err "pubip_get/ip"
-[[ -e $dir/pubip_traceroute/out ]] ||err "pubip_traceroute/out"
-[[ -e $dir/resolv_traceroute/out ]] ||err "resolv_traceroute/out"
-[[ -e "$dir/explor_traceroute/out_192.168.0.1" ]] ||err "explor_traceroute/out_192.168.0.1"
-[[ -e $dir/explor_scan/localnet.nmap ]] ||err "explor_scan/localnet.nmap"
-
-echo "TEST OK"