psy %!s(int64=4) %!d(string=hai) anos
pai
achega
d4a4e6dd26
Modificáronse 5 ficheiros con 63 adicións e 50 borrados
  1. 9 9
      README.md
  2. 8 4
      core/tools/grider.py
  3. 26 17
      core/webgui.py
  4. 10 10
      docs/LEEME.txt
  5. 10 10
      docs/README.txt

+ 9 - 9
README.md

@@ -88,7 +88,7 @@ and on the Layer3 (Network) abusing the protocol.
 
   You can automatically get all required libraries using (as root):
 
-       sudo python setup.py install
+       python3 setup.py install
 
   For manual installation, on Debian-based systems (ex: Ubuntu), run: 
 
@@ -96,14 +96,14 @@ and on the Layer3 (Network) abusing the protocol.
 
   On other systems such as: Kali, Ubuntu, ArchLinux, ParrotSec, Fedora, etc... also run:
 
-       pip install GeoIP
-       pip install python-geoip
-       pip install pygeoip
-       pip install requests
-       pip install pycrypto
-       pip install pycurl
-       pip install whois
-       pip install scapy-python3
+       pip3 install GeoIP
+       pip3 install python-geoip
+       pip3 install pygeoip
+       pip3 install requests
+       pip3 install pycrypto
+       pip3 install pycurl
+       pip3 install whois
+       pip3 install scapy-python3
 
 ####  Source libs:
 

+ 8 - 4
core/tools/grider.py

@@ -34,7 +34,10 @@ class Paster(Thread):
             try:
                 conn,addr = self.sock.accept()
                 print('[Info] [AI] Got copy from', addr)
+                data = conn.recv(1024).decode()
+                print ("[Info] [AI] Stream received:", repr(data))
             except socket.timeout:
+                print("[Info] [AI] Socket listening...")
                 pass
             except socket.error as e:
                 if self.clean == False:
@@ -44,10 +47,9 @@ class Paster(Thread):
                     print("[Error] [AI] Socket Error /break : "+str(e))
                     break
             else:
-                data = conn.recv(4096)
-                if data :
+                if data:
                     l=len(data)
-                    print("[Info] [AI] Received data : "+data+"/"+str(l)+"/"+str(data.find("\n")))
+                    print("[Info] [AI] Received data...\n")
                     if data.find('\n')==-1 and data.find('\r')==-1:
                         if data.find("#?#")!=-1:
                             print("[Info] [AI] Adding to grid")
@@ -79,6 +81,8 @@ class Paster(Thread):
                             fc=open(self.parent.target_dir+"globalnet.txt","a")
                             fc.write(data+"\n")
                             fc.close()
+                        else:
+                            print("[Error] [AI] Unknown data...")
                     conn.close()
         print('[Info] [AI] Done!!!')
         self.sock.close()
@@ -185,7 +189,7 @@ class Grider ( Thread ):
         s=None
         try:
             s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
-            s.settimeout(10)
+            s.settimeout(30)
             s.bind(('', port))
         except socket.error as e:
             if e.errno == 98: # if is in use wait a bit and retry

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 26 - 17
core/webgui.py


+ 10 - 10
docs/LEEME.txt

@@ -60,9 +60,9 @@ UFONet funciona en muchas plataformas. Requiere Python (>2.7.9) y las siguientes
      python3-requests - elegant and simple HTTP library for Python3, built for human beings
      python3-scapy - Packet crafting/sniffing/manipulation/visualization security tool
 
-Puedes obtener todas las librerías requeridas automáticamente usando:
+Puedes obtener todas las librerías requeridas automáticamente usando (como root):
 
-     sudo python setup.py install
+     python3 setup.py install
 
 Para instalarlas manualmente en sistemas basados en Debian (ex: Ubuntu), lanza: 
 
@@ -70,14 +70,14 @@ Para instalarlas manualmente en sistemas basados en Debian (ex: Ubuntu), lanza:
 
 En otros sistemas como: Kali, Ubuntu, ArchLinux, ParrotSec, Fedora, etc... también lanzar:
 
-     pip install GeoIP
-     pip install python-geoip
-     pip install pygeoip
-     pip install requests
-     pip install pycrypto
-     pip install pycurl
-     pip install whois
-     pip install scapy-python3
+     pip3 install GeoIP
+     pip3 install python-geoip
+     pip3 install pygeoip
+     pip3 install requests
+     pip3 install pycrypto
+     pip3 install pycurl
+     pip3 install whois
+     pip3 install scapy-python3
 
 Paquetes fuente de las librerías:
 

+ 10 - 10
docs/README.txt

@@ -60,9 +60,9 @@ UFONet runs on many platforms. It requires Python (>=3) and the following librar
      python3-requests - elegant and simple HTTP library for Python3, built for human beings
      python3-scapy - Packet crafting/sniffing/manipulation/visualization security tool
 
-You can automatically get all required libraries using:
+You can automatically get all required libraries using (as root):
 
-     sudo python setup.py install
+     python3 setup.py install
 
 For manual installation on Debian-based systems (ex: Ubuntu), run: 
 
@@ -70,14 +70,14 @@ For manual installation on Debian-based systems (ex: Ubuntu), run:
 
 On other systems such as: Kali, Ubuntu, ArchLinux, ParrotSec, Fedora, etc... also run:
  
-     pip install GeoIP
-     pip install python-geoip
-     pip install pygeoip
-     pip install requests
-     pip install pycrypto
-     pip install pycurl
-     pip install whois
-     pip install scapy-python3
+     pip3 install GeoIP
+     pip3 install python-geoip
+     pip3 install pygeoip
+     pip3 install requests
+     pip3 install pycrypto
+     pip3 install pycurl
+     pip3 install whois
+     pip3 install scapy-python3
 
 Source libs: