Skip to content

Instantly share code, notes, and snippets.

@JeanSairien
JeanSairien / keybase.md
Last active June 6, 2018 08:56
keybase

Keybase proof

I hereby claim:

  • I am jeansairien on github.
  • I am dr_redfish (https://keybase.io/dr_redfish) on keybase.
  • I have a public key ASBImxtMnIKU6jw8BY9FHArR48MejgFQkMiHSb_2v32pfQo

To claim this, I am signing this object:

@JeanSairien
JeanSairien / PDOExample.php
Created October 4, 2017 08:15 — forked from tournasdim/PDOExample.php
PDO prepared statement example (with/without POST-data)
<?php
// PDO without prepared statement
$connStr = 'mysql:host=localhost;dbname=world' ;
try
{
$conn = new PDO($connStr, 'root', '');
}
catch(PDOException $pe)
{
Help from here: http://gitm8.com/running-awus036nhr-in-virtualbox-kali/
and here: http://www.fixedbyvonnie.com/2015/04/welcome-to-kali-linux-part-2-of-3/#.VkPK8q6rTdQ
Adapter: http://www.amazon.com/gp/product/B0035APGP6
1. Download the VirtualBox image for Kali 2.0
2. Import it into VirtualBox
3. Set up the machine as normal
4. In the network tab disable the network interfaces
5. Change to the Ports tab
6. Change to the USB portion of the Ports tab