Pwbriney / subterfuge

Automatically exported from code.google.com/p/subterfuge
GNU General Public License v3.0
0 stars 0 forks source link

Installation Problem (Subterfuge 1.0) #141

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Update procedures according to your video "(Official) How to Install Subterfuge 
1.0 on Kali Linux"

What is the expected output? What do you see instead?

Expected: Subterfuge 1.0 in working condition.
Instead: Subterfuge is removed completely.

What version of the product are you using? On what operating system?

Product version: Subterfuge 1.0
OS: Kali Linux

Please provide any additional information below.

Tried to update Subterfuge from the previously installed 
"SubterfugePublicBeta5.0".

Used the recommended installation/update procedure described in your video 
"(Official) How to Install Subterfuge 1.0 on Kali Linux":

Step 1
download of the installation file from your homepage.

Step 2
root@kali:~/PROGRAMS-INSTALLED# dpkg -i subterfuge_1.0-1_all.deb
Selecting previously unselected package subterfuge.
(Reading database ... 300845 files and directories currently installed.)
Unpacking subterfuge (from subterfuge_1.0-1_all.deb) ...
dpkg: dependency problems prevent configuration of subterfuge:
 subterfuge depends on arptables; however:
  Package arptables is not installed.
 subterfuge depends on dhcpd; however:
  Package dhcpd is not installed.

dpkg: error processing subterfuge (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:

=============> According to your video this error is "normal", and requires the 
next step with the according commands:

Step 3
root@kali:~/PROGRAMS-INSTALLED# apt-get update && apt-get -f install
Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release                                        
Hit http://dl.google.com stable/main i386 Packages                             
Ign http://dl.google.com stable/main Translation-en_US                         
Ign http://dl.google.com stable/main Translation-en                            
Hit http://security.kali.org kali/updates Release.gpg                          
Hit http://http.kali.org kali Release.gpg                     
Hit http://security.kali.org kali/updates Release
Hit http://http.kali.org kali Release
Hit http://security.kali.org kali/updates/main Sources
Hit http://http.kali.org kali/main Sources     
Hit http://security.kali.org kali/updates/contrib Sources
Hit http://http.kali.org kali/non-free Sources 
Hit http://security.kali.org kali/updates/non-free Sources
Hit http://http.kali.org kali/contrib Sources  
Hit http://security.kali.org kali/updates/main i386 Packages
Hit http://security.kali.org kali/updates/contrib i386 Packages
Hit http://security.kali.org kali/updates/non-free i386 Packages
Ign http://security.kali.org kali/updates/contrib Translation-en_US
Ign http://security.kali.org kali/updates/contrib Translation-en
Ign http://security.kali.org kali/updates/main Translation-en_US
Ign http://security.kali.org kali/updates/main Translation-en
Ign http://security.kali.org kali/updates/non-free Translation-en_US
Ign http://security.kali.org kali/updates/non-free Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  python-django
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
  subterfuge
0 upgraded, 0 newly installed, 1 to remove and 45 not upgraded.
1 not fully installed or removed.
After this operation, 5.356 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 301109 files and directories currently installed.)
Removing subterfuge …

============> Unfortunately this removes subterfuge completely!!

Step 4 (Try to start subterfuge anyway):
root@kali:~# subterfuge
bash: subterfuge: command not found
_________________________________________________________________________
_________________________________________________________________________

Next I tried to remove Subterfuge manually with the steps you recommended in 
ISSUE 139:
root@kali:~# python /usr/share/subterfuge/uninstall.py
root@kali:~# apt-get remove subterfuge

Then I tried Steps 1 to 4 as described above.
Result: Same as above.

__________________________________________________________________________
__________________________________________________________________________

Next I executed Step 1 and 2 as described above.
Then I executed Step 3 but omitted the part "&& apt-get -f install":

root@kali:~/PROGRAMS-INSTALLED# apt-get install
Reading package lists... Done
Building dependency tree  
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 subterfuge : Depends: arptables but it is not installable
              Depends: dhcpd but it is not installable
E: Unmet dependencies. Try using -f.

============> Now Subterfuge can be started as usually, but it seems that some 
dependencies are missing. (arptables and dhcpd).

Does that have any impact on functionality and can it be solved?

Thank you very much!
FriFri

Original issue reported on code.google.com by frifrit...@gmail.com on 2 Jan 2014 at 11:00

GoogleCodeExporter commented 8 years ago
Thank you for this very detailed report! My co-developer and I have not been 
able to reproduce this error -> We used a fresh install of the latest version 
of Kali in our official installation video on YouTube, and what you see in the 
video happens for us every time. Have you done anything to modify apt on your 
Kali install? Could you try replacing the second command with the following 
command: apt-get update && apt-get -f install subterfuge

Unfortunately, like I said, we have been unable to reproduce this error. The 
only other thing I can think of at the moment is to make sure that you are 
connected to the internet so the "apt-get update" command can complete 
successfully. Please let us know if this helps.

Original comment by topher.s...@gmail.com on 2 Jan 2014 at 5:17

GoogleCodeExporter commented 8 years ago
You could also try installing the missing packages manually:
apt-get install arptables
apt-get install dhcpd

If that doesn't work check your repos. Are your Kali repos correctly configured?

Original comment by Mtoussain@gmail.com on 2 Jan 2014 at 6:29

GoogleCodeExporter commented 8 years ago
Thanks for your quick answers!
I will try the recommended steps later.

What I can already tell right now is:
- I WAS connected to the internet while performing the above mentioned steps.
- I did not change my Kali (at least not on purpose).
- I was able to harvest credentials BEFORE I tried to update Subterfuge by doing
1) manual IP forwarding with echo 1 > /proc/sys/net/ipv4/ip_forward
2) setting IP tables with iptables -t nat -A PREROUTING ........ REDIRECT 
--to-port 8080
3) arpspoofing with arpspoof (v.2.4)
4) SSLstripping with sslstrip.py

So I was convinced everything was up to date and in proper condition.

Next I will try to execute the steps you recommended and will give you a 
feedback ASAP.

Thank you,
FriFri

Original comment by frifrit...@gmail.com on 3 Jan 2014 at 10:23

GoogleCodeExporter commented 8 years ago
So here is what I did:

-------------------------------------------------------------------------------
Preparation (uninstall all Subterfuge components):

root@kali:~# python /usr/share/subterfuge/uninstall.py
root@kali:~# apt-get remove subterfuge
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  python-django
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
  subterfuge
0 upgraded, 0 newly installed, 1 to remove and 45 not upgraded.
1 not fully installed or removed.
After this operation, 5.356 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 301109 files and directories currently installed.)
Removing subterfuge ...
root@kali:~# 

--------------------------------------------------------------------------------
---
Step 1 (install from downloaded file):

root@kali:~/PROGRAMS-INSTALLED# dpkg -i subterfuge_1.0-1_all.deb
Selecting previously unselected package subterfuge.
(Reading database ... 300845 files and directories currently installed.)
Unpacking subterfuge (from subterfuge_1.0-1_all.deb) ...
dpkg: dependency problems prevent configuration of subterfuge:
 subterfuge depends on arptables; however:
  Package arptables is not installed.
 subterfuge depends on dhcpd; however:
  Package dhcpd is not installed.

dpkg: error processing subterfuge (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 subterfuge
--------------------------------------------------------------------------------
-----

Step 2: (modified command, as recommended by topher):

root@kali:~# apt-get update && apt-get -f install subterfuge
Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release                                        
Hit http://dl.google.com stable/main i386 Packages                             
Hit http://http.kali.org kali Release.gpg                                   
Hit http://security.kali.org kali/updates Release.gpg                          
Ign http://dl.google.com stable/main Translation-en_US
Ign http://dl.google.com stable/main Translation-en
Hit http://http.kali.org kali Release          
Hit http://security.kali.org kali/updates Release
Hit http://http.kali.org kali/main Sources      
Hit http://security.kali.org kali/updates/main Sources
Hit http://http.kali.org kali/non-free Sources 
Hit http://security.kali.org kali/updates/contrib Sources
Hit http://http.kali.org kali/contrib Sources  
Hit http://security.kali.org kali/updates/non-free Sources
Hit http://security.kali.org kali/updates/main i386 Packages
Hit http://security.kali.org kali/updates/contrib i386 Packages
Hit http://security.kali.org kali/updates/non-free i386 Packages
Ign http://security.kali.org kali/updates/contrib Translation-en_US
Ign http://security.kali.org kali/updates/contrib Translation-en
Ign http://security.kali.org kali/updates/main Translation-en_US
Ign http://security.kali.org kali/updates/main Translation-en
Ign http://security.kali.org kali/updates/non-free Translation-en_US
Ign http://security.kali.org kali/updates/non-free Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
subterfuge is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 subterfuge : Depends: arptables but it is not installable
              Depends: dhcpd but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a 
solution).

--------------------------------------------------------------------------------
------------------

Step 3 (try to install arptables and dhcpd separately as recommended by 
Mtoussain):

root@kali:~# apt-get install arptables
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package arptables is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'arptables' has no installation candidate

root@kali:~# apt-get install dhcpd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package dhcpd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'dhcpd' has no installation candidate

--------------------------------------------------------------------------------
-----------------------

Step 4 (starting Subterfuge)

root@kali:~# subterfuge 
Subterfuge courtesy of r00t0v3rr1d3 & 0sm0s1z 
Validating models... 

0 errors found 
Django version 1.3.1, using settings 'subterfuge.settings'
Development server is running at http://127.0.0.1:80/ 
Quit the server with CONTROL-C.

--------------------------------------------------------------------------------
-------------------
--------------------------------------------------------------------------------
-------------------

@ topher (additional information):
My Kali is installed on a Windows7 machine.
It is configured as dual boot.
Only things I intentionally modified are:
- GRUB --> standard boot is now Win7 after 30 seconds (instead of Kali and 10 
seconds)
- several ettercap files

I hope that helps!?

Thank you very much!!
FriFri

Original comment by frifrit...@gmail.com on 3 Jan 2014 at 6:18

GoogleCodeExporter commented 8 years ago
It sounds like there is a problem with your repos in general. Subterfuge 
doesn't use any special ones, just the default ones that should be enabled with 
Kali Linux.

Would you be able to check and post the contents of the following file: 
/etc/apt/sources.lst ?

This is a post from the Kali Linux support page regarding what should be in 
that file: http://docs.kali.org/general-use/kali-linux-sources-list-repositories

Original comment by topher.s...@gmail.com on 3 Jan 2014 at 6:53

GoogleCodeExporter commented 8 years ago
Hi,
there is no file called sources.lst in /etc/apt
but here is a file called sources.list
and a file called sources.list.save

------------------------------------------------------------------------------

content of /etc/apt/sources.list:

# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL 
Binary 20130905-08:50]/ kali contrib main non-free 

# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL 
Binary 20130905-08:50]/ kali contrib main non-free 

## Security updates
deb http://security.kali.org/kali-security/ kali/updates main contrib non-free 

deb-src http://http.kali.org/kali/ kali main non-free contrib 
deb-src http://security.kali.org/kali-security/ kali/updates main contrib 
non-free 

-------------------------------------------------------------------------------

content of /etc/apt/sources.list.save:

# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL 
Binary 20130905-08:50]/ kali contrib main non-free
# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL 
Binary 20130905-08:50]/ kali contrib main non-free

## Security updates
deb http://security.kali.org/kali-security kali/updates main contrib non-free

## found these 11 links in the www:
 deb http://http.kali.org/ /kali main contrib non-free
 deb http://http.kali.org/ /wheezy main contrib non-free
 deb http://http.kali.org/kali kali-dev main contrib non-free
 deb http://http.kali.org/kali kali-dev main/debian-installer
 deb-src http://http.kali.org/kali kali-dev main contrib non-free
 deb http://http.kali.org/kali kali main contrib non-free
 deb http://http.kali.org/kali kali main/debian-installer
 deb-src http://http.kali.org/kali kali main contrib non-free
 deb http://security.kali.org/kali-security kali/updates main contrib non-free
 deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
 deb http://repo.kali.org/kali kali-bleeding-edge main

--------------------------------------------------------------------------------
-----------------
--------------------------------------------------------------------------------
-----------------

After installation of kali I found the links that are in the sources.list.save 
file as you can see in the comentary line.

Can that caus the problem and whad should I do about it?

Since there is no file called sources.lst but sources.list should i rename it 
accordingly to try and solve the problem?

Thank you,
FriFri

Original comment by frifrit...@gmail.com on 3 Jan 2014 at 10:43

GoogleCodeExporter commented 8 years ago
That was just a typo on my part. It is supposed to be sources.list. You are 
missing the following line:

deb http://http.kali.org/kali kali main non-free contrib

paste that line underneath this line:

deb http://security.kali.org/kali-security kali/updates main contrib non-free

Then save the file, close it, and re-run apt-get update. Then, you should be 
able to install subterfuge using our original instructions which are on the 
download page and demonstrated in the YouTube video.

Original comment by topher.s...@gmail.com on 3 Jan 2014 at 10:50

GoogleCodeExporter commented 8 years ago
Issue 139 has been merged into this issue.

Original comment by topher.s...@gmail.com on 3 Jan 2014 at 11:06

GoogleCodeExporter commented 8 years ago
Hi,

that solved the problem, thank you!

I do not know why this line was missing.
I certainly did not remove it on purpose (what reason could there be anyway?)

Thanks for your quick and precise responses!
FriFri

Original comment by frifrit...@gmail.com on 4 Jan 2014 at 10:10

GoogleCodeExporter commented 8 years ago

Original comment by topher.s...@gmail.com on 4 Jan 2014 at 11:01