From 6b739b5dc424287fa8794defa7c5c0b8dec5ec66 Mon Sep 17 00:00:00 2001
From: "Sylvain \"Cloud\" MARET" <sylvain.maret@ensiie.fr>
Date: Sat, 28 Sep 2019 17:19:19 +0200
Subject: [PATCH] renamed file

---
 get_country_info.sh | 35 -----------------------------------
 1 file changed, 35 deletions(-)
 delete mode 100755 get_country_info.sh

diff --git a/get_country_info.sh b/get_country_info.sh
deleted file mode 100755
index 408cdd6..0000000
--- a/get_country_info.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-# test if there is a country as 1st argument
-
-if [ $# -ne 1 ]
-then
-  echo "incorrect number of argument"
-  echo "example : ./get_country_csv.sh France"
-  exit
-fi
-
-
-# download and extract database if missing
-
-if [ ! -f "IP2LOCATION-LITE-DB1.CSV" ]
-then
-  wget https://download.ip2location.com/lite/IP2LOCATION-LITE-DB1.CSV.ZIP
-  unzip IP2LOCATION-LITE-DB1.CSV.ZIP
-  rm IP2LOCATION-LITE-DB1.CSV.ZIP
-fi
-
-
-# generate csv
-echo "[INFO] generate csv"
-grep $1 IP2LOCATION-LITE-DB1.CSV > $1.csv
-
-echo "[INFO] generate IPs"
-python conversion.py $1
-
-echo "[INFO] scanning port 445 for exposed windows machines"
-sudo masscan -p445 -iL $1.ips -oG $1.445.scan && cat $1.445.scan | wc -l
-
-echo "[INFO] scanning port 53 udp to find exposed DNS"
-sudo masscan -pU:53 -iL $1.ips -oG $1.53.scan && cat $1.53.scan | wc -l
-
-- 
GitLab