Skip to content

Instantly share code, notes, and snippets.

View AlexLynd's full-sized avatar
🐢

Alex Lynd AlexLynd

🐢
View GitHub Profile
@AlexLynd
AlexLynd / port-scan.py
Last active September 24, 2021 13:14
Python port scanner [GCI 2019-20]
import socket
host = raw_input("enter host: ")
IP = socket.gethostbyname(host) # for remote
print("scanning\n----------")
for port in range(1,1025):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
open = sock.connect_ex((IP, port))
@AlexLynd
AlexLynd / ACSL-SR1-1920.py
Last active September 24, 2021 13:14
ACSL Senior Contest 1 [2019-20]
def prime(n):
count = [];
while n%2 == 0:
count.append(2)
n = n/2
for i in range(3,int(n**.5)+1,2):
while n%i == 0:
count.append (i)
n = n/i
if n>2: count.append(int(n))
@AlexLynd
AlexLynd / net-scan.py
Last active September 24, 2021 13:15
Python network scanning utility [GCI 2019-20]
import subprocess, ipaddress, socket, concurrent.futures , re
from subprocess import Popen, PIPE
def myIP(): # get my IP addy
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 80))
ip = s.getsockname()[0]
s.close()
return ip
@AlexLynd
AlexLynd / shodan.py
Last active September 24, 2021 13:14
Python Shodan utility [GCI 2019-20]
from os import system
system("clear")
while True :
print("1. What's my IP")
print("2. Scanning host")
print("3. Shodan search to scan ip, port, hostname")
print("0. Exit\n")
option = input("SHODAN>")
@AlexLynd
AlexLynd / Spectrum-PassGen.py
Last active April 22, 2024 15:10
default Spectrum Router password generator based off SSID
essid, bssid = input("ESSID: "), input("BSSID: ").replace(":","")
psk= essid[0:len(essid)-2] + bssid[6:10] + essid[len(essid)-2:len(essid)]
print("Password: "psk)
#include <IRremote.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
const int RECV_PIN= 7; // IR data pin