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
[ | |
"/ip4/10.189.102.241/tcp/9096/ipfs/Qmdo7ML44MUmqHCqBsAZsv1WKMCQh3kjcktGA3ewHjWjC6", | |
"/ip4/10.189.102.255/tcp/9096/ipfs/QmUPavTLbQqw89HsUPWRMuFs6SS54FGcSKLAmFF9hs6EZC", | |
"/ip4/10.189.103.0/tcp/9096/ipfs/QmR2qzY2jknHDPG4pngt3fdYrCfWay2w9iXAr6GmZNUBfq", | |
"/ip4/10.189.103.10/tcp/9096/ipfs/QmaKqVtAdqCA5FEZu4XiZmBMcEAsjXBAj7fQii4LFd8fMT" | |
] |
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 "mbed.h" | |
I2CSlave slave(PA_9,PA_10); //configuring pins p27, p28 as I2Cslave | |
Serial pc (USBTX,USBRX); | |
void split(float); //function to split 4 bcurrentte data | |
void write_to_master(char); //function to write data to master | |
void FUNC_I2C_SLAVE_MAIN(); | |
DigitalOut myled(LED1); | |
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 requests | |
import json | |
username = '' | |
password = '' | |
projectname = '' | |
url = 'https://api.github.com/repos/%s/%s/issues' % (username, projectname) |
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
pragma solidity >=0.4.22 <0.6.0; | |
contract HelloWorld { | |
string greeting = "Hello world"; | |
address last_updater; | |
mapping (address => string[]) public greetings_map; | |
event HelloEvent(string); |
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
pragma solidity >=0.4.22 <0.6.0; | |
contract DepositAndRefund { | |
mapping (address => uint) public balances; | |
function get_balance(address party) public view returns (uint) { | |
return balances[party]; | |
} | |
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
PoC implementation of a brute force attack against WPS - PIN External Registrar | |
My test environment was Backtrack 5R1 + an Atheros USB adapter. | |
I used a mac80211/carl9170 driver but any mac80211-based driver should be ok. | |
DEPENDENCIES: | |
PyCrypto | |
Scapy (2.2.0) (does not come with Backtrack) | |
USAGE: |
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 | |
# | |
# https://yuji.wordpress.com/2011/06/22/python-imaplib-imap-example-with-gmail | |
# | |
# To access gmail emails you must setup two factor authentication and then | |
# create an application specific password to the email bypassing the | |
# two factor authentication. | |
import imaplib | |
import email |