Archives
Trending
Support
Login
CIDR checking
Show paste
list ($startIP, $rPrefix) = split('/', $row['ban_ip']);
$rPrefix = (~0) << (32 - $rPrefix);
$startIP = ip2long($startIP) & $rPrefix;
$userIP = ip2long($ip) & $rPrefix;
if ($userIP == $startIP)
Walking through Directories - Python
Show paste
#!/usr/bin/env python
import os
for root, dirs, files in os.walk('/home/user'):
print root, dirs, files
belledonna in petals
Show paste
/*----------------------------------------------
layout name: belledonna petals
layout base: tabula rasa
belledonna in leaves
Show paste
/*----------------------------------------------
layout name: belledonna leaves
layout base: tabula rasa
Keystoke Logger with Backspace Warning
Show paste
#!/bin/bash
kb="/dev/input/by-path/platform-i8042-serio-0-event-kbd" #keyboard device
logfile="/tmp/bs.log"
Auth table
Show paste
user_id smallint(3) auto increment NOT NULL
username varchar(32) NOT NULL
password char(64) NOT NULL
session_id varchar(32) NOT NULL
failed_logins tinyint(1) NOT NULL
by the beech in tree bark
Show paste
/* Cleaned CSS: */
/*----------------------------------------------
layout name: by the beech
by the beech in foliage
Show paste
/* Cleaned CSS: */
/*----------------------------------------------
layout name: by the beech
by the beech
Show paste
/* Cleaned CSS: */
/*----------------------------------------------
layout name: by the beech
by the beech in neutral
Show paste
/* Cleaned CSS: */
/*----------------------------------------------
layout name: by the beech
Previous
1
2
...
2671
2672
2673
2674
2675
...
2679
2680
Next