Skip to content

Instantly share code, notes, and snippets.

View shamim71's full-sized avatar

Shamim Ahmmed shamim71

View GitHub Profile
@shamim71
shamim71 / wifiscan.py
Last active August 29, 2015 14:16 — forked from gleicon/wifiscan.py
from scapy.all import *
PROBE_REQUEST_TYPE=0
PROBE_REQUEST_SUBTYPE=4
def PacketHandler(pkt):
if pkt.haslayer(Dot11):
if pkt.type==PROBE_REQUEST_TYPE and pkt.subtype == PROBE_REQUEST_SUBTYPE: #
PrintPacket(pkt)
// convenient Spring JDBC RowMapper for when you want the flexibility of Jackson's TreeModel API
// Note: Jackson can also serialize standard Java Collections (Maps and Lists) to JSON: if you don't need JsonNode,
// it's simpler and more portable to have Spring JDBC simply return a Map or List<Map>.
package org.springframework.jdbc.core;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;