Skip to content

Instantly share code, notes, and snippets.

View JoyChou93's full-sized avatar
🍎
Security Black Technology

JoyChou JoyChou93

🍎
Security Black Technology
View GitHub Profile
@JoyChou93
JoyChou93 / Curl.php
Last active October 12, 2017 13:39
修复Typecho SSRF的Curl.php代码 代码路径var/Typecho/Http/Client/Adapter/Curl.php
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* CURL适配器
*
* @author qining
* @category typecho
* @package Http
* @copyright Copyright (c) 2008 Typecho team (http://www.typecho.org)
* @license GNU General Public License 2.0
@JoyChou93
JoyChou93 / Socket.php
Created October 12, 2017 12:26
修复Typecho SSRF的Socket.php代码 代码路径var/Typecho/Http/Client/Adapter/Socket.php
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Socket适配器
*
* @author qining
* @category typecho
* @package Http
* @copyright Copyright (c) 2008 Typecho team (http://www.typecho.org)
* @license GNU General Public License 2.0
@JoyChou93
JoyChou93 / dirty.c
Created June 6, 2018 07:12
Dirty Cow EXP
//
// This exploit uses the pokemon exploit of the dirtycow vulnerability
// as a base and automatically generates a new passwd line.
// The user will be prompted for the new password when the binary is run.
// The original /etc/passwd file is then backed up to /tmp/passwd.bak
// and overwrites the root account with the generated line.
// After running the exploit you should be able to login with the newly
// created user.
//
// To use this exploit modify the user values according to your needs.
@JoyChou93
JoyChou93 / watermark.js
Last active September 29, 2018 11:48
watermark 水印
```javascript
function checkWaterStatus(domain){
var otdiv = document.getElementById('joychou');
if(!otdiv) {
watermark.load({watermark_txt: domain})
watermark.load({watermark_txt: domain, watermark_x:100, watermark_y:100, watermark_alpha: 0.01})
}
}
// 定时器
@JoyChou93
JoyChou93 / ReadWriteExcelFile.java
Created August 30, 2019 08:43 — forked from madan712/ReadWriteExcelFile.java
Read / Write Excel file (.xls or .xlsx) using Apache POI
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;