Skip to content

Instantly share code, notes, and snippets.

View eguyd's full-sized avatar
🏠
Working from home

GuyD008 eguyd

🏠
Working from home
  • Tollgate
  • San Diego
View GitHub Profile
@eguyd
eguyd / TCPIPScanner.py
Created August 3, 2019 03:06
Simple and Basic TCP IP Scanner with Python 3 and outputs open ports.
import socket
import subprocess
import sys
from datetime import datetime
subprocess.call("", shell=True)
rmip = input("ENTER REMOTE HOST IP: ")
ps1 = int(input("ENTER START PORT NUMBER TO SCAN: "))
ps2 = int(input("ENTER LAST PORT NUMBER TO SCAN: "))
print("*"*40)
@eguyd
eguyd / ping_sweep.py
Last active September 12, 2019 21:54
Execute Ping Sweep from IDE console and output results to .txt file
"""
Program: Execute Ping Seep (ICMP Requests) and output results to a text file.
Interpreter Python 2.7 | Linux
"""
import os
import platform
from datetime import datetime
net = raw_input("Enter the IP address")
#!/usr/bin/env bash
# SECTION 1 | Set Host IPv4
# localhost: '127.0.0.1' # ADD USER TO LOCAL HOST
# remotehost <reopteIPv4> # ADD USER TO REMOTE HOST
# SECTION 2 | Generate Login Details
set -e # STOP IF ANY ERROR
if [ $(id -u) -eq 0 ]; then # VERIFY ROOT THEN IF ROOT
read -p "Enter username : " username # ENTER USER NAME
@eguyd
eguyd / nslookup.sh
Created September 23, 2019 02:00
10 most used Nslookup commands
#!/usr/bin/env bash
1. How to find the A record of а domain.
Command line:
$ nslookup example.com
2. How to check the NS records of a domain.
Command line:
$nslookup -type=ns example.com
@eguyd
eguyd / MaximizeIT!.py
Created December 19, 2019 02:02
You are given a function . You are also given lists. The list consists of elements. You have to pick one element from each list so that the value from the equation below is maximized: % denotes the element picked from the list . Find the maximized value obtained. denotes the modulo operator. Note that you need to take exactly one element from ea…
import itertools
(K, N) = map(int, raw_input().split())
L = list()
for i in range(K):
l = map(int, raw_input().split())
n = l[0]
L.append(l[1:])