Skip to content

Instantly share code, notes, and snippets.

View shellus's full-sized avatar

WaWaPi shellus

View GitHub Profile
@shellus
shellus / index.php
Created November 15, 2016 12:51
Laravel-framework Cross-domain code
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylorotwell@gmail.com>
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
@shellus
shellus / ngrok.yaml
Created April 18, 2017 10:41
ngrok client configure file usage:-config ngrok.yaml
server_addr: you-ngrok-server-domain:4443
auth_token: you-authtoken
tunnels:
you-subdomain:
proto:
http: "80"
package main
import (
"github.com/PuerkitoBio/goquery"
"fmt"
"path"
"net/http"
"os"
"io"
"path/filepath"
$('form[target=ajax]').live('submit', function(){
var data = [],
$this = $(this),
self = this,
onajax = window[$this.attr('onajax')],
call = window[$this.attr('call')];
if(typeof call!='function'){
call=function(){}
}
@shellus
shellus / replace_img_src_callback.php
Created August 27, 2017 13:35
replace img src attributes in a html string
<?php
/**
* Created by PhpStorm.
* User: shellus
* Date: 2017-08-27
* Time: 20:56
*/
/**
* replace img src attributes in a html string
<?php
/**
* Created by PhpStorm.
* User: shellus
* Date: 2017/8/28
* Time: 11:30
*/
$fd = fopen("pass.txt", "r");
// 如果php运行在linux,那么pass.txt里面的换行符用\n
// 如果php运行在windows,那就用\r\n
@shellus
shellus / password.txt
Created September 16, 2017 02:32
弱密码字典
123456789
1234567890
a123456789
123456
qq123456
abc123456
123456789a
WOAINI1314
12345678
11111111
@shellus
shellus / TRG212M-try-password.go
Created September 16, 2017 02:33
TRG212M router password try
package main
import (
"net/http"
"net/url"
"io/ioutil"
"strings"
"fmt"
"bufio"
"os"
package main
import (
"encoding/gob"
"bytes"
"reflect"
"fmt"
)
type MyStruct struct {
<?php
/**
* Created by PhpStorm.
* User: shellus-in
* Date: 2017/9/28
* Time: 17:50
*/
class Test
{