Difference between revisions of "Script untuk mencuri file youtube di /tmp"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (New page: vi curiyoutube.sh #!/bin/bash flash=$(ls -t /tmp/Flash* | head -n 1) destination=$(find ~/.mozilla -name sessionstore.js -exec sed 's/.*title:"\([^"]*\).*selected.*/\1/' {} \;) echo ...) |
Onnowpurbo (talk | contribs) |
||
Line 17: | Line 17: | ||
Caranya: | Caranya: | ||
+ | |||
+ | * Ubah permission | ||
+ | |||
+ | chmod +x curiyoutube.sh | ||
* Jalankan youtube web yang anda inginkan sampai selesai | * Jalankan youtube web yang anda inginkan sampai selesai | ||
* Jalankan script | * Jalankan script | ||
+ | |||
+ | ./curiyoutube.sh |
Revision as of 07:16, 23 December 2010
vi curiyoutube.sh
#!/bin/bash flash=$(ls -t /tmp/Flash* | head -n 1) destination=$(find ~/.mozilla -name sessionstore.js -exec sed 's/.*title:"\([^"]*\).*selected.*/\1/' {} \;) echo "waiting for download to finish ..." size=$(du $flash) while sleep 5s; do if [ "$size" != "$(du $flash)" ]; then size=$(du $flash) continue else break fi done cp "$flash" "$HOME/${destination////%2f}.swf"
Caranya:
- Ubah permission
chmod +x curiyoutube.sh
- Jalankan youtube web yang anda inginkan sampai selesai
- Jalankan script
./curiyoutube.sh