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
#!/usr/bin/env python3 | |
#"Copyright 2009 Bryan Harris" | |
# | |
#This file is part of bin2bmp.py. | |
# | |
# bin2bmp.py is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# |
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 gmpy2 | |
n1=21660190931013270559487983141966347279666044468572000325628282578595119101840917794617733535995976710097702806131277006786522442555607842485975616689297559583352413160087163656851019769465637856967511819803473940154712516380580146620018921406354668604523723340895843009899397618067679200188650754096242296166060735958270930743173912010852467114047301529983496669250671342730804149428700280401481421735184899965468191802844285699985370238528163505674350380528600143880619512293622576854525700785474101747293316814980311297382429844950643977825771268757304088259531258222093667847468898823367251824316888563269155865061 | |
e1=65537 | |
c1=11623242520063564721509699039034210329314238234068836130756457335142671659158578379060500554276831657322012285562047706736377103534543565179660863796496071187533860896148153856845638989384429658963134915230898572173720454271369543435708994457280819363318783413033774014447450648051500214508699056865320506104733203716242071136228269326451412159760818676814129428252523248822316 |
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
#!/usr/bin/perl | |
# | |
# PadBuster v0.3.3 - Automated script for performing Padding Oracle attacks | |
# Brian Holyfield - Gotham Digital Science (labs@gdssecurity.com) | |
# | |
# Credits to J.Rizzo and T.Duong for providing proof of concept web exploit | |
# techniques and S.Vaudenay for initial discovery of the attack. Credits also | |
# to James M. Martin (research@esptl.com) for sharing proof of concept exploit | |
# code for performing various brute force attack techniques, and wireghoul (Eldar | |
# Marcussen) for making code quality improvements. |
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
define list_order | |
x/14gx 0x006ccd60 | |
end | |
define show_order | |
set $order_p = *(unsigned long *)(0x6ccd60+($arg0*8)) | |
printf "chunk: %x mem: %x\n",$order_p-16,$order_p | |
x/2gx ($order_p-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
#### | |
# https://github.com/SimonTheCoder | |
#### | |
set disassemble-next-line on | |
set pagination off | |
define lk | |
target remote: 1234 | |
end |
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 pwn import * | |
import binascii | |
# # Create a symbol file for GDB debugging | |
# try: | |
# gdb_symbols = ''' | |
# typedef struct note_struct{ | |
# char *malloc_ptr; | |
# void *cfi_check; | |
# }note_struct; |
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
loop_key = [0xab,0xdd,0x33,0x54,0x35,0xef] | |
test_r = [0xfb,0x9e,0x67,0x12,0x4e,0x9d,0x98,0xab,0x00, | |
0x06,0x46,0x8a,0xf4,0xb4,0x06,0x0b,0x43, | |
0xdc,0xd9,0xa4,0x6c,0x31,0x74,0x9c,0xd2,0xa0] | |
#print(chr(0xfb ^ 0xab)) | |
l = [] |
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
# 分解模数n | |
def rsa_moder(n): | |
base = 2 | |
while base < n: | |
if n % base == 0: | |
return base, n // base | |
base += 1 | |
# 求欧拉函数f(n) |
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 pwn import * | |
from binascii import a2b_hex, b2a_hex, a2b_qp | |
from pbkdf2 import PBKDF2 | |
import hmac | |
from hashlib import sha1 | |
import struct | |
from Crypto.Cipher import AES | |
context.log_level ="debug" | |
io = remote("pwn.jarvisoj.com", 9893) |