Skip to content

Instantly share code, notes, and snippets.

Angelo angeloped

  • Philippines
Block or report user

Report or block angeloped

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@angeloped
angeloped / netcat.py
Created Sep 20, 2019 — forked from leonjza/netcat.py
Python Netcat
View netcat.py
import socket
class Netcat:
""" Python 'netcat like' module """
def __init__(self, ip, port):
self.buff = ""
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
@angeloped
angeloped / remove_CtrlChars.py
Created Sep 19, 2019
Remove control characters (e.g., \n, \r, \x, etc.) with Python, compatible in both Python version 2 and 3.
View remove_CtrlChars.py
#!/usr/bin/python
# -*- encoding: utf-8 -*-
import unicodedata
def remove_CtrlChars(string):
try:# Unicode conversion for Python 2
string = string.decode("utf-8")
except:# Unicode conversion for Python 3
string = string.encode().decode("utf-8","strict")
@angeloped
angeloped / fibonacci.py
Created Sep 19, 2019
Fibonacci seqence written in Python.
View fibonacci.py
'''
written by: Bryan Angelo
'''
seq = []
# infinite loop
while 1:
if len(seq) == 0:
seq.append(1)
@angeloped
angeloped / pi.digits
Last active Sep 15, 2019
518,650 digits of pi.
View pi.digits
3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912983367336244065664308602139494639522473719070217986094370277053921717629317675238467481846766940513200056812714526356082778577134275778960917363717872146844090122495343014654958537105079227968925892354201995611212902196086403441815981362977477130996051870721134999999837297804995105973173281609631859502445945534690830264252230825334468503526193118817101000313783875288658753320838142061717766914730359825349042875546873115956286388235378759375195778185778053217122680661300192787661119590921642019893809525720106548586327
@angeloped
angeloped / pi.py
Last active Sep 13, 2019 — forked from markhamilton1/pi.py
pi is a Python script that computes each digit of the value of pi. As long as this script runs it continues to generate digits. As a matter of full disclosure, I did not write this. I am posting it here as a means of preserving the algorithm and making it available to others.
View pi.py
import sys
'''
Added some modificationss
1. saving line for every 1024 digits.
2. notify if it scored million.
'''
def calcPi():
q, r, t, k, n, l = 1, 0, 1, 1, 3, 3
@angeloped
angeloped / proxy_http-tor.py
Last active Sep 12, 2019
A truly minimal HTTP-Tor proxy.
View proxy_http-tor.py
# a truly minimal HTTP-Tor proxy
import sys
major_version = sys.version_info.major
if major_version == 2:
import SocketServer
import SimpleHTTPServer
elif major_version == 3:
import http.server as SimpleHTTPServer
View ch5_html_form_brute_force.py
#ch5_html_form_brute_force.py
from html.parser import HTMLParser
import urllib.request
import urllib.parse
import http.cookiejar
import queue
import threading
import sys
import os
@angeloped
angeloped / udpflood_scapy.py
Created Jul 27, 2019 — forked from nextrevision/udpflood_scapy.py
Send a flood of UDP packets to a specific UDP port
View udpflood_scapy.py
#!/usr/bin/env python
#
# Requires:
# - scapy
# - tcpreplay
import sys
from scapy.all import *
if len(sys.argv) != 6:
@angeloped
angeloped / remove_banner.js
Created Jul 24, 2019
Remove powered by weebly.com banner javascript.
View remove_banner.js
document.getElementById("signup-link-href").remove();
@angeloped
angeloped / download_HTML5Player_content.js
Last active Aug 16, 2019
HTML5Player Video Downloader using JavaScript. Proof of concept: xDxNxXxD
View download_HTML5Player_content.js
/*HTML5Player Video Downloader using JavaScript. Proof of concept: x_*n_*x*_x_ LOL! */
window.location=html5player.url_high;
/*
//or option 2:
obj=document.getElementsByClassName("transition")[2];
obj.setAttribute("href",html5player.url_high);
obj.innerHTML="<h1>" + html5player.video_title + "</h1>";
*/
You can’t perform that action at this time.