Add files via upload
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
FROM ubuntu:latest
|
||||
WORKDIR /
|
||||
RUN apt-get update && apt-get install nmap -y
|
||||
RUN apt-get update && apt-get install -y tcpdump
|
||||
RUN apt-get update && apt-get install net-tools
|
||||
RUN apt-get update && apt-get install iproute2 -y
|
||||
COPY scan.sh /scan.sh
|
||||
RUN chmod +x /scan.sh
|
||||
ENTRYPOINT ["tail", "-f", "/dev/null"]
|
||||
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Find the IP address of the host machine
|
||||
HOST_IP=$(hostname -I | awk '{print $1}')
|
||||
echo "Running ifconfig"
|
||||
ifconfig
|
||||
echo "Running nmap scan on ${HOST_IP}:"
|
||||
nmap -sV -O ${HOST_IP}
|
||||
echo "Running tcpdump -i on ${HOST_IP}:"
|
||||
tcpdump -i ${HOST_IP} -c 30
|
||||
echo "Running ss -tlwn on ${HOST_IP}:"
|
||||
ss -tuwx
|
||||
Reference in New Issue
Block a user