From 6473406b1e70e5022d013023b4e56cb55d292c77 Mon Sep 17 00:00:00 2001 From: Danilo Date: Fri, 13 Aug 2021 12:44:32 -0500 Subject: [PATCH] Shell script to generate any IP ranges as you need --- Discovery/Infrastructure/IPGenerator.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Discovery/Infrastructure/IPGenerator.sh diff --git a/Discovery/Infrastructure/IPGenerator.sh b/Discovery/Infrastructure/IPGenerator.sh new file mode 100644 index 0000000..9d49833 --- /dev/null +++ b/Discovery/Infrastructure/IPGenerator.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +## IP Generator list. Use many iterations as you need. +# +#for a in {1..254};do +# echo "$a.1.1.1" +# for b in {1..254};do +# echo "$a.$b.1.1" +# for c in {1..254};do +# echo "$a.$b.$c.1" +# for d in {1..254};do +# echo "$a.$b.$c.$d" +# done +# done +# done +#done + +for a in {1..254};do + echo "10.10.$a.1" >> IPList.txt # Saving to file + for b in {1..254};do + echo "10.10.$a.$b" >> IPList.txt + done +done \ No newline at end of file