Skip to content

Instantly share code, notes, and snippets.

View angeloped's full-sized avatar

Angeloped angeloped

  • Philippines
View GitHub Profile
@angeloped
angeloped / WebServer.py
Created June 20, 2018 14:22 — forked from joncardasis/WebServer.py
A simple and quick HTTP web server in Python
"""
Author: Jonathan Cardasis
"""
import socket
import signal # Allow socket destruction on Ctrl+C
import sys
import time
import threading
@angeloped
angeloped / Facebook Like Script
Created August 25, 2018 13:59 — forked from jordanduncan221/Facebook Like Script
Very clean and simple Facebook like script
<?php
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
@angeloped
angeloped / dummy-web-server.py
Created December 13, 2018 14:07 — forked from bradmontgomery/dummy-web-server.py
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost
@angeloped
angeloped / task_manager_listing.py
Last active December 14, 2018 06:04
Tested and working on Linux and Windows. I added OSX, I think it'll work. :)
import os, sys
"""
Author: https://github.com/angeloped
Do anything you want with this code.
"""
# determine operating system
os_type = sys.platform.lower()
@angeloped
angeloped / clnt.py
Created December 25, 2018 11:04
This authentication is messing me up! I know that the logic is correct but it's stupid. xD
#!/usr/bin/python
import pyaes
import random
from hashlib import md5
import base64
import urllib
key="ruoski"
class ENCRYPTION:
def __init__(self,key):
/**
* jQuery 2.1.3's parseHTML (without scripts options).
* Unlike jQuery, this returns a DocumentFragment, which is more convenient to insert into DOM.
* MIT license.
*
* If you only support Edge 13+ then try this:
function parseHTML(html, context) {
var t = (context || document).createElement('template');
t.innerHTML = html;
return t.content.cloneNode(true);
@angeloped
angeloped / eula_agreeall.cmd
Created February 7, 2019 13:37
Script to prevent SysInternals EULA agreements pop-ups in the future use.
reg.exe ADD "HKCU\Software\Sysinternals\AccessChk" /v EulaAccepted /t REG_DWORD /d 1 /f
reg.exe ADD "HKCU\Software\Sysinternals\AccessEnum" /v EulaAccepted /t REG_DWORD /d 1 /f
reg.exe ADD "HKCU\Software\Sysinternals\AdExplorer" /v EulaAccepted /t REG_DWORD /d 1 /f
reg.exe ADD "HKCU\Software\Sysinternals\AdInsight" /v EulaAccepted /t REG_DWORD /d 1 /f
reg.exe ADD "HKCU\Software\Sysinternals\AdRestore" /v EulaAccepted /t REG_DWORD /d 1 /f
reg.exe ADD "HKCU\Software\Sysinternals\Autologon" /v EulaAccepted /t REG_DWORD /d 1 /f
reg.exe ADD "HKCU\Software\Sysinternals\Autoruns" /v EulaAccepted /t REG_DWORD /d 1 /f
reg.exe ADD "HKCU\Software\Sysinternals\BgInfo" /v EulaAccepted /t REG_DWORD /d 1 /f
reg.exe ADD "HKCU\Software\Sysinternals\BlueScreen" /v EulaAccepted /t REG_DWORD /d 1 /f
reg.exe ADD "HKCU\Software\Sysinternals\CacheSet" /v EulaAccepted /t REG_DWORD /d 1 /f
@angeloped
angeloped / screen_blocker.py
Created March 11, 2019 13:54
This is the basic screen blocker with a background image.
from PIL import Image, ImageTk
try:
import Tkinter as tk
except ImportError:
import tkinter as tk
try:
import ttk
except ImportError:
@angeloped
angeloped / get_available_net_interface.py
Created March 24, 2019 13:57
Get available network interface.
import psutil
addrs = psutil.net_if_addrs()
print(addrs.keys())
@angeloped
angeloped / tz_date.php
Last active March 24, 2019 14:13
Unix timestamp by timezone in PHP.
<?php
# note: $_REQUEST["tz"] is variable of your timezone. arg example: Asia/Manila
if(isset($_REQUEST["tz"])){
date_default_timezone_set($_REQUEST["tz"]);
$datetime = new DateTime();
echo $datetime->format('Y-m-d H:i:s');
die();
}
?>