Tampilkan postingan dengan label redir_command_on. Tampilkan semua postingan
Tampilkan postingan dengan label redir_command_on. Tampilkan semua postingan

Senin, 06 Februari 2012

FIX Ettercap ip_forwarding was disabled, but we cannot re-enable it now

Ettercap mengalami banyak bug pada backtrack 5 R1. Kali ini bug memunculkan pesan error:

ip_forwarding was disabled, but we cannot re-enable it now.
remember to re-enable it manually



Bagaimana cara mengatasinya?
1. Buka terminal, lalu masukan perintah:

Command:
root@revolution:/# nano /usr/local/etc/etter.conf

Maka anda akan melihat tampilan seperti ini:

#########################################################################                                                                      ##  ettercap -- etter.conf -- configuration file                        ##                                                                      ##  Copyright (C) ALoR & NaGA                                           ##                                                                      ##  This program is free software; you can redistribut it and/or moify  ##  it under the terms of the GNU General Public Licese as publishedby  ##  the Free Software Foundation; either version 2 o the License, or    ##  (at your option) any later version.                                 ##                                                                      ##  $Id: etter.conf,v 1.79 2005/07/07 10:08:55 alr Exp $                ##                                                                      #########################################################################

Carilah baris seperti ini:

######################################       redir_command_on/off###################################### you must provide a valid script for your operating system in order to have# the SSL dissection available# note that the cleanup script is executed without enough privileges (because# they are dropped on startup). so you have to either: provide a setuid program# or set the ec_uid to 0, in order to be sure the cleanup script will be# executed properly# NOTE: this script is executed with an execve(), so you can't use pipes or# output redirection as if you were in a shell. We suggest you to make a script if# you need those commands.

Pada bagian
#---------------#     Linux#---------------

Cari baris:

# if you use iptables:

Maka anda akan mendapati pengaturan seperti ini:

# if you use iptables:   #redir_command_on = "iptables -t nat -A PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"   #redir_command_off = "iptables -t nat -D PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"

2. Mengubah parameter redir_command_on dan redir_command_off

Hilangkan tanda pagar sebelum redir_command_on dan redir_command_off

Sehingga pengaturannya menjadi seperti ini:

######################################       redir_command_on/off###################################### you must provide a valid script for your operating system in order to have# the SSL dissection available# note that the cleanup script is executed without enough privileges (because# they are dropped on startup). so you have to either: provide a setuid program# or set the ec_uid to 0, in order to be sure the cleanup script will be# executed properly# NOTE: this script is executed with an execve(), so you can't use pipes or# output redirection as if you were in a shell. We suggest you to make a script if# you need those commands.
#---------------#     Linux#---------------
# if you use ipchains:   #redir_command_on = "ipchains -A input -i %iface -p tcp -s 0/0 -d 0/0 %port -j REDIRECT %rport"   #redir_command_off = "ipchains -D input -i %iface -p tcp -s 0/0 -d 0/0 %port -j REDIRECT %rport"
# if you use iptables:   redir_command_on = "iptables -t nat -A PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"   redir_command_off = "iptables -t nat -D PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"

Tekan ctrl+x untuk keluar dari konsol nano. Tekan y untuk menyimpan. Tekan enter untuk menyimpan meng-overwrite file lama.

Kemudian jalankan kembali ettercap:

Command:
root@revolution:/# ettercap -T -q -i wlan0


Perfect as usual

created by : red-dragon

FIX Ettercap SSL dissection needs a valid 'redir_command_on'

Pengguna backtrack 5 R1 yang sudah menggunakan ettercap, mungkin mengalami masalah ini. Terdapat pesan error ketika ettercap melakukan unified sniffing. Pesan errornya adalah:

SSL dissection needs a valid 'redir_command_on' script in the etter.conf file



Bagaimana mengatasinya?
1. Buka terminal, lalu masukan perintah:

Command:
root@revolution:/# nano /usr/local/etc/etter.conf

Maka anda akan melihat tampilan seperti ini:

Output:
#############################################################################                                                                          ##  ettercap -- etter.conf -- configuration file                            ##                                                                          ##  Copyright (C) ALoR & NaGA                                               ##                                                                          ##  This program is free software; you can redistribute it and/or modify    ##  it under the terms of the GNU General Public License as published by    ##  the Free Software Foundation; either version 2 of the License, or       ##  (at your option) any later version.                                     ##                                                                          ##  $Id: etter.conf,v 1.79 2005/07/07 10:08:55 alor Exp $                   ##                                                                          #############################################################################
[privs]ec_uid = 65534                # nobody is the defaultec_gid = 65534                # nobody is the default



2. Mengubah parameter ec_uid dan ec_gid

Perhatikan baris

ec_uid = 65534 dan ec_gid = 65534

Ubah kedua baris ini menjadi

Output:
#############################################################################                                                                          ##  ettercap -- etter.conf -- configuration file                            ##                                                                          ##  Copyright (C) ALoR & NaGA                                               ##                                                                          ##  This program is free software; you can redistribute it and/or modify    ##  it under the terms of the GNU General Public License as published by    ##  the Free Software Foundation; either version 2 of the License, or       ##  (at your option) any later version.                                     ##                                                                          ##  $Id: etter.conf,v 1.79 2005/07/07 10:08:55 alor Exp $                   ##                                                                          #############################################################################
[privs]ec_uid = 0                # nobody is the defaultec_gid = 0                # nobody is the default

Tekan ctrl+x , kemudian tekan y untuk menyimpan. Dan enter untuk menkonfirmasi.

Jalankan kembali ettercap dengan perintah.

Command:
root@revolution:/# ettercap -T -q -i wlan0


Perfect as usual =)

created by : red-dragon