This file contains 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 | |
f = open("out","rb") | |
data = f.read() | |
f.close() | |
state = False | |
a = [] | |
for c in data: | |
if c == 0xd or c == 0xa: | |
state = True |
This file contains 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
RW50ZXIgeW91ciBtZXNzYWdlIHRvIGVuY3J5cHQ6CqbSE5Z5OxBkaHWf3UafXRdVamhDj4wtkjEH | |
VGBoJp/NRocxKlR7BF+m6wakcDARMkoK |
This file contains 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
identification division. | |
program-id. otp. | |
environment division. | |
input-output section. | |
file-control. | |
select key-file assign to 'key.txt' | |
organization line sequential. | |
data division. |
This file contains 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 sys | |
from Crypto.Cipher import AES | |
import base64 | |
def encrypt(key, text): | |
s = '' | |
for i in range(len(text)): | |
s += chr((((ord(text[i]) - 0x20) + (ord(key[i % len(key)]) - 0x20)) % (0x7e - 0x20 + 1)) + 0x20) | |
return s |
This file contains 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
cmake_minimum_required(VERSION 2.8.11) | |
# Project name | |
project(gqrx) | |
set(${PROJECT_NAME}_MAJOR "2") | |
set(${PROJECT_NAME}_MINOR "11") | |
set(${PROJECT_NAME}_PATCH "5") | |
set(VERSION "${${PROJECT_NAME}_MAJOR}.${${PROJECT_NAME}_MINOR}.${${PROJECT_NAME}_PATCH}") | |
##set(VERSION "${${PROJECT_NAME}_MAJOR}.${${PROJECT_NAME}_MINOR}") | |
##add_definitions(-DVERSION="${VERSION}") |
This file contains 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 <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
IPAddress local_IP(192,168,1,1); | |
IPAddress gateway(192,168,1,1); | |
IPAddress subnet(255,255,255,0); | |
WiFiServer wifiServer(23); |
This file contains 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
void setup() { | |
Serial.begin(115200); | |
pinMode(13,OUTPUT); | |
digitalWrite(13,HIGH); | |
delay(10000); | |
Serial.println("GLITCH RDY"); | |
} | |
int glitchCtr = 0; | |
int secCtr = 1; |
This file contains 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
__sfr __at(0xff) POWEROFF; | |
__sfr __at(0xfe) DEBUG; | |
__sfr __at(0xfd) CHAROUT; | |
__xdata __at(0xff00) unsigned char FLAG[0x100]; | |
__sfr __at(0xfa) RAW_I2C_SCL; | |
__sfr __at(0xfb) RAW_I2C_SDA; | |
// I2C-M module/chip control data structure. | |
__xdata __at(0xfe00) unsigned char I2C_ADDR; // 8-bit version. |
This file contains 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 | |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <util/delay.h> | |
#define BAUD 9600 // define baud | |
#define BAUDRATE ((F_CPU)/(BAUD*16UL)-1) // set baud rate value for UBRR |
This file contains 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 binascii | |
import subprocess | |
# 9DD00 is strncmp in libc | |
# 4F440 is system in libc | |
# 0x4f2c5 execve("/bin/sh", rsp+0x40, environ) |