This file contains 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
// 用法 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(' ;'), |
This file contains 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
#!/bin/bash | |
# | |
# A script to enable TCP BBR on a Linux system. | |
# | |
# @author Dumitru Uzun (DUzun.Me) | |
# @version 1.0.0 | |
# @distro ArchLinux/Manjaro | |
# | |
old_cc=`sysctl net.ipv4.tcp_congestion_control | awk -F= '{print $2}' | sed -e s/\^\\s//` |
This file contains 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
cmake_minimum_required(VERSION 2.8.10.2) | |
# | |
# This project allows to configure, build, archive and upload an OpenSSL install tree. | |
# | |
if(DEFINED UPLOAD_PACKAGE_SCRIPT) | |
set(MIDAS_URL "http://packages.kitware.com") | |
set(FOLDER_ID 203) |
This file contains 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
declare @dbname varchar(255); | |
DECLARE dbname_cursor CURSOR FOR | |
SELECT name--, database_id, create_date, STATE_DESC | |
FROM sys.databases | |
WHERE STATE_DESC in ('SINGLE_USER', 'SUSPECT', 'RECOVERY_PENDING'); | |
OPEN dbname_cursor | |
FETCH NEXT FROM dbname_cursor | |
INTO @dbname |