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
#!/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."
#!/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
<?php
$ord_array = array();
foreach ($sort_array as $key => $row) {
$ord_array[$key] = $row['field'];
}
array_multisort($ord_array, SORT_ASC, $sort_array);
?>
#!/usr/bin/python
# -*- coding: ISO-8859-15 -*-
#
# strsprox.py
# Autor: Silvio Giunge a.k.a kanazuchi <[email protected]>
#
import os
import re
import sys
#!/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: utf-8 -*-
#
# <[email protected]>
#
from SimpleXMLRPCServer import SimpleXMLRPCServer
from xmlrpclib import Binary
server = SimpleXMLRPCServer(('brutus.com.br', 9589), logRequests=True, allow_none=True)
@kanazux
kanazux / create_fb_conversation_files.py
Last active August 29, 2015 14:27
Create files for conversations on facebook backup
#!/usr/local/bin/python
# -*- coding: UTF-8 -*-
#
# kanazuchi <[email protected]>
#
import re
import sys
import bs4
from urllib2 import urlopen
@kanazux
kanazux / get_insta_info.py
Last active May 3, 2016 11:09
Get instagram info - followers, followed.
#!/usr/local/bin/python2.7
# -*- coding: utf-8 -*-
#
# Autor: Silvio Giunge Silva a.k.a Kanazuchi
# <[email protected]>
#
# URL para gerar o token http://www.pinceladasdaweb.com.br/instagram/access-token/
# Crie um arquivo com o token e user id separados por ; (ponto e virgula)
# EX: echo '198754745546.5bdsa1e6.70b4234e28749efs80521a4c21314a2sd9b;suasenha' >> instadata
#
@kanazux
kanazux / fix_files_ubuntu.pl
Last active December 7, 2015 13:56
install ubuntu server utm 100
#!/usr/bin/perl
#
# This script fixes problems when trying to make a bootable Ubuntu USB stick from an ISO image.
#
# How to use this script:
#
# 1. Make your bootable USB stick as per usual. I use "Linux Live USB creator".
#
# 2. Install perl
#
@kanazux
kanazux / install_ipsec_monitor.php
Last active February 22, 2016 14:32
Install ipsec monitos on cron and files
<?php
/*
* Autor: Silvio Giunge a.k.a kanazuchi
* <[email protected]>
*
*/
require_once("config.inc");
require_once("services.inc");