Skip to content

Commit

Permalink
unicornscan udp top25 script added
Browse files Browse the repository at this point in the history
  • Loading branch information
maldevel committed Mar 22, 2020
1 parent 5bb2e00 commit 7eddce5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions port-scanning/udp/udp-ports-scan-top25-unicornscan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash

# This file is part of PenTestKit
# Copyright (C) 2017-2018 @maldevel
# https://github.com/maldevel/PenTestKit
#
# PenTestKit - Useful tools for Penetration Testing.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# For more see the file 'LICENSE' for copying permission.


if [[ $EUID -ne 0 ]]; then
echo "Please run this script as root." 1>&2
exit 1
fi

if [ $# -eq 1 ]; then
unicornscan -H -I -v -mU -p 20,25,53,67,68,69,111,123,135,137,138,139,161,162,445,500,514,520,631,998,1434,1701,1900,5353,4500,49152 172.17.50.2 2>&1 | tee "udp_ports_top25_$1_unicornscan.txt"
else
echo "Please provide a target IP address or an IP range (CIDR)."
fi

0 comments on commit 7eddce5

Please sign in to comment.