Skip to content

Instantly share code, notes, and snippets.

View gnought's full-sized avatar
🎯
Focusing

Gnought gnought

🎯
Focusing
  • DevOps, IoT
  • In the clouds above HK
View GitHub Profile
@gnought
gnought / sojson.v5.decrypt.js
Created September 18, 2022 02:17 — forked from zhangshine/sojson.v5.decrypt.js
sojson.v5 解密
// 用法 console.log(decrypt(加密的js内容))
// console里面输出的内容就是解密后的内容,解密后的内容里面仍然含有 _0xXXXX 这样的混淆后的字符串, 需要一点点进行重命名
// 下面的代码以前从网上找的,已经找不到出处了。。。
function decrypt(js_body) {
// 脱壳 && 解密
let js_arr = js_body.split("\n").pop().split(';'),
fun_name = /var\s+(_0x[a-z0-9]+)=/.exec(js_arr[6])[1],
reg_str = fun_name + '\\(' + "'([^']+)',\s*'([^']+)'" + '\\)',
js_str = js_arr.slice(54, js_arr.length - 4).join(' ;'),
05qwmtwxa3ev.com
5pr1sfzsl9.com
68710266.com
970ztqtss4.com
allmygoodlife.com
au79nt5wic4x.com
bbom2b434493.com
brother-root-rich-of.xyz
cjf25jklrwqt.com
contstswnrs.best
<?php
$hkscspua2uni = array_change_key_case(array(
"E000" => "20547",
"E001" => "92DB",
"E002" => "205DF",
"E003" => "23FC5",
"E004" => "854C",
"E005" => "42B5",
"E006" => "73EF",
"E007" => "51B5",
@gnought
gnought / xstat
Last active August 29, 2015 14:28 — forked from moiseevigor/xstat
xstat bash function to get file creation time on Linux with EXT4
# For working in Centos 7
xstat() {
for target in "${@}"; do
inode=$(ls -di "${target}" | cut -d ' ' -f 1)
fs=$(df "${target}" | tail -2 | head -n 1 | awk '{print $1}')
crtime=$(sudo debugfs -R 'stat <'"${inode}"'>' "${fs}" 2>/dev/null |
grep -oP 'crtime.*--\s*\K.*')
printf "%s\t%s\n" "${crtime}" "${target}"
done
}
@gnought
gnought / list-group-addon.html
Last active August 29, 2015 14:23
Bootstrap - list-group-addon
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="http://ajax.aspnetcdn.com/ajax/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.3.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/bootstrap/3.3.4/bootstrap.min.js"></script>
<style>