1, First open up a proxied browser and visit http://punkspider.hyperiongray.com/ 2, Enter the keyword in the textbox In this case I type '.com' 3, Now, check the vulnerable type In this case i che…
[shell scipts] 1 số bài tập AWK đơn giản
![[shell scipts] 1 số bài tập AWK đơn giản](http://1.bp.blogspot.com/-htG7vy9vIAA/Tp0KrMUdoWI/AAAAAAAABAU/e7XkFtErqsU/s72-c/grey.gif)
bai 1: su dung awk in tat ca file /etc/passwd awk '{print}' /etc/passwd hoac co the viet awk '{print $0}' /etc/passwd bai 2: in ra cac dong co ten la 'kevin' awk '/kevin/ {print}' /etc/passwd bai 3: i…
[shell scripts] Scripts kiểm tra %CPU và %MEM
![[shell scripts] Scripts kiểm tra %CPU và %MEM](http://1.bp.blogspot.com/-htG7vy9vIAA/Tp0KrMUdoWI/AAAAAAAABAU/e7XkFtErqsU/s72-c/grey.gif)
#!/bin/bash # %CPU a=$(ps -eo pcpu | awk '{tongcpu+=$1} END {print tongcpu}') echo "tong % CPU la: $a" # %MEM b=$(ps -eo pmem | awk '{tongmem+=$1} END {print tongmem}') echo "tong % MEM la: $b"…
[shell scripts] Tìm mã trên dãy số
![[shell scripts] Tìm mã trên dãy số](http://1.bp.blogspot.com/-htG7vy9vIAA/Tp0KrMUdoWI/AAAAAAAABAU/e7XkFtErqsU/s72-c/grey.gif)
#!/bin/bash echo -n "nhap n: " read n for ((i=0; i do read -p "a[$i]= " a[$i] done max=${a[0]} for ((i=1; i do if [ ${a[$i]} -gt $max]; then max=${a[$i]} fi done echo "gia tri lon nhat la: $max"…
[shell scripts] Tinh tổng S=1+2+3+...+n
![[shell scripts] Tinh tổng S=1+2+3+...+n](http://1.bp.blogspot.com/-htG7vy9vIAA/Tp0KrMUdoWI/AAAAAAAABAU/e7XkFtErqsU/s72-c/grey.gif)
#!/bin/bash echo "nhap n tu ban phim: " read n s=0 for ((i=1; i do let s=s+1 done echo "tong s= $s"…
[shell scripts] tim kiem file
![[shell scripts] tim kiem file](http://1.bp.blogspot.com/-htG7vy9vIAA/Tp0KrMUdoWI/AAAAAAAABAU/e7XkFtErqsU/s72-c/grey.gif)
#!/bin/bash echo -n "nhap file can tim kiem: " read file name_file=$(find / -name $file) echo "ket qua: $name_file" if [ -e $name_file ]; then echo "file ton tai" else echo "file khong ton tai" fi …
[ shellscripts ] Giai phương trình bậc 2
![[ shellscripts ] Giai phương trình bậc 2](http://1.bp.blogspot.com/-htG7vy9vIAA/Tp0KrMUdoWI/AAAAAAAABAU/e7XkFtErqsU/s72-c/grey.gif)
#!/bin/bash echo "nhap 3 so a,b,c: " read a read b read c delta=$(echo "$b*$b-4*$a*$c" | bc) if [ $delta -lt 0 ]; then echo "phuong trinh vo nghiem" elif [ $delta -eq 0 ]; then echo -n "phuong trinh …
Shellscripts batch file rename

Scripts rename hang loat: #!/bin/sh // đổi hang loạt file.rb.txt thanh file .rb for f in *.rb.txt; do mv "$f" "${f%.txt}"; done // đổi hàng loạt file.txt thành file.rb for f in *.txt; do mv "$f" "…
10 ứng dụng “gián điệp” miễn phí tốt nhất cho thiết bị Android
Hẳn là các bạn đang nghĩ đến việc sử dụng những ứng dụng này cho các nhiệm vụ theo dõi đầy “nghẹt thở” như trong phim Điệp viên 007, hãy cẩn thận khi sử dụng chúng để tránh bị rắc rối về mặt pháp luậ…