简体   繁体   English

从Python脚本重新启动Scapy

[英]Restart scapy from a Python script

Hi is there any method so i can restart scapy while the script is still running? 嗨,有什么方法可以让我在脚本仍在运行时重新启动scapy吗?

I change an interface MAC address and i need to restart Scapy in order to see the changes. 我更改了接口MAC地址,并且需要重新启动Scapy才能看到更改。

Thanks! 谢谢!

Thanks Helmut for your interest. 感谢Helmut的关注。 I managed to solve the problem by making a .bat file with commands from here: Change MAC from cmd and then call .bat file from python. 我设法通过使用以下命令制作.bat文件来解决此问题: 从cmd更改MAC ,然后从python调用.bat文件。

Initialy i was trying to use Popen to execute commands from script but no modifications to registry were made. 最初,我尝试使用Popen从脚本执行命令,但未对注册表进行任何修改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM