$OpenBSD: patch-examples_goldenPac_py,v 1.3 2016/05/26 09:29:23 dcoppa Exp $

commit b6f28459970a4fc0a63dce9323da97287ada1322
Author: asolino <bethus@gmail.com>
Date:   Sun May 15 18:46:20 2016 -0300

Fix empty domain check

--- examples/goldenPac.py.orig	Wed Jan  6 09:43:25 2016
+++ examples/goldenPac.py	Wed May 25 09:08:30 2016
@@ -20,10 +20,10 @@
 #   5) Use WMIEXEC approach instead
 #
 #   E.G:
-#       python goldenPac domain.net/normaluser@domain-host
+#       ${MODPY_BIN} goldenPac domain.net/normaluser@domain-host
 #       the password will be asked, or
 #
-#       python goldenPac.py domain.net/normaluser:mypwd@domain-host
+#       ${MODPY_BIN} goldenPac.py domain.net/normaluser:mypwd@domain-host
 #
 #       if domain.net and/or domain-host do not resolve, add them
 #       to the hosts file or use the -dc-ip and -target-ip parameters
@@ -1262,14 +1262,14 @@ if __name__ == '__main__':
     if len(sys.argv)==1:
         parser.print_help()
         print "\nExamples: "
-        print "\tpython goldenPac domain.net/normaluser@domain-host\n"
+        print "\t${MODPY_BIN} goldenPac domain.net/normaluser@domain-host\n"
         print "\tthe password will be asked, or\n"
-        print "\tpython goldenPac.py domain.net/normaluser:mypwd@domain-host\n"
+        print "\t${MODPY_BIN} goldenPac.py domain.net/normaluser:mypwd@domain-host\n"
         print "\tif domain.net and/or domain-machine do not resolve, add them"
         print "\tto the hosts file or explicity specify the domain IP (e.g. 1.1.1.1) and target IP:\n"
-        print "\tpython goldenPac.py -dc-ip 1.1.1.1 -target-ip 2.2.2.2 domain.net/normaluser:mypwd@domain-host\n"
+        print "\t${MODPY_BIN} goldenPac.py -dc-ip 1.1.1.1 -target-ip 2.2.2.2 domain.net/normaluser:mypwd@domain-host\n"
         print "\tThis will upload the xxx.exe file and execute it as: xxx.exe param1 param2 paramn"
-        print "\tpython goldenPac.py -c xxx.exe domain.net/normaluser:mypwd@domain-host param1 param2 paramn\n"
+        print "\t${MODPY_BIN} goldenPac.py -c xxx.exe domain.net/normaluser:mypwd@domain-host param1 param2 paramn\n"
         sys.exit(1)
  
     options = parser.parse_args()
@@ -1282,7 +1282,7 @@ if __name__ == '__main__':
         password = password + '@' + address.rpartition('@')[0]
         address = address.rpartition('@')[2]
 
-    if domain is None:
+    if domain is '':
         logging.critical('Domain should be specified!')
         sys.exit(1)
 
