我试图在OpenShift在线上安装“whois”,但由于权限问题,我不能用yum安装
\> yum install whois
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:
Error: rpmdb open failed
我不知道安装软件包的其他方法,所以考虑编译源代码。
是可用的。
\> make -version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free soft
请检查下面的输出,我在安装和导入了谁的模块后可以帮助解决这个问题吗? Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import whois
>>> domain = whois.query('www.google.com')
Traceba
我试着使用sans.org域名,但是我得到了以下错误:
getaddrinfo(whois.pir.org): Name or service not known.
然后我尝试WHOIS tiffany.com并得到一个类似的错误:
getaddrinfo(whois.verisign-grs.com): Name or service not known.
getaddrinfo意味着什么? whois.pir.org和whois.virusigngrs.com意味着什么?
linux和WHOIS查询非常新。谢谢!
我使用的是 (它只是用whois linux命令生成一个whois进程。我使用的是"node:argon“docker镜像,但它没有安装whois。
然后我试着使用"ubuntu:12.04",但我在用它运行应用程序时遇到了问题。这是我的Dockerfile:
FROM ubuntu:12.04
WORKDIR /srv
ADD . /srv
RUN apt-get update
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup | bash -
RUN apt-get i
我正在运行我的ML代码并得到这个错误-
Enter website name=> www.google.com
Traceback (most recent call last):
File "Dphishing.py", line 12, in <module>
p2.category2(website)
File "C:\xampp\htdocs\Detect_Phishing_Website\p2.py", line 8, in category2
page = whois.whois(website)
A
我有一个IP列表,我想对其运行whois (使用linux工具whois),并且只看到Country选项。
下面是我的脚本:
import os
import time
iplist = open('ips.txt').readlines()
for i in iplist:
time.sleep(2)
print "Country: IP {0}".format(i)
print os.system("whois -h whois.arin.net + {0} | grep Country "
我试图使用一个脚本来运行两个linux命令WHOIS和DIG。
到目前为止,我的脚本如下:
#!/bin/bash
for i in $1
do
reg1=`whois $i`
echo "*********WHOIS Results for $i*********"
echo -e "[$i]\n$reg1"
for j in 4.2.2.3
do
reg=`dig any @$j $i `
echo -e "[$j]$reg"
done
done
现