function rc4($data, $pwd = 'xingqiba') {
$key[] ="";
$box[] ="";
$cipher = "";
$pwd_length = strlen($pwd);
$data_length = strlen($data);
//整形转换成字节
func IntToBytes(n int) []byte {
x := int32(n)
bytesBuffer := bytes.NewBuffer([]byte{})
binary.Write(bytesBuffer, binary.BigEndian, x)
return bytesBuffer.Bytes()
}
package main
import (
"flag"
"fmt"
"io"
"net"
###example
PHP_ADD_EXTENSION_DEP(extension_name, json, true)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* example C code using libcurl and json-c | |
* to post and return a payload using | |
* http://jsonplaceholder.typicode.com | |
* | |
* Requirements: | |
* | |
* json-c - https://github.com/json-c/json-c | |
* libcurl - http://curl.haxx.se/libcurl/c | |
* |
<?php
class EvilTransform {
const XPI = 3.14159265358979324 * 3000.0 / 180.0;
/**
* outOfChina
#solo
#!/usr/bin/perl -s
#
# solo v1.6
# Prevents multiple cron instances from running simultaneously.
#
# Copyright 2007-2013 Timothy Kay
int randInRange(int min, int max)
{
return (int)(((double) rand() / (double)(RAND_MAX + 1)) * (max - min + 1)) + min;
}
<?php
class G
{
static $server_handle;
static $config = array(
'daemonize' => false,
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
//./a.out | grep select | awk -F " " '{print $2}' | sort | uniq -c
//https://zh.wikipedia.org/wiki/%E6%AD%A3%E6%80%81%E5%88%86%E5%B8%83