cr fixes
This commit is contained in:
1488
bindata_gen.go
1488
bindata_gen.go
File diff suppressed because it is too large
Load Diff
@@ -15,7 +15,7 @@ include "includes/download-head.html"
|
|||||||
<!-- endbuild -->
|
<!-- endbuild -->
|
||||||
|
|
||||||
include "includes/ga.html"
|
include "includes/ga.html"
|
||||||
include "includes/navigation.html"
|
include "includes/download-navigation.html"
|
||||||
|
|
||||||
|
|
||||||
<section id="home">
|
<section id="home">
|
||||||
|
@@ -11,7 +11,7 @@ include "includes/download-head.html"
|
|||||||
<body id="download">
|
<body id="download">
|
||||||
|
|
||||||
include "includes/ga.html"
|
include "includes/ga.html"
|
||||||
include "includes/navigation.html"
|
include "includes/download-navigation.html"
|
||||||
|
|
||||||
|
|
||||||
<section id="home">
|
<section id="home">
|
||||||
|
@@ -11,7 +11,7 @@ include "includes/download-head.html"
|
|||||||
<body id="download">
|
<body id="download">
|
||||||
|
|
||||||
include "includes/ga.html"
|
include "includes/ga.html"
|
||||||
include "includes/navigation.html"
|
include "includes/download-navigation.html"
|
||||||
|
|
||||||
<section id="home">
|
<section id="home">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
@@ -11,7 +11,7 @@ include "includes/download-head.html"
|
|||||||
<body id="download">
|
<body id="download">
|
||||||
|
|
||||||
include "includes/ga.html"
|
include "includes/ga.html"
|
||||||
include "includes/navigation.html"
|
include "includes/download-navigation.html"
|
||||||
|
|
||||||
<section id="home">
|
<section id="home">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
@@ -11,7 +11,7 @@ include "includes/download-head.html"
|
|||||||
<body id="download">
|
<body id="download">
|
||||||
|
|
||||||
include "includes/ga.html"
|
include "includes/ga.html"
|
||||||
include "includes/navigation.html"
|
include "includes/download-navigation.html"
|
||||||
|
|
||||||
<section id="home">
|
<section id="home">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
@@ -14,7 +14,7 @@ include "includes/download-head.html"
|
|||||||
<!-- endbuild -->
|
<!-- endbuild -->
|
||||||
|
|
||||||
include "includes/ga.html"
|
include "includes/ga.html"
|
||||||
include "includes/navigation.html"
|
include "includes/download-navigation.html"
|
||||||
|
|
||||||
<section id="home">
|
<section id="home">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
15
src/includes/download-navigation.html
Normal file
15
src/includes/download-navigation.html
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<div id="navigation">
|
||||||
|
<div class="wrapper">
|
||||||
|
<a href="/">
|
||||||
|
<h1>{{.Hostname}}</h1>
|
||||||
|
</a>
|
||||||
|
<ul class="hidden-xs">
|
||||||
|
<li><a href="../">home</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="../#samples">sample use cases</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="#contact">contact us</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
@@ -4,7 +4,7 @@
|
|||||||
<h1>{{.Hostname}}</h1>
|
<h1>{{.Hostname}}</h1>
|
||||||
</a>
|
</a>
|
||||||
<ul class="hidden-xs">
|
<ul class="hidden-xs">
|
||||||
<li><a href="/">home</a>
|
<li><a href="#">home</a>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#samples">sample use cases</a>
|
<li><a href="#samples">sample use cases</a>
|
||||||
</li>
|
</li>
|
||||||
|
@@ -43,11 +43,11 @@ include "includes/navigation.html"
|
|||||||
</div>
|
</div>
|
||||||
<div id="terminal" class="terminal">
|
<div id="terminal" class="terminal">
|
||||||
<code class="code-wrapper"><span class="code-title"># Upload using cURL</span>
|
<code class="code-wrapper"><span class="code-title"># Upload using cURL</span>
|
||||||
$ curl --upload-file ./hello.txt {{.WebAddress}}/hello.txt {{.WebAddress}}/66nb8/hello.txt
|
$ curl --upload-file ./hello.txt {{.WebAddress}}hello.txt {{.WebAddress}}66nb8/hello.txt
|
||||||
|
|
||||||
<span class="code-title"># Using the shell function</span>
|
<span class="code-title"># Using the shell function</span>
|
||||||
$ transfer hello.txt
|
$ transfer hello.txt
|
||||||
##################################################### 100.0% {{.WebAddress}}/eibhM/hello.txt
|
##################################################### 100.0% {{.WebAddress}}eibhM/hello.txt
|
||||||
</code>
|
</code>
|
||||||
</div>
|
</div>
|
||||||
<div id="web">
|
<div id="web">
|
||||||
@@ -137,14 +137,14 @@ include "includes/navigation.html"
|
|||||||
</div>
|
</div>
|
||||||
<div class="terminal">
|
<div class="terminal">
|
||||||
<code class="code-wrapper"><span class="code-title"># Uploading is easy using curl</span>
|
<code class="code-wrapper"><span class="code-title"># Uploading is easy using curl</span>
|
||||||
$ curl --upload-file ./hello.txt {{.WebAddress}}/hello.txt
|
$ curl --upload-file ./hello.txt {{.WebAddress}}hello.txt
|
||||||
{{.WebAddress}}/66nb8/hello.txt
|
{{.WebAddress}}66nb8/hello.txt
|
||||||
|
|
||||||
$ curl -H "Max-Downloads: 1" -H "Max-Days: 5" --upload-file ./hello.txt {{.WebAddress}}/hello.txt
|
$ curl -H "Max-Downloads: 1" -H "Max-Days: 5" --upload-file ./hello.txt {{.WebAddress}}hello.txt
|
||||||
{{.WebAddress}}/66nb8/hello.txt
|
{{.WebAddress}}66nb8/hello.txt
|
||||||
|
|
||||||
<span class="code-title"># Download the file</span>
|
<span class="code-title"># Download the file</span>
|
||||||
$ curl {{.WebAddress}}/66nb8/hello.txt -o hello.txt
|
$ curl {{.WebAddress}}66nb8/hello.txt -o hello.txt
|
||||||
</code>
|
</code>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -154,7 +154,7 @@ include "includes/navigation.html"
|
|||||||
</div>
|
</div>
|
||||||
<div class="terminal">
|
<div class="terminal">
|
||||||
<code class="code-wrapper"><span class="code-title"># Add this to .bashrc or .zshrc or its equivalent</span>
|
<code class="code-wrapper"><span class="code-title"># Add this to .bashrc or .zshrc or its equivalent</span>
|
||||||
transfer(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "{{.WebAddress}}/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "{{.WebAddress}}/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "{{.WebAddress}}/$file_name"|tee /dev/null;fi;}
|
transfer(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "{{.WebAddress}}$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "{{.WebAddress}}$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "{{.WebAddress}}$file_name"|tee /dev/null;fi;}
|
||||||
|
|
||||||
<span class="code-title"># Now you can use transfer function</span>
|
<span class="code-title"># Now you can use transfer function</span>
|
||||||
$ transfer hello.txt
|
$ transfer hello.txt
|
||||||
@@ -174,11 +174,11 @@ include "includes/navigation.html"
|
|||||||
</div>
|
</div>
|
||||||
<div class="terminal">
|
<div class="terminal">
|
||||||
<code class="code-wrapper">
|
<code class="code-wrapper">
|
||||||
$ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt {{.WebAddress}}/
|
$ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt {{.WebAddress}}
|
||||||
|
|
||||||
<span class="code-title"># Combining downloads as zip or tar archive</span>
|
<span class="code-title"># Combining downloads as zip or tar archive</span>
|
||||||
$ curl {{.WebAddress}}/(15HKz/hello.txt,15HKz/hello.txt).tar.gz
|
$ curl {{.WebAddress}}(15HKz/hello.txt,15HKz/hello.txt).tar.gz
|
||||||
$ curl {{.WebAddress}}/(15HKz/hello.txt,15HKz/hello.txt).zip
|
$ curl {{.WebAddress}}(15HKz/hello.txt,15HKz/hello.txt).zip
|
||||||
</code>
|
</code>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -190,10 +190,10 @@ include "includes/navigation.html"
|
|||||||
</div>
|
</div>
|
||||||
<div class="terminal">
|
<div class="terminal">
|
||||||
<code class="code-wrapper"><span class="code-title"># Encrypt files with password using gpg</span>
|
<code class="code-wrapper"><span class="code-title"># Encrypt files with password using gpg</span>
|
||||||
$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" {{.WebAddress}}/test.txt
|
$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" {{.WebAddress}}test.txt
|
||||||
|
|
||||||
<span class="code-title"># Download and decrypt</span>
|
<span class="code-title"># Download and decrypt</span>
|
||||||
$ curl {{.WebAddress}}/1lDau/test.txt|gpg -o- > /tmp/hello.txt
|
$ curl {{.WebAddress}}1lDau/test.txt|gpg -o- > /tmp/hello.txt
|
||||||
</code>
|
</code>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -207,10 +207,10 @@ include "includes/navigation.html"
|
|||||||
<div class="terminal">
|
<div class="terminal">
|
||||||
<code class="code-wrapper"><span class="code-title"># Scan for malware or viruses using Clamav</span>
|
<code class="code-wrapper"><span class="code-title"># Scan for malware or viruses using Clamav</span>
|
||||||
$ wget http://www.eicar.org/download/eicar.com
|
$ wget http://www.eicar.org/download/eicar.com
|
||||||
$ curl -X PUT --upload-file ./eicar.com {{.WebAddress}}/eicar.com/scan
|
$ curl -X PUT --upload-file ./eicar.com {{.WebAddress}}eicar.com/scan
|
||||||
|
|
||||||
<span class="code-title"># Upload malware to VirusTotal, get a permalink in return</span>
|
<span class="code-title"># Upload malware to VirusTotal, get a permalink in return</span>
|
||||||
$ curl -X PUT --upload-file nhgbhhj {{.WebAddress}}/test.txt/virustotal
|
$ curl -X PUT --upload-file nhgbhhj {{.WebAddress}}test.txt/virustotal
|
||||||
</code>
|
</code>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -220,7 +220,7 @@ include "includes/navigation.html"
|
|||||||
</div>
|
</div>
|
||||||
<div class="terminal">
|
<div class="terminal">
|
||||||
<code class="code-wrapper"><span class="code-title"># Backup, encrypt and transfer</span>
|
<code class="code-wrapper"><span class="code-title"># Backup, encrypt and transfer</span>
|
||||||
$ mysqldump --all-databases|gzip|gpg -ac -o-|curl -X PUT --upload-file "-" {{.WebAddress}}/test.txt</code>
|
$ mysqldump --all-databases|gzip|gpg -ac -o-|curl -X PUT --upload-file "-" {{.WebAddress}}test.txt</code>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -243,9 +243,9 @@ include "includes/navigation.html"
|
|||||||
<code class="code-wrapper"><span class="code-title"># Import keys from keybase</span>
|
<code class="code-wrapper"><span class="code-title"># Import keys from keybase</span>
|
||||||
$ keybase track [them]
|
$ keybase track [them]
|
||||||
<span class="code-title"># Encrypt for recipient(s)</span>
|
<span class="code-title"># Encrypt for recipient(s)</span>
|
||||||
$ cat somebackupfile.tar.gz | keybase encrypt [them] | curl --upload-file '-' {{.WebAddress}}/test.txt
|
$ cat somebackupfile.tar.gz | keybase encrypt [them] | curl --upload-file '-' {{.WebAddress}}test.txt
|
||||||
<span class="code-title"># Decrypt</span>
|
<span class="code-title"># Decrypt</span>
|
||||||
$ curl {{.WebAddress}}/sqUFi/test.md |keybase decrypt
|
$ curl {{.WebAddress}}sqUFi/test.md |keybase decrypt
|
||||||
</code>
|
</code>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -257,7 +257,7 @@ include "includes/navigation.html"
|
|||||||
</div>
|
</div>
|
||||||
<div class="terminal">
|
<div class="terminal">
|
||||||
<code class="code-wrapper"><span class="code-title"># wget</span>
|
<code class="code-wrapper"><span class="code-title"># wget</span>
|
||||||
$ wget --method PUT --body-file=/tmp/file.tar {{.WebAddress}}/file.tar -O - -nv
|
$ wget --method PUT --body-file=/tmp/file.tar {{.WebAddress}}file.tar -O - -nv
|
||||||
</code>
|
</code>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -267,7 +267,7 @@ include "includes/navigation.html"
|
|||||||
</div>
|
</div>
|
||||||
<div class="terminal">
|
<div class="terminal">
|
||||||
<code class="code-wrapper"><span class="code-title"># grep syslog for pound and transfer</span>
|
<code class="code-wrapper"><span class="code-title"># grep syslog for pound and transfer</span>
|
||||||
$ cat /var/log/syslog|grep pound|curl --upload-file - {{.WebAddress}}/pound.log
|
$ cat /var/log/syslog|grep pound|curl --upload-file - {{.WebAddress}}pound.log
|
||||||
</code>
|
</code>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -280,7 +280,7 @@ include "includes/navigation.html"
|
|||||||
</div>
|
</div>
|
||||||
<div class="terminal">
|
<div class="terminal">
|
||||||
<code class="code-wrapper"><span class="code-title"># Upload using Powershell</span>
|
<code class="code-wrapper"><span class="code-title"># Upload using Powershell</span>
|
||||||
PS H:\> invoke-webrequest -method put -infile .\file.txt {{.WebAddress}}/file.txt
|
PS H:\> invoke-webrequest -method put -infile .\file.txt {{.WebAddress}}file.txt
|
||||||
</code>
|
</code>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -290,7 +290,7 @@ include "includes/navigation.html"
|
|||||||
</div>
|
</div>
|
||||||
<div class="terminal">
|
<div class="terminal">
|
||||||
<code class="code-wrapper"><span class="code-title"># HTTPie</span>
|
<code class="code-wrapper"><span class="code-title"># HTTPie</span>
|
||||||
$ http {{.WebAddress}}/ -vv < /tmp/test.log
|
$ http {{.WebAddress}} -vv < /tmp/test.log
|
||||||
</code>
|
</code>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -305,7 +305,7 @@ include "includes/navigation.html"
|
|||||||
<span class="code-title"># transfersh-cli (https://github.com/tanrax/transfersh-cli)</span>
|
<span class="code-title"># transfersh-cli (https://github.com/tanrax/transfersh-cli)</span>
|
||||||
$ trasnfersh photos.zip
|
$ trasnfersh photos.zip
|
||||||
<span class="code-title"># Uploading file</span>
|
<span class="code-title"># Uploading file</span>
|
||||||
<span class="code-title"># Download from here: {{.WebAddress}}/xxxxxx/photos.zip</span>
|
<span class="code-title"># Download from here: {{.WebAddress}}xxxxxx/photos.zip</span>
|
||||||
<span class="code-title"># It has also been copied to the clipboard!</span>
|
<span class="code-title"># It has also been copied to the clipboard!</span>
|
||||||
</code>
|
</code>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -3,35 +3,35 @@
|
|||||||
made with <3 by DutchCoders
|
made with <3 by DutchCoders
|
||||||
|
|
||||||
Upload:
|
Upload:
|
||||||
$ curl --upload-file ./hello.txt {{.WebAddress}}/hello.txt
|
$ curl --upload-file ./hello.txt {{.WebAddress}}hello.txt
|
||||||
|
|
||||||
Encrypt & upload:
|
Encrypt & upload:
|
||||||
$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" {{.WebAddress}}/test.txt
|
$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" {{.WebAddress}}test.txt
|
||||||
|
|
||||||
Download & decrypt:
|
Download & decrypt:
|
||||||
$ curl {{.WebAddress}}/1lDau/test.txt|gpg -o- > /tmp/hello.txt
|
$ curl {{.WebAddress}}1lDau/test.txt|gpg -o- > /tmp/hello.txt
|
||||||
|
|
||||||
Grep pound from syslog and transfer
|
Grep pound from syslog and transfer
|
||||||
cat /var/log/syslog|grep pound|curl --upload-file - {{.WebAddress}}/pound.log
|
cat /var/log/syslog|grep pound|curl --upload-file - {{.WebAddress}}pound.log
|
||||||
|
|
||||||
Using Keybase:
|
Using Keybase:
|
||||||
# import keys from keybase
|
# import keys from keybase
|
||||||
$ keybase track [them]
|
$ keybase track [them]
|
||||||
|
|
||||||
# encrypt for recipients
|
# encrypt for recipients
|
||||||
$ cat somebackupfile.tar.gz | keybase encrypt [them] | curl --upload-file '-' {{.WebAddress}}/test.txt
|
$ cat somebackupfile.tar.gz | keybase encrypt [them] | curl --upload-file '-' {{.WebAddress}}test.txt
|
||||||
|
|
||||||
# decrypt
|
# decrypt
|
||||||
$ curl {{.WebAddress}}/sqUFi/test.md |keybase decrypt
|
$ curl {{.WebAddress}}sqUFi/test.md |keybase decrypt
|
||||||
|
|
||||||
Upload to Virustotal:
|
Upload to Virustotal:
|
||||||
$ curl -X PUT --upload-file nhgbhhj {{.WebAddress}}/test.txt/virustotal
|
$ curl -X PUT --upload-file nhgbhhj {{.WebAddress}}test.txt/virustotal
|
||||||
|
|
||||||
Virusscan:
|
Virusscan:
|
||||||
$ curl -X PUT --upload-file nhgbhhj {{.WebAddress}}/test.txt/scan
|
$ curl -X PUT --upload-file nhgbhhj {{.WebAddress}}test.txt/scan
|
||||||
|
|
||||||
Add shell function to .bashrc or .zshrc or its equivalent:
|
Add shell function to .bashrc or .zshrc or its equivalent:
|
||||||
===
|
===
|
||||||
transfer(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "{{.WebAddress}}/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "{{.WebAddress}}/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "{{.WebAddress}}/$file_name"|tee /dev/null;fi;}
|
transfer(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "{{.WebAddress}}$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "{{.WebAddress}}/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "{{.WebAddress}}/$file_name"|tee /dev/null;fi;}
|
||||||
===
|
===
|
||||||
$ transfer test.txt
|
$ transfer test.txt
|
||||||
|
@@ -2,7 +2,7 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
// Terminal typing animation
|
// Terminal typing animation
|
||||||
$("#from-terminal p").typed({
|
$("#from-terminal p").typed({
|
||||||
strings: ["curl --upload-file ./hello.txt {{.WebAddress}}/hello.txt\n{{.WebAddress}}/66nb8/hello.txt \n "],
|
strings: ["curl --upload-file ./hello.txt {{.WebAddress}}hello.txt\n{{.WebAddress}}66nb8/hello.txt \n "],
|
||||||
typeSpeed: 0,
|
typeSpeed: 0,
|
||||||
loop: true,
|
loop: true,
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user