Closed kuklofon closed 8 years ago
Yea IAm getting the same error , need help asap
@epsylon
@epsylon i downloaded and placed the map folder but still getting the error
it just spam me this when i try to generate map Error importing: pygeoip lib.
On Debian based systems:
$ sudo apt-get install python-geoip
Error importing: pygeoip lib.
On Debian based systems:
$ sudo apt-get install python-geoip
Error importing: pygeoip lib.
On Debian based systems:
$ sudo apt-get install python-geoip
@SharDX please respect others thread...
Almost to research particulary whats going on... You have your own thread to solve this, because you are using a different system (Kali). Looks that OS cannot found python-geoip path version (which is NOT A PROBLEM OF UFONET code!)...So, don't be annoying. Ok? ^_^
After do what I told you before (download maps, extract it, etc...), we need to see whichpython ($ python --version) and python-geoip version are you using and if the path to that lib on the system is correct or not.
To have lib package version:
$ apt-cache show python-geoip
To see if paths are correctly (on a python2.7 version):
$ cat /var/lib/dpkg/info/python-geoip.list
/. [....] /usr/lib /usr/lib/python2.7 /usr/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages/GeoIP.x86_64-linux-gnu.so /usr/lib/python2.7/dist-packages/GeoIP-1.3.2.egg-info /usr/lib/python2.7/dist-packages/GeoIP-1.3.2.egg-info/top_level.txt /usr/lib/python2.7/dist-packages/GeoIP-1.3.2.egg-info/PKG-INFO /usr/lib/python2.7/dist-packages/GeoIP-1.3.2.egg-info/dependency_links.txt
Do you have this file correctly located (this is on a x86_64 system)?
_/usr/lib/python2.7/dist-packages/GeoIP.x8664-linux-gnu.so
same problem on backbox
@indigopsy Did you tried before proposed methods to fix it?
@epsylon i have 3 oses on my laptop i like ufonet cause its easy and there aren't a lot of other alternatives , geoip map looks like a cool feature , i tried ufonet on kali . working without map i tried ufonet on ubuntu 16 working without map
edit: iam not saying there is a problem with your code but apparently i have a issue here on 2 different operating systems
this is the output of cat /var/lib/dpkg/info/python-geoip.list
/. /usr /usr/share /usr/share/doc /usr/share/doc/python-geoip /usr/share/doc/python-geoip/copyright /usr/share/doc/python-geoip/changelog.Debian.gz /usr/lib /usr/lib/python2.7 /usr/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages/GeoIP.x86_64-linux-gnu.so /usr/lib/python2.7/dist-packages/GeoIP-1.3.2.egg-info /usr/lib/python2.7/dist-packages/GeoIP-1.3.2.egg-info/PKG-INFO /usr/lib/python2.7/dist-packages/GeoIP-1.3.2.egg-info/dependency_links.txt /usr/lib/python2.7/dist-packages/GeoIP-1.3.2.egg-info/top_level.txt
I don't speak clear or what?
@indigopsy you have a different issue open here... Did you solve it?
@SharDX you also have a thread to solve your problem, here.
Btw, let's keep researching... Try this script:
$ vim testgeoip.py
!/usr/bin/env python
try: import pygeoip print "\nLibrary correctly imported!\n" except: print "\nError importing: pygeoip lib...\n"
$ python testgeoip.py
Which message to do you have when executing?
Package: python-geoip Source: python-geoip (1.3.2-1) Version: 1.3.2-1+b2 Installed-Size: 74 Maintainer: Debian Python Modules Team python-modules-team@lists.alioth.debian.org Architecture: amd64 Depends: geoip-database, python (<< 2.8), python (>= 2.7~), libc6 (>= 2.4), libgeoip1 Size: 19078 SHA256: b27c85611f5401ed811ff10350e190b9b06ad6fb9915946fe65a38b6e420a980 SHA1: c379177dd4cc7b9fde8e34ed697871daa251de3e MD5sum: bf26b592aac9ef264981a7f2b6ad6f06 Description: Python bindings for the GeoIP IP-to-country resolver library GeoIP is a library that enables the user to find the country that any IP address or hostname originates from, using a database instead of DNS. . This package contains the Python bindings for GeoIP, allowing to use this library within a Python program. Description-md5: 7728feb20ccb4df284edbff75a08cb2d Tag: devel::lang:python, devel::library, implemented-in::python, role::app-data, role::devel-lib Section: python Priority: optional Filename: pool/main/p/python-geoip/python-geoip_1.3.2-1+b2_amd64.deb
/. /usr /usr/share /usr/share/doc /usr/share/doc/python-geoip /usr/share/doc/python-geoip/changelog.Debian.amd64.gz /usr/share/doc/python-geoip/changelog.Debian.gz /usr/share/doc/python-geoip/copyright /usr/lib /usr/lib/python2.7 /usr/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages/GeoIP.x86_64-linux-gnu.so /usr/lib/python2.7/dist-packages/GeoIP-1.3.2.egg-info /usr/lib/python2.7/dist-packages/GeoIP-1.3.2.egg-info/top_level.txt /usr/lib/python2.7/dist-packages/GeoIP-1.3.2.egg-info/PKG-INFO /usr/lib/python2.7/dist-packages/GeoIP-1.3.2.egg-info/dependency_links.txt
I placed MAPS into Ufonet directory and still have Error importing: pygeoip lib.
On Debian based systems:
$ sudo apt-get install python-geoip
plz. solve it problem. im using ubuntu.
Welcome to github @kangdooosik. You created an account to come here... nice! :dancer:
"plz. solve it problem. im riding a bike"
Look guys... This visual map is just an addon for GUI to have a fancy view of your botnet, attacks, etc.. You can conduct DDoS attacks normally using UFONet without it, so is not a critical issue.
Enjoy this video and check on youtube for others.. you will see that is not a general problem: http://ufonet.03c8.net/ufonet/UFONet-v0.7.ogv
On the other hand, I need repeat it again and again.. this issue is not related with UFONet code.
Is a problem on how your particular OS is configured... And is related with how many time are you spending to understand what's going on, really.. Which is 0 seconds... Why I know that?. Well...take a look to the code related with python-geoip importing problem:
https://github.com/epsylon/ufonet/blob/master/core/ajaxmap.py#L16
That's it!. :8ball:
I can try to help you but one by one, because every OS is different...
You can start by executing this script provided here. Is importing python-geoip correctly after run it?.
Also you can try to install GeoIP by using: pip install geoip
Send me captures with results to confirm that you are not trolling this place...hehe.. or I will close this issue soon ;-)
I solved this problem.. The reason is simple as usual. pip install pygeoip. Add this string to the manual please. Method works on Kali/Parrot/Arch
Finally ! :+1: I told you... It is a problem on how your OS is managing python-geoip path to lib, not a problem on UFONet code. Btw, thanks for try and report it!. Solution (pip install geoip) was added to website+FAQ (and to new version docs). PD: I am pretty sure you gonna like new release (that will be deployed soon)... :dancer:
this tool dont seem to have any real impact against websites , after several tests..
@defcon23 this is not related with this thread... btw, there are many factors to have a real impact, not only related with the tool. should be nice to listen if you really know about what are you talking about... and of course, have more positive contributions from you than come here, a code repository, to say whats you said.
hello i have the same problem ,when i have tested to import pygeoip: i have an error i do "pip install geoip" and the problem still exit . the solution to resolve probleme is sudo pip install geoip all is ok thank you @epsylon
@ziflar thanks for your comment.
Turns out some Ubuntu OS'es cant implement the standard pygeoip libs from the dpkg installed packages. U need to manually install and build those.Use these commands to fix the problem:
sudo apt-get install -y git-core mkdir -p ~/build/pygeoip cd ~/build/pygeoip git clone https://github.com/appliedsec/pygeoip cd pygeoip sudo python setup.py install mkdir -p ~/build/pygeoipmax cd ~/build/pygeoipmax wget http://www.maxmind.com/download/geoip/api/python/GeoIP-Python-latest.tar.gz tar xvfz GeoIP-Python-latest.tar.gz cd GeoIP-Python-*/ python setup.py build sudo python setup.py install mkdir -p ~/build/geoip cd ~/build/geoip wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz tar vxvf GeoLiteCity.dat.gz wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz tar vxvf GeoIP.dat.gz
./ kısmında hata alıyrum
try sudo apt-get install python3-geoip
@ritwickhaldar2016 This issue was resolved on Oct 1, 2016
[Error] [AI] Cannot import lib: pygeoip.
To install it try:
$ 'sudo apt-get install python3-geoip libgeoip-dev libgeoip1'
[Error] [AI] Cannot import lib: pygeoip.
To install it try:
$ 'sudo apt-get install python3-geoip libgeoip-dev libgeoip1'
@brodyxcringe -> https://ufonet.03c8.net/#installation
Hi! I use ufonet on ParrotSec. I did sudo apt-get install python-pycurl python-geoip before use ./ufonet but still have Error importing: pygeoip lib.
On Debian based systems:
$ sudo apt-get install python-geoip How to fix it ?