Skip to content

Instantly share code, notes, and snippets.

View Jack2's full-sized avatar

JAEKI KIM Jack2

View GitHub Profile
from socket import *
s = socket(AF_INET, SOCK_STREAM)
s.connect(('192.168.0.8',4223))
data = "01"+hex(50-6+len(pdu)/2)[2:]+"000005010008002000"+hex(38-6+len(pdu)/2)[2:]+"0001"+hex(0x1d-6+len(pdu)/2)[2:]+"0006"+hex(0x1a-6+len(pdu)/2)[2:]+"00079128019291900001000b811070820289f90000"+"1149B7BA3CA6A7DF6ED0B43E1E97E773"+"200300010101"
s.send(data.decode('hex'))
s.close()
@Jack2
Jack2 / peach-wav.xml
Created September 9, 2015 00:50
Peach Pit for .wav fuzzing
<?xml version="1.0" encoding="utf-8"?>
<Peach xmlns="http://peachfuzzer.com/2012/Peach" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://peachfuzzer.com/2012/Peach /peach/peach.xsd">
<!-- Defines the common wave chunk -->
<DataModel name="Chunk">
<String name="ID" length="4" padCharacter=" " />
<Number name="Size" size="32" >
<Relation type="size" of="Data" />
/*
* KEY_SNIFF.c
*
* Created: 2015-02-25 오후 2:48:34
* Author: Jaeki
*/
#include <avr/io.h>
#include <avr/interrupt.h>
user@ubuntuvm:~/Secu2015$ cat vuln.c
#include <stdio.h>
void func(char *str){
char buffer[256];
sprintf(buffer,"%s", str);
return;
}
int main(){
user@ubuntuvm:~$ nmap -p 7547 183.114.151.0/24
Starting Nmap 6.40 ( http://nmap.org ) at 2015-07-01 10:13 EDT
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
Stats: 0:01:58 elapsed; 0 hosts completed (0 up), 256 undergoing Ping Scan
Ping Scan Timing: About 46.68% done; ETC: 10:18 (0:02:16 remaining)
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
from tkinter import *
class Calc():
def __init__(self):
self.total = 0
self.current = ""
self.new_num = True
self.op_pending = False
self.op = ""
self.eq = False
from parse import *
import socket #for sockets
import sys #for exit
try:
#create an AF_INET, STREAM socket (TCP)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
except socket.error, msg:
print 'Failed to create socket. Error code: ' + str(msg[0]) + ' , Error message : ' + msg[1]
sys.exit();
@Jack2
Jack2 / FlashDumper.c
Last active August 29, 2015 14:18
플래시 메모리 펌웨어 덤프
/*
* FlashDumper.c
*
* Created: 2015-04-04 오후 5:17:30
* Author: Jaeki
*/
#define F_CPU 16000000UL
#include <avr/io.h>
#include <util/delay.h>
@Jack2
Jack2 / jpg_downloader.py
Created March 26, 2015 09:21
Amecenter 1503 Downloader by Jack2
import urllib
from bs4 import BeautifulSoup
## Print all JPGs from a Site
def down_from_site(type,url):
soup = BeautifulSoup(urllib.urlopen(url))
#EDIT - <a> tag + <class> name tag
links=soup.findAll('a')
#print links
x=[]
#-*- coding: utf-8 -*-
import urllib
import csv
from bs4 import BeautifulSoup
#----------------------------------------------------------------------
## save all links from URL
def grap_type_from_url(url,tag1,tag2):
soup = BeautifulSoup(urllib.urlopen(url))
links=soup.findAll(tag1)
x=[]