This file contains hidden or 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 | |
//https://stackoverflow.com/a/34571089/5155484 | |
typedef unsigned char uchar; | |
static const std::string b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";//= | |
static std::string base64_encode(const std::string &in) { | |
std::string out; | |
int val=0, valb=-6; | |
for (uchar c : in) { |
This file contains hidden or 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 <iostream> | |
#include <string> | |
#include <Windows.h> | |
void remMediaDrives(){ | |
string value = ""; | |
for(char i=65; i<=90; i++){ | |
value = i; | |
value += ':'; |
This file contains hidden or 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 <Windows.h> | |
#include <Iphlpapi.h> | |
#include <Assert.h> | |
#include <string> | |
#pragma comment(lib, "iphlpapi.lib") | |
char* getMAC(); |
This file contains hidden or 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 <Windows.h> | |
#include <Wincrypt.h> | |
#include <stdio.h> | |
using namespace std; | |
char* HashMD5(char* data, DWORD *result) | |
{ | |
DWORD dwStatus = 0; | |
DWORD cbHash = 16; |
This file contains hidden or 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 string | |
def hexdump(src, length=16, sep='.'): | |
DISPLAY = string.digits + string.letters + string.punctuation | |
FILTER = ''.join(((x if x in DISPLAY else '.') for x in map(chr, range(256)))) | |
lines = [] | |
for c in xrange(0, len(src), length): | |
chars = src[c:c+length] | |
hex = ' '.join(["%02x" % ord(x) for x in chars]) | |
if len(hex) > 24: |
NewerOlder