From e7bc206c2425480255a68ee71904f970487b9b56 Mon Sep 17 00:00:00 2001 From: Kyle Westhaus Date: Tue, 14 Apr 2020 01:02:57 -0400 Subject: [PATCH] Add (approximate) author names --- attacks/syn_attack.py | 1 + color/pcolor.py | 1 + cust_packet/ip_packet.py | 1 + cust_packet/tcp_packet.py | 1 + cust_packet/util.py | 3 ++- scanners/fragment_packet.py | 1 + scanners/host_up.py | 1 + scanners/icmp_echo.py | 3 ++- scanners/icmp_timestamp.py | 3 ++- scanners/os_detection/os_detection.py | 1 + scanners/ping_os.py | 1 + scanners/tcp_connect.py | 1 + scanners/tcp_privileged/ack.py | 1 + scanners/tcp_privileged/fin.py | 1 + scanners/tcp_privileged/maimon.py | 1 + scanners/tcp_privileged/null.py | 1 + scanners/tcp_privileged/privileged_tcp_scan.py | 1 + scanners/tcp_privileged/syn.py | 1 + scanners/tcp_privileged/util.py | 1 + scanners/tcp_privileged/window.py | 1 + scanners/tcp_privileged/xmas.py | 1 + scanners/tcp_privileged/xmas_null_fin_maimon.py | 1 + scanners/udp_connect.py | 1 + scanners/util/defaults.py | 3 ++- scanners/util/host_parser.py | 1 + urban_rain.py | 1 + 26 files changed, 30 insertions(+), 4 deletions(-) diff --git a/attacks/syn_attack.py b/attacks/syn_attack.py index 8082a3b..67464bf 100644 --- a/attacks/syn_attack.py +++ b/attacks/syn_attack.py @@ -1,3 +1,4 @@ +# Nick Morris and Jordan Miller from scapy.all import * from cust_packet import tcp_packet, ip_packet import socket diff --git a/color/pcolor.py b/color/pcolor.py index e664a30..6d4287f 100644 --- a/color/pcolor.py +++ b/color/pcolor.py @@ -1,3 +1,4 @@ +# Jordan Miller class color: OPEN = '\033[92m' WARNING = '\033[93m' diff --git a/cust_packet/ip_packet.py b/cust_packet/ip_packet.py index 335e107..8a98539 100644 --- a/cust_packet/ip_packet.py +++ b/cust_packet/ip_packet.py @@ -1,3 +1,4 @@ +# Nick Morris and Kyle Westhaus import binascii import struct import sys diff --git a/cust_packet/tcp_packet.py b/cust_packet/tcp_packet.py index 2dae63e..be4c6a4 100644 --- a/cust_packet/tcp_packet.py +++ b/cust_packet/tcp_packet.py @@ -1,3 +1,4 @@ +# Nick Morris and Ben Hiner import binascii import struct import cust_packet.util diff --git a/cust_packet/util.py b/cust_packet/util.py index c0a2b1b..46b8bf6 100644 --- a/cust_packet/util.py +++ b/cust_packet/util.py @@ -1,3 +1,4 @@ +# Nick Morris import ipaddress # convert IPv4Address object into binary representation @@ -6,4 +7,4 @@ def parseIP(ip): # convert bytes object to an int using a big-endian interpretation def btoi(bytes_obj): - return int.from_bytes(bytes_obj, "big") \ No newline at end of file + return int.from_bytes(bytes_obj, "big") diff --git a/scanners/fragment_packet.py b/scanners/fragment_packet.py index 7317afb..ebf56dd 100644 --- a/scanners/fragment_packet.py +++ b/scanners/fragment_packet.py @@ -1,3 +1,4 @@ +# Ben Hiner import socket import random diff --git a/scanners/host_up.py b/scanners/host_up.py index ec7213b..b16febd 100644 --- a/scanners/host_up.py +++ b/scanners/host_up.py @@ -1,3 +1,4 @@ +# Rohin Dasari and Ben Hiner import socket from color import pcolor from scanners import tcp_connect, udp_connect, ping_os, icmp_echo, icmp_timestamp, tcp_privileged diff --git a/scanners/icmp_echo.py b/scanners/icmp_echo.py index e4fa809..10e10f3 100644 --- a/scanners/icmp_echo.py +++ b/scanners/icmp_echo.py @@ -1,3 +1,4 @@ +# Kyle Westhaus and Rohin Dasari import socket import struct import time @@ -54,4 +55,4 @@ def calc_checksum(icmp_struct): # Negate and ensure 16 bits run_sum = ~run_sum & 0xffff - return run_sum \ No newline at end of file + return run_sum diff --git a/scanners/icmp_timestamp.py b/scanners/icmp_timestamp.py index 3b6ca69..28487a8 100644 --- a/scanners/icmp_timestamp.py +++ b/scanners/icmp_timestamp.py @@ -1,3 +1,4 @@ +# Kyle Westhaus import socket import struct import time @@ -54,4 +55,4 @@ def calc_checksum(icmp_struct): # Negate and ensure 16 bits run_sum = ~run_sum & 0xffff - return run_sum \ No newline at end of file + return run_sum diff --git a/scanners/os_detection/os_detection.py b/scanners/os_detection/os_detection.py index 58e7ddb..75e5645 100644 --- a/scanners/os_detection/os_detection.py +++ b/scanners/os_detection/os_detection.py @@ -1,3 +1,4 @@ +# Nick Morris from scapy.all import * from scapy.layers.inet import IP, ICMP from color import pcolor diff --git a/scanners/ping_os.py b/scanners/ping_os.py index 0a8f98e..96edf6b 100644 --- a/scanners/ping_os.py +++ b/scanners/ping_os.py @@ -1,3 +1,4 @@ +# Rohin Dasari and Ben Hiner import subprocess import sys import os diff --git a/scanners/tcp_connect.py b/scanners/tcp_connect.py index 1553dfb..b43f293 100644 --- a/scanners/tcp_connect.py +++ b/scanners/tcp_connect.py @@ -1,3 +1,4 @@ +# David Levine, Kyle Westhaus, and Jordan Miller import socket from enum import Enum from scanners.util.defaults import tcp_ports diff --git a/scanners/tcp_privileged/ack.py b/scanners/tcp_privileged/ack.py index 695585e..5a4fe46 100644 --- a/scanners/tcp_privileged/ack.py +++ b/scanners/tcp_privileged/ack.py @@ -1,3 +1,4 @@ +# Mark Gilliland and David Levine from scanners.tcp_privileged import privileged_tcp_scan, util from scanners.tcp_privileged.util import Flags from scanners.util.defaults import tcp_ports diff --git a/scanners/tcp_privileged/fin.py b/scanners/tcp_privileged/fin.py index 863d244..ce3c491 100644 --- a/scanners/tcp_privileged/fin.py +++ b/scanners/tcp_privileged/fin.py @@ -1,3 +1,4 @@ +# Mark Gilliland, David Levine from scanners.tcp_privileged import xmas_null_fin_maimon def run(targets, ports, options, fragment_size, src_ip=None, print_results=True): diff --git a/scanners/tcp_privileged/maimon.py b/scanners/tcp_privileged/maimon.py index 7d4f4af..c2ae0e7 100644 --- a/scanners/tcp_privileged/maimon.py +++ b/scanners/tcp_privileged/maimon.py @@ -1,3 +1,4 @@ +# Mark Gilliland and David Levine from scanners.tcp_privileged import xmas_null_fin_maimon def run(targets, port_range, options, fragment_size, src_ip=None, print_results=True): diff --git a/scanners/tcp_privileged/null.py b/scanners/tcp_privileged/null.py index 257b3ce..0a98c52 100644 --- a/scanners/tcp_privileged/null.py +++ b/scanners/tcp_privileged/null.py @@ -1,3 +1,4 @@ +# Mark Gilliland and David Levine from scanners.tcp_privileged import xmas_null_fin_maimon def run(targets, ports, options, fragment_size, src_ip=None, print_results=True): diff --git a/scanners/tcp_privileged/privileged_tcp_scan.py b/scanners/tcp_privileged/privileged_tcp_scan.py index 9ecc37f..a9def14 100644 --- a/scanners/tcp_privileged/privileged_tcp_scan.py +++ b/scanners/tcp_privileged/privileged_tcp_scan.py @@ -1,3 +1,4 @@ +# Mark Gilliland, Rohin Dasari, and Nick Morris import socket import binascii import ipaddress diff --git a/scanners/tcp_privileged/syn.py b/scanners/tcp_privileged/syn.py index 4ff6b6b..82c23a3 100644 --- a/scanners/tcp_privileged/syn.py +++ b/scanners/tcp_privileged/syn.py @@ -1,3 +1,4 @@ +# Mark Gilliland and David Levine from scanners.tcp_privileged import privileged_tcp_scan, util from scanners.tcp_privileged.util import Flags from scanners.util.defaults import tcp_ports diff --git a/scanners/tcp_privileged/util.py b/scanners/tcp_privileged/util.py index bb37c07..50a4e95 100644 --- a/scanners/tcp_privileged/util.py +++ b/scanners/tcp_privileged/util.py @@ -1,3 +1,4 @@ +# Mark Gilliland, David Levine, and Kyle Westhaus import binascii from enum import Enum diff --git a/scanners/tcp_privileged/window.py b/scanners/tcp_privileged/window.py index cd46c65..68de9d9 100644 --- a/scanners/tcp_privileged/window.py +++ b/scanners/tcp_privileged/window.py @@ -1,3 +1,4 @@ +# Mark Gilliland and David Levine from scanners.tcp_privileged import privileged_tcp_scan, util from scanners.tcp_privileged.util import Flags from scanners.util.defaults import tcp_ports diff --git a/scanners/tcp_privileged/xmas.py b/scanners/tcp_privileged/xmas.py index fbbbb69..33b4619 100644 --- a/scanners/tcp_privileged/xmas.py +++ b/scanners/tcp_privileged/xmas.py @@ -1,3 +1,4 @@ +# Mark Gilliland and David Levine import cust_packet.tcp_packet from scanners.tcp_privileged import xmas_null_fin_maimon diff --git a/scanners/tcp_privileged/xmas_null_fin_maimon.py b/scanners/tcp_privileged/xmas_null_fin_maimon.py index 6b580a9..5376ad4 100644 --- a/scanners/tcp_privileged/xmas_null_fin_maimon.py +++ b/scanners/tcp_privileged/xmas_null_fin_maimon.py @@ -1,3 +1,4 @@ +# David Levine and Mark Gilliland from scanners.tcp_privileged import privileged_tcp_scan, util from scanners.tcp_privileged.util import Flags from scanners.util.defaults import tcp_ports diff --git a/scanners/udp_connect.py b/scanners/udp_connect.py index fd4d5f8..a6efaf3 100644 --- a/scanners/udp_connect.py +++ b/scanners/udp_connect.py @@ -1,3 +1,4 @@ +# David Levine import socket import errno from enum import Enum diff --git a/scanners/util/defaults.py b/scanners/util/defaults.py index 27bbda9..f0ccb2c 100644 --- a/scanners/util/defaults.py +++ b/scanners/util/defaults.py @@ -1,3 +1,4 @@ +# Kyle Westhaus # https://www.pearsonitcertification.com/articles/article.aspx?p=1868080 tcp_ports = [20, 21, 22, 23, 25, 53, 80, 110, 137, 138, 139, 143, 161, 162, 179, 389, 443, 636, 989, 990, 3389] -udp_ports = [53, 67, 68, 69, 123, 137, 138, 139, 161, 162, 389, 636] \ No newline at end of file +udp_ports = [53, 67, 68, 69, 123, 137, 138, 139, 161, 162, 389, 636] diff --git a/scanners/util/host_parser.py b/scanners/util/host_parser.py index 0761481..50aa916 100644 --- a/scanners/util/host_parser.py +++ b/scanners/util/host_parser.py @@ -1,3 +1,4 @@ +# Mark Gilliland import ipaddress from color import pcolor diff --git a/urban_rain.py b/urban_rain.py index 54e96ec..0643815 100755 --- a/urban_rain.py +++ b/urban_rain.py @@ -1,3 +1,4 @@ +# Everyone contributed to this file #!/usr/bin/env python import argparse