Skip to content

Commit

Permalink
UX: add python compatible version check at start
Browse files Browse the repository at this point in the history
  • Loading branch information
nil0x42 committed Sep 10, 2020
1 parent 2907dda commit 7cec66c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions phpsploit
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ import os

VERSION = "3.0"

# check operating system
if sys.platform.lower().startswith('win'):
sys.exit('[-] If you use Windows, you should be '
'a TARGET rather than an attacker ...')

# check python version
ver = sys.version_info
if ver[0] < 3 or (ver[0] == 3 and ver[1] < 5):
sys.exit('[-] PhpSploit needs python >= 3.5 to run')

try:
import src # spread phpsploit sources

Expand Down

0 comments on commit 7cec66c

Please # to comment.