diff --git a/transfersh-server/static/index.html b/transfersh-server/static/index.html index 07a6800..fb54072 100644 --- a/transfersh-server/static/index.html +++ b/transfersh-server/static/index.html @@ -160,14 +160,16 @@
- # Add this to .bashrc or it equivalent
+ # Add this to .bashrc or its equivalent
transfer() { # write to output to tmpfile because of progress bar tmpfile=$( mktemp -t transferXXX ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; }
+
alias transfer=transfer
+
# Now you can use transfer command
$ transfer hello.txt
@@ -204,7 +206,7 @@
- # Encrypt files with password using gpk
+ # Encrypt files with password using gpg
$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
@@ -223,21 +225,45 @@
# Scan for malware or viruses using Clamav
-
wget http://www.eicar.org/download/eicar.com
-
curl -X PUT --upload-file ./eicar.com https://transfer.sh/eicar.com/scan
+
$ wget http://www.eicar.org/download/eicar.com
+
$ curl -X PUT --upload-file ./eicar.com https://transfer.sh/eicar.com/scan
# Upload malware to VirusTotal, get a permalink in return
-
curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal
+
$ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal
+ # Backup, encrypt and transfer
+
$ mysqldump --all-databases|gzip|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
+
+ # Transfer and send email with link (uses alias)
+
$ transfer /tmp/hello.txt | mail -s "Hello World" user@yourmaildomain.com
+
+
+ # Your awesome sample will be put here
- # Add this to .bashrc or it equivalent
+ # Add this to .bashrc or its equivalent
transfer() { # write to output to tmpfile because of progress bar tmpfile=$( mktemp -t transferXXX ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; }
-
-
+
+
alias transfer=transfer
+
+
# Now you can use transfer command
$ transfer hello.txt
@@ -206,7 +208,7 @@
- # Encrypt files with password using gpk
+ # Encrypt files with password using gpg
$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
@@ -225,21 +227,45 @@
# Scan for malware or viruses using Clamav
-
wget http://www.eicar.org/download/eicar.com
-
curl -X PUT --upload-file ./eicar.com https://transfer.sh/eicar.com/scan
+
$ wget http://www.eicar.org/download/eicar.com
+
$ curl -X PUT --upload-file ./eicar.com https://transfer.sh/eicar.com/scan
# Upload malware to VirusTotal, get a permalink in return
-
curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal
+
$ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal
+ # Backup, encrypt and transfer
+
$ mysqldump --all-databases|gzip|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
+
+ # Transfer and send email with link (uses alias)
+
$ transfer /tmp/hello.txt | mail -s "Hello World" user@yourmaildomain.com
+
+
+ # Your awesome sample will be put here