[英]Trying to install trity and it gives me the error
I am trying to install trity and after install it any time I want to run it gives me the error我正在尝试安装 trity,安装后任何时候我想运行它都会给我错误
The error is:错误是:
sh: 1: route: not found
Traceback (most recent call last):
File "/opt/trity/trity.py", line 27, in <module>
from searchs import *
File "/opt/trity/searchs.py", line 1, in <module>
from google import search
ImportError: No module named google
try to install google.尝试安装谷歌。
pip install search_google
hope it helps希望能帮助到你
Try the following:请尝试以下操作:
In the directory /Trity-1/trity/ and edit searchs.py在目录 /Trity-1/triity/ 中编辑 searchs.py
Clear the first line by putting:通过输入清除第一行:
from googlesearch import search
Then go back to the root of the directory /Trity-1/ edit a text file by naming it, and save.然后回到目录/Trity-1/的根目录,通过命名编辑一个文本文件,并保存。
touch agree.txt
Now you can start trity doing现在你可以开始尝试了
python trity.py
How I solved the problem.我是如何解决问题的。
Go to your Trity-1 directory run sudo python2 uninstall.py
转到您的 Trity-1 目录运行sudo python2 uninstall.py
xdg-open install.py
pip
with pip2.7
.在任何你看到类似 os.system('pip install SOMETHING') 的地方,你应该用pip2.7
替换pip
。os.system('pip2.7 install search_google')
还添加行os.system('pip2.7 install search_google')
sudo python2 install.py
Hope I helped希望我有所帮助
First uninstall trity to start afresh先卸载trity重新开始
For non-root:对于非root:
Sudo python uninstall.py须藤python卸载.py
Then follow my lead然后跟着我走
First, make changes on install.py首先,对 install.py 进行更改
change the lines as follow or you can copy and paste to a code editor如下更改行,或者您可以复制并粘贴到代码编辑器
On operating system section option在操作系统部分选项
option = raw_input("\033[0m[>] Select Operating System: \033[0m")
if option == "1":
print "\033[1;33m[*] Loading...\033[0m"
os.system('apt-get install python-pip')
os.system('easy_install pip')
import pip
os.system('sudo apt-get install libjpeg-dev libfreetype6 zlib1g-dev')
os.system('pip install --upgrade beautifulsoup4')
os.system('pip install search_google')
os.system('pip install requests')
os.system('pip install pythonwhois')
os.system('pip install --upgrade html5lib')
os.system('pip install pillow')
os.system('pip install qrcode')
os.system('pip install requests[security]')
os.system('pip install http://effbot.org/downloads/Imaging-1.1.6.tar.gz')
install = os.system("apt-get update && apt-get install -y build-essential git")
install2 = os.system("cp -R trity/ /opt/ && cp trity.py /opt/trity && cp run.sh /opt/trity && cp run.sh /usr/bin/trity && chmod +x /usr/bin/trity")
os.system('apt-get install sendemail')
os.system('apt-get install libncurses5')
from pip._internal import main
main(["install", "scapy", "pythonwhois", "BeautifulSoup", "requests", "mechanize", "google", "qrcode"])
print "\033[1;32m[!] Finished Installing! Run 'trity' to run program [!]\033[0m"
sys.exit()
else:
print "Whoops! Something went wrong!"
Secondly, Save install.py其次,保存 install.py
Then on trity/searchs.py, change the following lines or copy and paste然后在 trity/searchs.py 上,更改以下几行或复制粘贴
from googlesearch import search
class color:
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
UNDERLINE = '\033[4m'
END = '\033[0m'
ENDC = '\033[0m'
W = '\033[0m' # white (normal)
R = '\033[31m' # red
G = '\033[32m' # green
O = '\033[33m' # orange
B = '\033[34m' # blue
P = '\033[35m' # purple
C = '\033[36m' # cyan
T = '\033[93m' # tan
M = '\033[1;35;32m' # magenta
def googleSearch():
lol = raw_input(color.UNDERLINE + ""+T+"Query>" + color.END)
for url in search(lol, tld='com', lang='es', stop=50):
print(""+G+"Site: "+W+"" + url)
Then save, trity/searchs.py然后保存,trity/searchs.py
On trity.py change the single line在 trity.py 上更改单行
** import google ** 导入谷歌
To import googlesearch
import googlesearch
Then save, trity.py然后保存,trity.py
Done完毕
So run所以运行
sudo python install.py须藤蟒安装.py
Thanks, Karibu tena谢谢,卡里布特纳
but except for solutions above (wich you have to use anyway), I have solution for you for 2020-10.但除了上述解决方案(无论如何您都必须使用),我为您提供了 2020-10 年的解决方案。
First (Ubuntu 18.04), ubuntu does not longer use eth0 name for network.首先(Ubuntu 18.04),ubuntu 不再使用 eth0 名称作为网络。
So here (after install)所以在这里(安装后)
"trity/info.py:mac_address = os.popen("cat /sys/class/net/eth0/address").read()" "triity/info.py:mac_address = os.popen("cat /sys/class/net/eth0/address").read()"
You have to change eth0 to enp2s0您必须将 eth0 更改为 enp2s0
Another big problem was that (I am talking about email function), program add @gmail to every victim email.另一个大问题是(我说的是电子邮件功能),程序将@gmail 添加到每个受害者电子邮件中。 So If you want to try your email (as a victim) on yahoo you were out of luck.所以如果你想在雅虎上尝试你的电子邮件(作为受害者),你就不走运了。
Solution is (again after install) to edit smtp.py line 29 where you change解决方案是(再次安装后)编辑 smtp.py 第 29 行更改
"attack = '@gmail.com'" “攻击 = '@gmail.com'”
to (Clearly moderator who completely redline all my effort doesnt know about testing purposes or doesnt realize that I am talking about code, not the attack, thx for throwing all my work away)到(显然版主将我的所有努力完全红线,不知道测试目的,或者没有意识到我在谈论代码,而不是攻击,感谢放弃我所有的工作)
"attack = ''" /////// eh basicly drop @gmail, leave single quotes "attack = ''" /////// 嗯基本上去掉@gmail,留下单引号
It took me about 5 hours to find out everything, so I hope it will help somebody我花了大约 5 个小时才找到所有内容,所以我希望它会帮助某人
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.