WiFi-Pumpkin -'X 错误:BadAccess(尝试访问私有资源被拒绝)10

WiFi-Pumpkin -'X 错误:BadAccess(尝试访问私有资源被拒绝)10

我已经在我的 ubuntu 18.04 LTS 中安装了 wifi-pumpkin。但每当我想要运行它时,它都会给我这样的错误

mahim@MyUbuntu:~/Desktop/WiFi-Pumpkin$ sudo wifi-pumpkin 
:0: UserWarning: You do not have a working installation of the service_identity module: 'cannot import name opentype'.  Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied.  Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification.  Many valid certificate/hostname mappings may be rejected.
X Error: BadAccess (attempt to access private resource denied) 10
  Extension:    130 (MIT-SHM)
  Minor opcode: 1 (X_ShmAttach)
  Resource id:  0x147
X Error: BadShmSeg (invalid shared segment parameter) 128
  Extension:    130 (MIT-SHM)
  Minor opcode: 5 (X_ShmCreatePixmap)
  Resource id:  0x280000c
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x280000d
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x280000d
WiFi-Pumpkin Already Running.
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x280000d
X Error: BadShmSeg (invalid shared segment parameter) 128
  Extension:    130 (MIT-SHM)
  Minor opcode: 2 (X_ShmDetach)
  Resource id:  0x280000c

它还会弹出一个像这样的窗口 wifi 南瓜错误

我该如何解决这个问题?谢谢

答案1

这对我有用:

  • sudo vim /etc/environment
  • 将其添加QT_X11_NO_MITSHM=1到文件中
  • 使用:wq保存并退出

然后重新执行./wifi-pumpkin

相关内容