Quantcast
Channel: EmotiCODE - Snippets and Source Code Search Engine
Browsing all 18 articles
Browse latest View live

Bash - Stat Apache website

show informations about unique visitors on your site you can put inside cron.monthly

View Article



Bash - Log Rotate website

you should put this script inside cron.daily every day makes data backup of html code, sql and logs copy last backup on usb support dir hierarchy for example: /home/user1/--> html_code...

View Article

Bash - Grab html code with curl

Grab html page from target read a wordlist dir.txt example "/proc/uptime"

View Article

Bash - Self-signed Certificate script

create a self-signed Certificate with openssl you just chose the name of certificate (for apache or other services) and follow the openssl's instructions

View Article

Apache - .htaccess redirect all url to single page

simple command for redirect all url (except file like css) to index.php

View Article


Apache - Apache Common non-standard Response Headers

some new non-standard headers for prevent (not always :O) xss, csrf, clickjacking. http://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Common_non-standard_response_headers

View Article

Bash - MAC Spoofing

2 different ways to spoof your MAC address with random hex using macchanger (yum/apt install macchanger) or openssl

View Article

Python - Python Test Method

#!/usr/bin/python # -*- coding: utf-8 -*- '''Dimostra quale metodo è più veloce per modificare le stringhe. Unione = join Sostituzione = % Concatenazione = +''' def join_test(s, i): ...

View Article


Python - Colors for shell

simple way for write string with colors in bash # E = Colors() # E.Print('[P?]','this', 'is a','test')

View Article


PHP Class Parsing Image

I created this class, to control GET access to my images. my example: .htacces mod_rewrite all images link to pippo.php; pippo.php receive get param and build class with right path. see docu for info...

View Article

PHP Class Parsing Js/Css

I created this class, to control GET access to my script/style files. my example: .htacces mod_rewrite all script/style link to pippo.php; pippo.php receive get param and build class with right path....

View Article

String Concatenation Comparison

https://wiki.python.org/moin/PythonSpeed/PerformanceTips#String_Concatenation Python String Concatenation. comparison speed

View Article

Loop Comparison

https://wiki.python.org/moin/PythonSpeed/PerformanceTips#Loops Python Loop. comparison speed

View Article


Initializing Dictionary Comparison

https://wiki.python.org/moin/PythonSpeed/PerformanceTips#Initializing_Dictionary_Elements Python Initializing Dictionary. comparison speed

View Article

Import Comparison

https://wiki.python.org/moin/PythonSpeed/PerformanceTips#Import_Statement_Overhead Python Import. comparison speed

View Article


Data Aggregation Comparison

https://wiki.python.org/moin/PythonSpeed/PerformanceTips#Data_Aggregation Python Data Aggregation. comparison speed

View Article

Re-Map Comparison

https://wiki.python.org/moin/PythonSpeed/PerformanceTips#Re-map_Functions_at_runtime Python Re-Map. comparison speed

View Article


Hash Comparison

Python Hash. comparison speed

View Article
Browsing all 18 articles
Browse latest View live




Latest Images