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 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() |
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
<?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" /> |
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
/* | |
* KEY_SNIFF.c | |
* | |
* Created: 2015-02-25 오후 2:48:34 | |
* Author: Jaeki | |
*/ | |
#include <avr/io.h> | |
#include <avr/interrupt.h> |
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
user@ubuntuvm:~/Secu2015$ cat vuln.c | |
#include <stdio.h> | |
void func(char *str){ | |
char buffer[256]; | |
sprintf(buffer,"%s", str); | |
return; | |
} | |
int main(){ |
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
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 |
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 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 |
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 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(); |
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
/* | |
* FlashDumper.c | |
* | |
* Created: 2015-04-04 오후 5:17:30 | |
* Author: Jaeki | |
*/ | |
#define F_CPU 16000000UL | |
#include <avr/io.h> | |
#include <util/delay.h> |
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 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=[] |
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
#-*- 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=[] |