Skip to content

Instantly share code, notes, and snippets.

View angeloped's full-sized avatar

Angeloped angeloped

  • Philippines
View GitHub Profile
@angeloped
angeloped / spongebobify.py
Last active January 2, 2020 15:22
ThIsS iS jUsT aNotHeR sPoNgeBoB fOrMatTeR. View revisions for other version.
import random
def sPongEbOb_iT(data):
return "".join([random.choice([s, s.upper()]) for s in data])
@angeloped
angeloped / generate-ssh-key.sh
Created February 12, 2020 05:14 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa
@angeloped
angeloped / Public and Private Key PGP Validator
Last active December 6, 2024 20:00
Public and Private Key PGP Validator | RegEx
/^(-----BEGIN PGP PUBLIC KEY BLOCK-----).*([a-zA-Z0-9//\n\/\.\:\+\ \=]+).*(-----END PGP PUBLIC KEY BLOCK-----)$|^(-----BEGIN PGP PRIVATE KEY BLOCK-----).*([a-zA-Z0-9//\n\/\.\:\+\ \=]+).*(-----END PGP PRIVATE KEY BLOCK-----)$/
@angeloped
angeloped / ASCII.json
Last active November 20, 2024 00:25
ASCII Table in JSON Format.
{
"_heading":[["OCT", "HEX", "BIN", "Symbol", "Description"]],
"ASCII":[
["000", "00", "00000000", "NUL", "Null char"],
["001", "01", "00000001", "SOH", "Start of Heading"],
["002", "02", "00000010", "STX", "Start of Text"],
["003", "03", "00000011", "ETX", "End of Text"],
["004", "04", "00000100", "EOT", "End of Transmission"],
["005", "05", "00000101", "ENQ", "Enquiry"],
["006", "06", "00000110", "ACK", "Acknowledgment"],
@angeloped
angeloped / keyboard_type_replace.js
Created May 11, 2020 22:44
Replace keyboard characters by keydown.
$('textarea').on('keydown', function(e){
console.log(e.keyCode);
if( e.keyCode == 90 ){
e.preventDefault();
$(this).append('y').focus();
}
if( e.keyCode == 89 ){
e.preventDefault();
$(this).append('z').focus();
@angeloped
angeloped / admin-finder.py
Last active May 26, 2020 12:12
A simplified admin panel finder compatible in Python 3.
import re
import time
import urllib.request
import _thread
paths = ["/Login/Admin", "/UserLogin", "/acceso.asp", "/acceso.aspx", "/acceso.brf", "/acceso.cfm", "/acceso.cgi", "/acceso.js", "/acceso.php", "/access", "/access.asp", "/access.aspx", "/access.php", "/account.asp", "/account.aspx", "/account.brf", "/account.cfm", "/account.cgi", "/account.html", "/account.js", "/account.php", "/accounts", "/accounts.asp", "/accounts.aspx", "/accounts.php", "/adm", "/adm.asp", "/adm.aspx", "/adm.brf", "/adm.cfm", "/adm.cgi", "/adm.html", "/adm.js", "/adm.php", "/adm/admloginuser.asp", "/adm/admloginuser.aspx", "/adm/admloginuser.brf", "/adm/admloginuser.cfm", "/adm/admloginuser.cgi", "/adm/admloginuser.js", "/adm/admloginuser.php", "/adm/index.asp", "/adm/index.aspx", "/adm/index.brf", "/adm/index.cfm", "/adm/index.cgi", "/adm/index.html", "/adm/index.js", "/adm/index.php", "/adm_auth.asp", "/adm_auth.aspx", "/adm_auth.brf", "/adm_auth.cfm", "/adm_auth.cgi", "/adm_auth.js", "/adm_auth.php", "/admin", "/admin-login.a
@angeloped
angeloped / nmap_profile.py
Last active September 18, 2021 09:50
A collection of Nmap scan presets for python-nmap.
import re
import nmap
"""
name: nmap_profile.py
author: bryan angelo
description: A collection of Nmap scan profiles for python-nmap.
"""
nmap_profiles = {
@angeloped
angeloped / keydown.coffee
Created May 31, 2020 19:22 — forked from tiye/keydown.coffee
keyCode of keydown event in JSON format
# keydown data from the web
# http://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes
map =
backspace: 8
tab: 9
enter: 13
shift: 16
ctrl: 17
@angeloped
angeloped / fibo-solver.py
Last active June 4, 2020 19:50
A simple Fibonacci sequence solver.
'''
written by: Bryan Angelo
'''
def fibCount(nth=0,ntp=0,sus=False): # where / limit / yield
# infinite loop
A,B = 1,1
nth_ = 0
while 1:
if bool(nth): # last number of specific iteration limit
@angeloped
angeloped / geo-sorter.py
Created June 5, 2020 18:13
Geolocation Sorting Algorithm
sorted_geo = []
def Geolocation_sorter(geo_info): # arg={COUNTRY:'',LNG:'',LAT:''}
if not bool(sorted_geo): # if empty
sorted_geo.append(geo_info)
return
i = 0
while i < len(sorted_geo):
if (float(geo_info["LNG"]) >= float(sorted_geo[i]["LNG"]) and float(geo_info["LNG"]) <= float(sorted_geo[:i+1][0]["LNG"])):
sorted_geo.insert(i+1, geo_info)