Kamis, 19 Mei 2016

Menambahkan Repo Blackarch di manjaro dan keluarga Arch linux

BlackArch adalah salah satu distro pentest yang dikembangkan dari distro Arch linux. BlackArch dapat diinstal di atas distro Arch Linux yang ada. Paket dapat dipasang secara individu atau berdasarkan kategori. Repositori terus berkembang saat ini blackarch berisi 1.402 tools pentest.
untuk mendownload Black arch bisa melalui link ini :
BlackArch Linux 64 bit Live ISO torrent
BlackArch Linux 32 bit Live ISO torrent
setelah mendownload blackarch, kita dapat membuat live usbnya menggunakan win32diskimager atau menggunakan dd pada linux
membuat usb instalasi menggunakan linux menggunakan sintax berikut ini :
sudo dd bs=512M if=file.iso of=/dev/sdX
*/sdX = merupakan posisi usb/flashdisk
untuk menginstall blackarch pada distro arch linux, dapat mengunakan cara berikut ini :
# jalankan https://blackarch.org/strap.sh sebagai user root dan ikuti perintahnya.
$ curl -O https://blackarch.org/strap.sh
# Pastikan SHA1sum sesuai
$ sha1sum strap.sh
# seting script agar dapat di eksekusi
$ chmod +x strap.sh
# jalankan strap.sh
$ sudo ./strap.sh
*/Apabila pada saat selesai eksekusi script berikut terjadi error, kita dapat melakukan langkah berikut ini
$ pacman -Syu haveged
$ systemctl start haveged
$ systemctl enable haveged
$ rm -fr /etc/pacman.d/gnupg
$ pacman-key --init
$ pacman-key --populate archlinux
$ pacman-key --populate manjaro
$ pacman-key --populate blackarch
$ pacman -Syu

Anda sekarang dapat menginstal tools dari repositori blackarch
# Untuk melihat semua daftar tools pentest yang ada, jalankan
$ sudo pacman -Sgg | grep blackarch | cut -d' ' -f2 | sort -u
# Untuk menginstall semua tools, jalankan
$ sudo pacman -S blackarch
# Untuk Melihat katagori tools , jalankan
$ sudo pacman -Sg | grep blackarch
# Untuk menginstall per katagori tools, jalankan
$ sudo pacman -S blackarch-<category>

untuk menginstall Blackarch menggunakan live cd/usb dapat menggunakan cara berikut
# Install blackarch-install-scripts package
$ sudo pacman -S blackarch-install-scripts
# kemudian jalankan dan ikuti perintahnya
$ sudo blackarch-install

Default Login blackarch
user : root
Passwrd : blackarch

Baca selengkapnya

Senin, 09 Mei 2016

.htaccess

.htaccess

//save this command on .htaccess
RewriteEngine On
<IfModule mod_rewrite.c>
RewriteCond %{HTTP_USER_AGENT} ^w3af.sourceforge.net [NC,OR]
RewriteCond %{HTTP_USER_AGENT} dirbuster [NC,OR]
RewriteCond %{HTTP_USER_AGENT} nikto [NC,OR]
RewriteCond %{HTTP_USER_AGENT} SF [OR]
RewriteCond %{HTTP_USER_AGENT} sqlmap [NC,OR]
RewriteCond %{HTTP_USER_AGENT} fimap [NC,OR]
RewriteCond %{HTTP_USER_AGENT} nessus [NC,OR]
RewriteCond %{HTTP_USER_AGENT} whatweb [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Openvas [NC,OR]
RewriteCond %{HTTP_USER_AGENT} jbrofuzz [NC,OR]
RewriteCond %{HTTP_USER_AGENT} libwhisker [NC,OR]
RewriteCond %{HTTP_USER_AGENT} webshag [NC,OR]
RewriteCond %{HTTP:Acunetix-Product} ^WVS
RewriteRule ^.* http://127.0.0.1/ [R=301,L]
</IfModule>
Baca selengkapnya
Harden network with sysctl settings

Harden network with sysctl settings

sudo nano /etc/sysctl.conf
----------------------------------------------------------------------
# IP Spoofing protection
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1

# Ignore ICMP broadcast requests
net.ipv4.icmp_echo_ignore_broadcasts = 1

# Disable source packet routing
net.ipv4.conf.all.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv6.conf.default.accept_source_route = 0

# Ignore send redirects
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0

# Block SYN attacks
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 2048
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_syn_retries = 5

# Log Martians
net.ipv4.conf.all.log_martians = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1

# Ignore ICMP redirects
net.ipv4.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv6.conf.default.accept_redirects = 0

# Ignore Directed pings
net.ipv4.icmp_echo_ignore_all = 1
---------------------------------------------------------
sudo sysctl -p


------[http://www.thefanclub.co.za/how-to/how-secure-ubuntu-1204-lts-server-part-1-basics]------
Baca selengkapnya
Search Music & download with kali linux

Search Music & download with kali linux

I have been editing some videos lately, and its a pain in the ass to get the music of choice. Well it just so happens, my good friend N1tr0g3n found pms.py! Poor-Mans-Spotify. Enjoy!
PMS “Poor Mans Spotify” Python Script Search and stream music, Download Music Works with Windows and Linux
https://github.com/np1/pms
pms
===
- Search and stream music
- Download music
- Works with Python 2.7 and 3
- Works with Windows and Linux (untested with MacOS)
- No Python dependencies
- Requires mplayer
# Installation:
Using pip:
sudo pip install Poor-Mans-Spotify
Using git:
git clone https://github.com/np1/pms.git
Manually:
Download [zip](https://github.com/np1/pms/archive/master.zip)/[tar.gz](https://github.com/np1/pms/archive/master.tar.gz) file and extract
# Usage
usage: pms.py query [query ...]
or simply:
pms.py
# Screenshot
![pms running in terminal](http://i.imgur.com/Oqyz5vk.png “pms running in terminal”)
# Usage Example:
$ > ls
LICENSE pms.py README.md
$ > ./pms.py
Enter artist/song to search : gotye somebody i used to know
Search for ‘gotye somebody i used to know’
Item Size Artist Track Length Bitrate
—- —- —— —– —— ——-
1 3.7 Mb Gotye feat. Kimbra Somebody That I Used 04:04 128
2 9.3 Mb Gotye Somebody That I Used 04:04 320
3 5.5 Mb Gotye Somebody That I Used 04:03 192
4 9.1 Mb Gotye feat. Kimbra Somebody That I Used 04:00 320
5 4.0 Mb Walk off the Earth Somebody That I Used 04:24 128
6 9.1 Mb Gotye feat. Kimbra Somebody That I Used 04:00 320
7 6.3 Mb Gotye feat. Kimbra Somebody That I Used 04:05 VBR
8 6.8 Mb Gotye Somebody That I Used 04:04 VBR
9 9.3 Mb Gotye feat. Kimbra Somebody That I Used 04:03 320
10 5.3 Mb Gotye feat. Kimbra Somebody that I used 04:05 VBR
11 9.5 Mb Gotye ft. Kimbra Somebody That I Used 04:05 VBR
12 7.3 Mb DFM RADIO Gotye feat. Kimbra- S 03:13 320
13 8.0 Mb Somebody That I Used Walk off the Earth (G 04:24 VBR
14 7.4 Mb Gotye Somebody That I Used 04:05 256
15 5.4 Mb Gotye feat. kimbra Somebody that I used 05:55 128
16 5.9 Mb Gotye Feat. Kimbra & Somebody That I Used 03:15 256
17 3.1 Mb Pentatonix Somebody That I Used 03:25 VBR
18 9.2 Mb Gotye feat. Kimbra Somebody That I Used 04:02 320
19 13. Mb Gotye ft. Kimbra Somebody That I Used 05:30 320
20 9.3 Mb Gotye feat Kimbra Somebody That I Used 04:04 320
[1-20] to play or [d 1-20] to download or [q]uit or enter new search
> 3
—————————————————–
Artist : Gotye
Title : Somebody That I Used To Know (feat. Kimbra)
Length : 04:03
Bitrate : 192 Kb/s
Size : 5.594 Mb
—————————————————–
Playing – [q] to quit..

–
[1-20] to play or [d 1-20] to download or [q]uit or enter new search
> d3

Downloading /f/h/Downloads/PMS/Gotye – Somebody That I Used To Know (.mp3 ..
5,865,433 Bytes [100.00%] received. Rate: [ 734 kbps]. ETA: [0 secs]
Done
–

[1-20] to play or [d 1-20] to download or [q]uit or enter new search
> avicii
Search for ‘avicii’
Item Size Artist Track Length Bitrate
—- —- —— —– —— ——-
1 9.5 Mb Avicii feat. Aloe Bl Wake Me Up 04:09 320
2 18. Mb Tim Berg Bromance (The Love Yo 08:10 320
3 7.5 Mb Avicii vs Nicky Rome I Could Be The One 05:29 VBR
4 10. Mb Avicii Levels (Skrillex Remi 04:41 320
5 13. Mb Avicii Malo (Alex Gaudino & 06:00 320
6 12. Mb Avicii Levels 05:33 VBR
7 5.8 Mb Sebastien Drums & Av My Feelings For You 06:24 128
8 16. Mb Nadia Ali Rapture (Avicii New G 07:08 320
9 7.7 Mb Tim Berg Seek Bromance (Avicii 03:21 320
10 13. Mb Tim Berg Bromance (Avicii’s Ar 06:00 320
11 12. Mb Avicii Levels (Original Mix) 05:33 VBR
12 6.1 Mb Tim Berg Seek Bromance (Avicii 03:21 256
13 9.7 Mb Avicii Wake Me Up (Radio Edi 04:09 VBR
14 4.5 Mb Avicii Ft Etta James ID (Levels) (Original 03:17 192
15 7.9 Mb Avicii vs. Nicky Rom I Could Be The One (R 03:28 320
16 5.8 Mb Avicii Fade Into Darkness 03:14 VBR
17 9.1 Mb Armin Van Buuren Fea Drowing (Avicii Unnam 04:00 320
18 7.7 Mb Avicii Levels (Radio Edit) 03:21 VBR
19 7.9 Mb Avicii & Nicky Romer I Could Be The One (R 03:12 320
20 13. Mb David Guetta Sunshine (David Guett 06:00 VBR
[1-20] to play or [d 1-20] to download or [q]uit or enter new search
> 3
——————————–
Artist : Avicii vs Nicky Romero
Title : I Could Be The One
Length : 05:29
Bitrate : VBR
Size : 7.534 Mb
——————————–
Playing – [q] to quit..
[1-20] to play or [d 1-20] to download or [q]uit or enter new search
>

sumber http://em3rgency.com/search-dl-music-with-kali-linux/
Baca selengkapnya
cek disk error dan badsector dengan linux

cek disk error dan badsector dengan linux

badblocks is a Linux utility to check for bad sectors on a disk drive (A bad sector is a sector on a computer's disk drive or flash memory that cannot be used due to permanent damage or an OS inability to successfully access it.). It creates a list of these sectors that can be used with other programs, like mkfs, so that they are not used in the future and thus do not cause corruption of data. It is part of the e2fsprogs project.

It can be a good idea to periodically check for bad blocks. This is done with the badblocks command. It outputs a list of the numbers of all bad blocks it can find. This list can be fed to fsck to be recorded in the filesystem data structures so that the operating system won’t try to use the bad blocks for storing data. The following example will show how this could be done.

From the terminal, type following command:
$ sudo badblocks -v /dev/hda1 > bad-blocks
The above command will generate the file bad-blocks in the current directory from where you are running this command.

Now, you can pass this file to the fsck command to record these bad blocks
$ sudo fsck -t ext3 -l bad-blocks /dev/hda1
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Check reference counts.
Pass 5: Checking group summary information.

/dev/hda1: ***** FILE SYSTEM WAS MODIFIED *****

/dev/hda1: 11/360 files, 63/1440 blocks
If badblocks reports a block that was already used, e2fsck will try to move the block to another place. If the block was really bad, not just marginal, the contents of the file may be corrupted.

Read more: http://linuxpoison.blogspot.com/2008/01/howto-check-disk-drive-for-errors-and.html#ixzz2p28WxmQO
Baca selengkapnya