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
package iaik.pgp.demos; | |
import iaik.pgp.exceptions.PGPException; | |
import iaik.pgp.utils.HexConverter; | |
import iaik.security.provider.IAIK; | |
import java.security.InvalidAlgorithmParameterException; | |
import java.security.InvalidKeyException; | |
import java.security.NoSuchAlgorithmException; |
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
% gpg --gen-revoke 29743D54EDCBB855 > revocation.asc | |
sec 1024R/29743D54EDCBB855 2014-11-10 JavaPrivacyGuard <[email protected]> | |
Create a revocation certificate for this key? (y/N) y | |
Please select the reason for the revocation: | |
0 = No reason specified | |
1 = Key has been compromised | |
2 = Key is superseded | |
3 = Key is no longer used |
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 urlparse import urlparse, parse_qs | |
import urllib2 | |
videoid = "bMSTtWtzV-A" | |
title = parse_qs(urlparse("/?" + urllib2.urlopen("http://youtube.com/get_video_info?video_id=" + videoid).read()).query)['title'] | |
print title | |
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 urlparse import urlparse, parse_qs | |
import urllib2 | |
videoid = "bMSTtWtzV-A" | |
response = urllib2.urlopen("http://youtube.com/get_video_info?video_id=" + videoid) | |
query = urlparse("/?" + response.read()).query | |
title = parse_qs(query)['title'] |
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
% python attack_blackbox3.py | |
[*] #################################################################### | |
[*] ######## first box | |
[+] Opening connection to blackbox_ced7f267475a0299446fa86c26d77161.quals.shallweplayaga.me on port 18324: Done | |
[DEBUG] Received 0x19 bytes: | |
'You need to open the box!' | |
[DEBUG] Received 0xb2 bytes: | |
'\n' |
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 socket | |
import random | |
host = "blackbox_ced7f267475a0299446fa86c26d77161.quals.shallweplayaga.me" | |
port = 18324 | |
inputs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!\"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ " | |
s = socket.socket() | |
s.connect((host, port)) |
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 json, requests | |
resp = requests.get(url="http://realraum.at/status.json") | |
data = json.loads(resp.text) | |
print data['state']['message'] | |
print data['state']['lastchange'] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/**************************************************************************** | |
** | |
** Copyright (C) 2015 Graz University of Technology | |
** | |
** Contact: [email protected] | |
** | |
** IT-SECURITY LICENSE | |
** Version 1.0, 12th of March 2015 | |
** | |
** This framework may only be used within the IT-Security exercises 2015. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.