Skip to content

Instantly share code, notes, and snippets.

@dsiganos
dsiganos / README
Created September 29, 2020 20:47 — forked from duksis/README
Wi-Fi Protected Setup vulnerability VU#723755 brute force attack implementation in Python
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:
@dsiganos
dsiganos / DepositAndRefund.sol
Last active February 13, 2019 17:53
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
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];
}
@dsiganos
dsiganos / hello.sol
Created January 29, 2019 03:57
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
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);
#!/usr/bin/python
import requests
import json
username = ''
password = ''
projectname = ''
url = 'https://api.github.com/repos/%s/%s/issues' % (username, projectname)
@dsiganos
dsiganos / gmail.py
Created March 29, 2018 14:20
Access gmail and process emails from python
#!/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
#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);
[
"/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"
]