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 / 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 / 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 / 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 / imageicon.py
Created February 7, 2019 13:44
Tkinter window example with gif icon display.
from Tkinter import *
root = Tk()
img = PhotoImage(file='b11.gif')
root.tk.call('wm', 'iconphoto', root._w, img)
root.mainloop()
@angeloped
angeloped / get_serial_number.py
Last active February 2, 2024 09:55
Python code to get motherboard serial number. For Linux, MacOS, and Windows.
# wmic bios get serialnumber#Windows
# hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.hardware.uuid#Linux
# ioreg -l | grep IOPlatformSerialNumber#Mac OS X
import os, sys
def getMachine_addr():
os_type = sys.platform.lower()
if "win" in os_type:
command = "wmic bios get serialnumber"
elif "linux" in os_type:
command = "hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.hardware.uuid"
@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: