Skip to content

Instantly share code, notes, and snippets.

View kanazux's full-sized avatar
🏠
Working from home

Silvio Giunge a.k.a kanazuchi kanazux

🏠
Working from home
View GitHub Profile
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# <[email protected]>
#
from SimpleXMLRPCServer import SimpleXMLRPCServer
from xmlrpclib import Binary
server = SimpleXMLRPCServer(('brutus.com.br', 9589), logRequests=True, allow_none=True)
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Kanazuchi <[email protected]>
#
import os
import re
for x in [ x for x in os.listdir('.') if '.mp4' in x ]:
#!/usr/bin/python
# -*- coding: ISO-8859-15 -*-
#
# strsprox.py
# Autor: Silvio Giunge a.k.a kanazuchi <[email protected]>
#
import os
import re
import sys
<?php
$ord_array = array();
foreach ($sort_array as $key => $row) {
$ord_array[$key] = $row['field'];
}
array_multisort($ord_array, SORT_ASC, $sort_array);
?>
#!/bin/sh
sites="/root/url_list"
fdnss="/root/fdnss"
[ -f $fdnss ] && /bin/rm $fdnss
dnss=`cat /etc/resolv.conf | egrep '^nameserver' | egrep -v '127.0.0.1|8.8.8.8' | awk '{print $2}' | sort -u >> /root/fdnss`
for site in `cat $sites`; do
g_dns=`dig +short $site 8.8.8.8 | head -1`
for dns in `cat $fdnss`; do
#!/bin/sh
#
# Bruno Antunes
# Silvio Giunge - <[email protected]>
#
if [ "$1" = "" -o "$1" = "-h" -o "$1" = "--help" ] || [ "$1" = "edit" -a "$2" = "" ]; then
echo ""
echo "Usage: sh block-domains.sh <list|edit> <username>"
echo "sh block-domains.sh <list> | List all users."
@kanazux
kanazux / natd.conf
Created April 15, 2015 18:02
Configure NAT with IPFW and NATD on FreeBSD
interface re0
dynamic yes
use_sockets yes
same_ports yes
unregistered_only yes
@kanazux
kanazux / display_info.py
Last active March 28, 2017 20:26
display info ezio 300
#!/usr/local/bin/python
# -*- coding: UTF-8 -*-
#
# Author Silvio Giunge <[email protected]>
# Display system info using ezio drivers
# For FreeBSD 8.1 use to compile the drivers on the version 9.1
#
import os
@kanazux
kanazux / create_cidrs_files.py
Created March 11, 2015 15:03
get the country cidrs
#!/usr/local/bin/python
# -*- coding: UTF-8 -*-
#
# Autor: Silvio Giunge a.k.a kanazuchi
# <[email protected]>
#
import bs4
import requests
@kanazux
kanazux / scrp_proxy.py
Last active August 29, 2015 14:16
Crawler(zinho) com bs4 request e wget
#!/usr/bin/python
# -*- coding: ISO-8859-15 -*-
#
# strsprox.py
# Autor: Silvio Giunge a.k.a kanazuchi <[email protected]>
#
import os
import re
import sys