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
__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) |
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 <stdio.h> | |
#include <math.h> | |
// take a hex number and make it back into the original float | |
int main(int argc, char **argv) | |
{ | |
if(argc != 2) | |
{ | |
return -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
// | |
// This file was generated by the Retargetable Decompiler | |
// Website: https://retdec.com | |
// Copyright (c) 2019 Retargetable Decompiler <info@retdec.com> | |
// | |
#include <signal.h> | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include <stdio.h> |
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
/* | |
* wiegand_thief.c | |
* | |
*/ | |
#define F_CPU 16000000UL | |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include <stdlib.h> | |
#include <stdio.h> |
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. HackMe. | |
DATA DIVISION. | |
WORKING-STORAGE SECTION. | |
01 SUBPRG. | |
02 TMPNAME PIC X(10). | |
02 TMPSCORE PIC 99. | |
02 SUBPRGARG PIC X(20). | |
02 SUBPRGNAME PIC X(20). |