changed check is rootuser for use on github actions deploy

This commit is contained in:
mh4x0f 2020-04-15 19:26:24 -03:00
parent 6a949fd9c0
commit 9154041608
3 changed files with 6 additions and 2 deletions

View File

@ -79,6 +79,7 @@ All notable changes to this project will be documented in this file.
- Initial commit. [mh4x0f] - Initial commit. [mh4x0f]
### Changed ### Changed
- changed check is rootuser for use on github actions deploy [mh4x0f]
- changed name author to made by into bin/wifipumpkin3 [mh4x0f] - changed name author to made by into bin/wifipumpkin3 [mh4x0f]
- refactored all controllers implementation codestyle [mh4x0f] - refactored all controllers implementation codestyle [mh4x0f]
- improved folder copy code on setup.py [mh4x0f] - improved folder copy code on setup.py [mh4x0f]

View File

@ -3,6 +3,7 @@
**Powerful framework for rouge access point attack.** **Powerful framework for rouge access point attack.**
[![build status](https://github.com/facebookincubator/Bowler/workflows/Build/badge.svg)](https://github.com/mh4x0f/wifipumpkin3/actions)
[![license](https://img.shields.io/badge/license-apache%202-orange)](https://github.com/mh4x0f/wifipumpkin3/blob/dev/LICENSE.md) [![license](https://img.shields.io/badge/license-apache%202-orange)](https://github.com/mh4x0f/wifipumpkin3/blob/dev/LICENSE.md)
[![changelog](https://img.shields.io/badge/change-log-yellow)](https://github.com/mh4x0f/wifipumpkin3/blob/dev/CHANGELOG.md) [![changelog](https://img.shields.io/badge/change-log-yellow)](https://github.com/mh4x0f/wifipumpkin3/blob/dev/CHANGELOG.md)
[![changelog](https://img.shields.io/badge/versioon-1.0.0-blue)](https://github.com/mh4x0f/wifipumpkin3/) [![changelog](https://img.shields.io/badge/versioon-1.0.0-blue)](https://github.com/mh4x0f/wifipumpkin3/)

View File

@ -38,8 +38,6 @@ def parser_args_func(parse_args):
if __name__ == "__main__": if __name__ == "__main__":
if not getuid() == 0:
sys.exit("[!] Wp3 must be run as root.")
app = QtCore.QCoreApplication(sys.argv) app = QtCore.QCoreApplication(sys.argv)
conf = SettingsINI.getInstance() conf = SettingsINI.getInstance()
@ -90,6 +88,10 @@ if __name__ == "__main__":
parse_args = parser.parse_args() parse_args = parser.parse_args()
parser_args_func(parse_args) parser_args_func(parse_args)
# check is rootuser
if not getuid() == 0:
sys.exit("[!] Wp3 must be run as root.")
_author = "{}".format(setcolor(__author__, color="yellow")) _author = "{}".format(setcolor(__author__, color="yellow"))
_version = setcolor(__version__, color="yellow") _version = setcolor(__version__, color="yellow")