Skip to content

Instantly share code, notes, and snippets.

View phoenixg's full-sized avatar
😘
Fall in love

Phx phoenixg

😘
Fall in love
  • Shanghai, China
View GitHub Profile
@phoenixg
phoenixg / header_http_status_codes.php
Created April 6, 2013 14:02
PHP header() for sending HTTP status codes
<?php
/*
参考自:
http://darklaunch.com/2010/09/01/http-status-codes-in-php-http-header-response-code-function
http://snipplr.com/view/68099/
*/
function HTTPStatus($num) {
$http = array(
@phoenixg
phoenixg / 4ngel.webshell.php
Created September 7, 2013 13:12
php渗透
<?php
// 转载自: http://blog.csdn.net/mypc2010/article/details/7771592
/*****************************************************************************
===================== 请误用于非法用途,造成一切后果与本人无关。====================
发布此版本是为了纪念安全天使曾经的辉煌。
感谢你们与我一同走过:Sniper\Super·Hei\kEvin1986\saiy\wofeiwo。
感谢所有的朋友们、兄弟们。多谢你们的关心和支持!
选择在1月7日发布是为了纪念我老婆的生日,预祝我在本命年里。咸鱼翻身!
====================== 最后预祝安全天使的每一位朋友飞黄腾达 =======================
Codz by angel(4ngel)

The Laracasts PHPStorm theme - modified.

This is a slightly modified version of the great Laracasts PHPStorm theme. I've added some styles for Verions Control (add, modified, deleted line...) and fixed some missing things like warnings.

Download

image

Mac: Add to ~/Library/Preferences/WebIde80/colors

@phoenixg
phoenixg / getAddressList_QQ.js
Last active July 1, 2019 10:50 — forked from justjavac/getAddressList_QQ.js
获取QQ群成员QQ号和昵称列表
var ids = document.querySelectorAll(".member_id");
var names = document.querySelectorAll(".member_name");
var output = "", length = ids.length;
for(var i=0; i<length; i++){
output += ids[i].innerHTML.slice(1,-1) + ":" + names[i].innerHTML + "\n";
}
console.log(output);
@phoenixg
phoenixg / lanker.backdoor.html
Created September 7, 2013 13:37
lanker一句话后门客户端3.0
<HTML><HEAD>
<!-- codz by LANKER(QQ:18779569) 2005/1/1-->
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<style>
<!--
td {font-size:8pt; color: #666666;font-family:Verdana}
INPUT {font-size:9pt;BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; COLOR: #666666; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #ffffff}
textarea {font-size:9pt;BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; COLOR: #666666; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #ffffff}
select {font-size:9pt;BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; COLOR: #666666; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #ffffff}
@phoenixg
phoenixg / noip.sh
Created February 3, 2014 16:03
树莓派设置动态DNS(使用noip服务)Raspberry Pi Beginner : Dynamic DNS
#! /bin/sh
# /etc/init.d/noip
### BEGIN INIT INFO
# Provides: noip
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Simple script to start a program at boot
@phoenixg
phoenixg / callback.php
Created April 10, 2013 14:04
原作者称:QQ的账号登录及api操作,使用oauth 2.0。官方提供的sdk都太过庞大,这是我自己简化的,提供简单的账号登录、获取个人信息、发布分享等功能,如果需要其他功能可以根据官方的api文档自行添加。
<?php
//授权回调页面,即配置文件中的$callback_url
session_start();
require_once('config.php');
require_once('qq.php');
if(isset($_GET['code']) && trim($_GET['code'])!=''){
$qq=new qqPHP($qq_k, $qq_s);
$result=$qq->access_token($callback_url, $_GET['code']);
}
#!/usr/bin/python
#-----------------------------------
# Send SMS Text Message
#
# Author : Matt Hawkins
# Site : http://www.raspberrypi-spy.co.uk/
# Date : 30/08/2012
#
# Requires account with TxtLocal
# http://www.txtlocal.co.uk/?tlrx=114032
/**
* 微信公众平台 fakeid 爬取
* Usage: casperjs test.js 123456@qq.com password
* # phantomjs --version
* 1.9.7
* # casperjs --version
* 1.1.0-beta3
--ignore-ssl-errors=yes ???
*/
@phoenixg
phoenixg / youku.address.sniffer.php
Created January 29, 2014 05:05
优酷视频地址嗅探脚本
<?php
// 引用自:http://www.oschina.net/code/snippet_616067_22723?p=2#comments
// 调用方法http://../flv.php?url=http://v.youku.com/v_show/id_XMzg2OTQ3MjQw.html
// 似乎只支持低清晰度的视频地址
echo fetch_youku_flv($_GET['url']);
function fetch_youku_flv($url){
preg_match("#id_(.*?)\.html#",$url,$out);
$id=$out[1];
$content=get_curl_contents('http://v.youku.com/player/getPlayList/VideoIDS/'.$id);
$data=json_decode($content);