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
#!/bin/bash | |
echo "Your code please." | |
FOLDER=$(mktemp -d) | |
cp flag.txt "$FOLDER" | |
cd "$FOLDER" | |
mkdir src | |
cat <<EOF > Cargo.toml | |
[package] | |
name = "funsafe" |
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 , sys , pefile , validators , re , base64 | |
from capstone import * | |
from capstone.x86 import * | |
''' | |
Author: Mohamed Ashraf (@X__Junior) | |
Usage: | |
python3 Statc_Stealer.py path_to_sample | |
''' |
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
# Add this line in /etc/apt/sources.list | |
# deb http://httpredir.debian.org/debian/ bullseye main contrib non-free | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138 | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9 | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 605C66F00D6C9793 | |
sudo apt-get update --allow-unauthenticated | |
# this will produce an error... go with it | |
sudo apt-get install firmware-atheros |
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
use radius2::{Radius, RadiusOption, State, vc}; | |
fn main() { | |
let options = [RadiusOption::SimAll(true)]; | |
let mut radius = Radius::new_with_options(Some("challenge"), &options); | |
let mut state = radius.callsym_state("main"); | |
let flag = state.symbolic_value("flag", 8*0x18); | |
state.constrain_bytes(&flag, "[ -~]"); | |
radius.set_argv_env(&mut state, &[vc(0), flag.clone()], &[]); |
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
""" | |
MIT License | |
Copyright (c) 2023 David Buchanan | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
./tokenizer_checklist.chk 50 | |
./tokenizer.model 499723 | |
./7B/checklist.chk 100 | |
./7B/consolidated.00.pth 13476939516 | |
./7B/params.json 101 | |
./13B/checklist.chk 154 | |
./13B/consolidated.00.pth 13016334699 | |
./13B/consolidated.01.pth 13016334699 | |
./13B/params.json 101 | |
./30B/checklist.chk 262 |
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 base64 import b64decode | |
from Crypto.Cipher import ARC4 | |
#s = "mpntingadxedMTBjMDc2NGZiNDNiOTYzMjk3NjhkZTRmM2ZlOWMyMGE5NDAwMGUwMzFmMmQ0ZGIxMDdlOGY3ODE4ZWJlMGVhNzlhNTQ=" | |
s = "wfycyqhbrwfxMWFjMWYxOGM1MjljZDI1M2UxNjUzNDY2ZTRlNDYwNDk5MWUxYjc2OTVjODc2YWYxOTI0YTgxYzUwMWQ4NGUzZGIxZjYwMGVjZWViNDhkYTYyMTkyNjQ0MjllYzhhMDUyZjg2MGM3NGEyYjZkYmU=" | |
def decrypt_string(s): | |
key = s[:12].encode() | |
data = bytes.fromhex(b64decode(s[12:]).decode()) | |
c = ARC4.new(key=key) |
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 opcode import opmap | |
import dis | |
code = b"" | |
code += bytes([opmap["LOAD_CONST"], 0]) | |
code += bytes([opmap["GET_LEN"], 0]) | |
code += bytes([opmap["IMPORT_FROM"], 0]) | |
code += bytes([opmap["ROT_TWO"], 0]) | |
code += bytes([opmap["CALL_FUNCTION"], 1]) |