#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os,sys,time,subprocess
import warnings,logging


warnings.filterwarnings("ignore",category=DeprecationWarning)
logging.getLogger("scapy.runtine").setLevel(logging.ERROR)

from scapy.all import traceroute

domains = raw_input('please input the domain what you want: ')
target =  domains.split(' ')
dport = [80]

if len(target) >= 1 and target[0] != '':
        res,unans = traceroute(target,dport=dport,retry=-2)
        res.graph(target="> test.svg")
        time.sleep(1)
        subprocess.Popen("/usr/bin/convert test.svg test.png",shell=True)
else:
        print('domain error!')

 

相关文章:

  • 2021-08-06
  • 2022-01-05
  • 2021-11-15
  • 2021-07-31
  • 2021-10-12
  • 2021-12-16
  • 2021-08-07
猜你喜欢
  • 2021-11-17
  • 2021-11-22
  • 2022-02-06
  • 2021-10-12
  • 2021-10-12
  • 2021-12-22
  • 2021-12-07
相关资源
相似解决方案