Skip to content

Instantly share code, notes, and snippets.

@dsiganos
dsiganos / README
Created Sep 29, 2020 — forked from duksis/README
Wi-Fi Protected Setup vulnerability VU#723755 brute force attack implementation in Python
View README
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 Feb 13, 2019
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=
View DepositAndRefund.sol
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 Jan 29, 2019
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=
View hello.sol
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);
View export github issues to json
#!/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 Mar 29, 2018
Access gmail and process emails from python
View gmail.py
#!/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
View i2c
#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);
View gist:d8ac006759e122feb1c9fd212d979ec6
[
"/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"
]