This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Tkinter | |
def make_textmenu(root): | |
global the_menu | |
the_menu = Tkinter.Menu(root, tearoff=0) | |
the_menu.add_command(label="Cut") | |
the_menu.add_command(label="Copy") | |
the_menu.add_command(label="Paste") | |
the_menu.add_separator() | |
the_menu.add_command(label="Select all") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from flask import Flask, flash, request, redirect, url_for | |
from werkzeug.utils import secure_filename | |
if not os.path.exists("uploads/"): | |
os.mkdir("uploads") | |
UPLOAD_FOLDER = 'uploads/' | |
ALLOWED_EXTENSIONS = {'txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Tkinter import * | |
root = Tk() | |
img = PhotoImage(file='b11.gif') | |
root.tk.call('wm', 'iconphoto', root._w, img) | |
root.mainloop() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
// Memory Retrieval Operation | MHIP kernel component | |
// 1/22/2023 | |
// 6 bit address/size | |
// A B C A B C | |
// 0 3 [ ] 1 3 [ ] | |
int SAM[] = {0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,0,0,0,0,1,1,1,0,1}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/angsize.htm | |
// angular size https://www.1728.org/angsize.htm | |
function angular_size(sz, r){ | |
const raddeg = 57.2957795130823; | |
var arctan = Math.atan( (.5*sz) / r ); | |
return arctan * 2 * raddeg; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
// Memory Hopping Operation | MHIP kernel component | |
// 1/21/2023 | |
// 6 bit address/size | |
// A B C A B C | |
// 0 3 [ ] 1 3 [ ] | |
int SAM[] = {0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,0,0,0,0,1,1,1,0,1}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// Boolean Comparing Operation | MHIP kernel component | |
// Bryan Pedrosa | |
// 1/20/2023 | |
// modes: | |
//[0x0]BOOL_EQ - equal | |
//[0x1]BOOL_LT - less than | |
//[0x2]BOOL_GT - greater than |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://check.torproject.org/api/ip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// 1/8/2022 | |
// modified version of https://github.com/ApOgEE/mingw-c-socket | |
// WORKS ON Linux kali 4.19.0-kali4-686-pae #1 SMP Debian 4.19.28-2kali1 (2019-03-18) i686 GNU/Linux | |
////////////////////////////////////////////////////////////////////////// | |
// CROSS-PLATFORMING A SOCKET PROGRAM | |
// See https://stackoverflow.com/questions/28027937/cross-platform-sockets |
NewerOlder