Skip to content

Instantly share code, notes, and snippets.

View feilongfl's full-sized avatar

fei long feilongfl

View GitHub Profile
@feilongfl
feilongfl / fuchsia-tree.log
Created June 6, 2019 03:19
fuchsia-tree-0606
stat /storage/wine/project/fuchsia/fuchsia/out/default/obj/build/images/fvm.blk
文件:/storage/wine/project/fuchsia/fuchsia/out/default/obj/build/images/fvm.blk 大小:184713216 块:294688 IO 块:4096 普通文件 设备:812h/2066d Inode:715602 硬链接:1 权限:(0777/-rwxrwxrwx) Uid:( 0/ root) Gid:( 0/ root) 最近访问:2019-06-06 11:10:59.285920800 +0800 最近更改:2019-06-06 11:11:03.252502100 +0800 最近改动:2019-06-06 11:11:03.252502100 +0800 创建时间:-
Creating disk image...done
CMDLINE: TERM=screen-256color kernel.serial=legacy kernel.entropy-mixin=8cdac16b2d21c12b78e88fd5f5c3cc12eb3a1a5e26af693fce7160ede2512e19 kernel.halt-on-panic=true
c[?7lSeaBIOS (version rel-1.11.1-0-g0551a4be2c-prebuilt.qemu-project.org)
Booting from ROM..[00000.000] 00000:00000> zbi: @ 0xffffff8001007000 (15742088 bytes)
[00000.000] 00000:00000> UART: FIFO depth 16
[00000.000] 00000:00000> PMM: boot reserve add [0x100000, 0x326fff]
[00000.000] 00000:00000> PMM: boot reserve add [0x1007000, 0x1f0afff]
[00000.000] 00000:00000> PMM: boot reserve marking WIRED [0x100000, 0x32
--基于UDP协议
local udp_table = DissectorTable.get("udp.port")
local main_proto = Proto("udp-sample", "udp sample protocol", "udp sample protocol")
--协议端口号
local my_port = 26760
--定义协议字段内容
local stringHeadField = ProtoField.string("Head", "Head")
local versionField = ProtoField.uint16("Version", "Version", base.DEC)
local packagelengthField = ProtoField.uint16("Length", "Package Length", base.DEC)
{"info":"{\"uuid\":\"23b7c25f-d2d0-4245-9109-63464e3a0862\",\"name\":\"澎湃\",\"url\":\"https://feilong.home.blog\",\"author\":\"{\\\"name\\\":\\\"feilong\\\",\\\"email\\\":\\\"\\\",\\\"phone\\\":\\\"\\\",\\\"dmsg\\\":\\\"donate\\\",\\\"durl\\\":\\\"\\\"}\",\"version_number\":\"v0.0.1\",\"update_url\":\"\",\"comment\":\"todo: change this agent!\"}","type":0,"actions":["{\"type\":0,\"agents\":[]}","{\"type\":1,\"agents\":[]}","{\"type\":2,\"agents\":[]}","{\"type\":3,\"agents\":[]}","{\"type\":4,\"agents\":[\"{\\\"A_UUID\\\":\\\"c8d639f3-fbf7-4575-bbd2-0a3945446ff9\\\",\\\"A_TYPE\\\":0,\\\"A_COOKIES\\\":\\\"\\\",\\\"A_METHOD\\\":0,\\\"A_POSTDATA\\\":null,\\\"A_REFERER\\\":\\\"\\\",\\\"A_USERAGENT\\\":\\\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36\\\",\\\"A_URL\\\":\\\"https://www.thepaper.cn/{{mediaid}}\\\"}\"]}","{\"type\":5,\"agents\":[]}","{\"type\":6,\"agents\":[\"{\\\"A_UUID\\\":\\\"c8d639f3-fbf7-4575-bbd2-0a3945446ff9\\\",\\\"A_TYPE\\\":0,\\\"A
{"info":"{\"uuid\":\"c8f9cbf4-6d1f-432c-9975-d1455fdd9b18\",\"name\":\"zzzfun\",\"url\":\"https://feilong.home.blog\",\"author\":\"{\\\"name\\\":\\\"feilong\\\",\\\"email\\\":\\\"\\\",\\\"phone\\\":\\\"\\\",\\\"dmsg\\\":\\\"donate\\\",\\\"durl\\\":\\\"\\\"}\",\"version_number\":\"v0.0.1\",\"update_url\":\"\",\"comment\":\"todo: change this agent!\"}","type":0,"actions":["{\"type\":0,\"agents\":[]}","{\"type\":1,\"agents\":[\"{\\\"A_UUID\\\":\\\"c8d639f3-fbf7-4575-bbd2-0a3945446ff9\\\",\\\"A_TYPE\\\":0,\\\"A_COOKIES\\\":\\\"\\\",\\\"A_METHOD\\\":0,\\\"A_POSTDATA\\\":null,\\\"A_REFERER\\\":\\\"\\\",\\\"A_USERAGENT\\\":\\\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36\\\",\\\"A_URL\\\":\\\"http://www.zzzfun.com/vod-detail-id-{{mediaid}}.html\\\"}\",\"{\\\"A_UUID\\\":\\\"88ae4496-76cd-4c2d-a2e0-0955a391c97e\\\",\\\"A_TYPE\\\":1,\\\"A_MATCHBODY\\\":\\\"{{body}}\\\",\\\"A_REGEXP\\\":\\\"name=\\\\\\\"description\\\\\\\" content=\\\\\\\"(.*?)\\\\\\\"\\\",\\\
{
"info": "{\"uuid\":\"feae633a-f9e6-45d7-8587-3668bbeef0d6\",\"name\":\"50漫画\",\"url\":\"https://gist.github.com/feilongfl/0d717ae7ba509905f510370660bbaa31/raw/dfe316fcbe15d2ba90b9d51dd1e45f22ecc269/AVIS-SOURCE-IMAGE-zh-CN-manhua50.json\",\"author\":\"{\\\"name\\\":\\\"feilong\\\",\\\"email\\\":\\\"\\\",\\\"phone\\\":\\\"\\\",\\\"dmsg\\\":\\\"donate\\\",\\\"durl\\\":\\\"\\\"}\",\"version_number\":\"v0.0.1\",\"update_url\":\"\",\"comment\":\"todo: change this agent!\"}",
"type": 0,
"actions": [
"{\"type\":0,\"agents\":[\"{\\\"A_UUID\\\":\\\"c8d639f3-fbf7-4575-bbd2-0a3945446ff9\\\",\\\"A_TYPE\\\":0,\\\"A_COOKIES\\\":\\\"\\\",\\\"A_METHOD\\\":0,\\\"A_POSTDATA\\\":null,\\\"A_REFERER\\\":\\\"\\\",\\\"A_USERAGENT\\\":\\\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36\\\",\\\"A_URL\\\":\\\"https://www.50mh.com/search/?keywords={{searchkeyword}}\\\"}\",\"{\\\"A_UUID\\\":\\\"88ae4496-76cd-4c2d-a2e0-0955a391c97e\\\",\\\"A_TYPE\\\":1,\\\"A_MATCHBODY\\
@feilongfl
feilongfl / fuchsia.log
Created March 4, 2019 23:34
fuchsia tree output
Formatting '/tmp/tmp.JgLfi9MkC4/fuchsia.qcow2', fmt=qcow2 size=167936000 backing_file=/mnt/fuchsia/fuchsia/out/x64/obj/build/images/fvm.blk cluster_size=65536 lazy_refcounts=off refcount_bits=16
CMDLINE: kernel.serial=legacy TERM=xterm-256color kernel.entropy-mixin=1539046ea75e999db4557da7eb508a18c3c4aaacbbcee651ec5e88fc2b25bfe5 kernel.halt-on-panic=true
[00000.000] 00000.00000> zbi: @ 0xffffff800097c000 (8880184 bytes)
[00000.000] 00000.00000> UART: FIFO depth 16
[00000.000] 00000.00000> PMM: boot reserve add [0x100000, 0x2defff]
[00000.000] 00000.00000> PMM: boot reserve add [0x97c000, 0x11f4fff]
[00000.000] 00000.00000> PMM: boot reserve marking WIRED [0x100000, 0x2defff]
[00000.000] 00000.00000> PMM: boot reserve marking WIRED [0x97c000, 0x11f4fff]
[00000.000] 00000.00000>
[00000.000] 00000.00000> welcome to Zircon
@feilongfl
feilongfl / openload.py
Created January 30, 2019 00:44
decode openload embed url
from http.server import BaseHTTPRequestHandler
from urllib import parse
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument('--headless')
class GetHandler(BaseHTTPRequestHandler):
@feilongfl
feilongfl / huginn re enable agent which already enable.js
Last active January 12, 2019 13:34
huginn re enable agent which already enable
var huginn = window.location.protocol + "//" + window.location.host
var auth_key = document.getElementsByName("csrf-token")[0].content;
function reenable(data,success,xhr){
if (success){
var $b = jQuery(data)
var $bdis = $b.find('#details').text()
var bdis = $bdis.replace(/[\s\S]+Working:[\s\S]+?(\w+)[\s\S]+/,"$1")
if ($b != "Disabled"){
$.post(url,"utf8=%E2%9C%93&_method=put&agent%5Bdisabled%5D=true&commit=Yes&authenticity_token=" + auth_key,function(data,success,xhr){
#!/usr/bin/env fish
#
rm /etc/netdata/python.d/web_log.conf
for f in (ls *_access.log);
echo $f;
echo "nginx_log:
name : '"$f"'
path : '"$f"'
" | tee -a /etc/netdata/python.d/web_log.conf;
end
{
"schema_version": 1,
"name": "hellogithub",
"description": "No description provided",
"source_url": false,
"guid": "1349912bb38155988e4e6831ce674226",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#5bc0de",
"icon": "cutlery",
"exported_at": "2018-12-24T10:42:10Z",