Twi1ight / impacket

Automatically exported from code.google.com/p/impacket
Other
1 stars 4 forks source link

psexec will always return 1 #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. no matter what you do, psexec will always return 1 because general 
exceptions are caught at the end of the script

            if len(ans):
               retCode = RemComResponse(ans)
               print "[*] Process %s finished with ErrorCode: %d, ReturnCode: %d" % (self.__command, retCode['ErrorCode'], retCode['ReturnCode'])
            installService.uninstall()
            unInstalled = True
            sys.exit(retCode['ErrorCode'])# this throws a system exit exception

        except:#this will catch the system exit exception
            if unInstalled is False:
                installService.uninstall()
            sys.stdout.flush()
            sys.exit(1)# No matter what, 1 will be returned

Original issue reported on code.google.com by rustysco...@gmail.com on 18 Jun 2013 at 5:59

GoogleCodeExporter commented 9 years ago
Hey there:

Can you check if http://code.google.com/p/impacket/source/detail?r=767 fixed 
your issue?

beto

Original comment by bet...@gmail.com on 18 Jun 2013 at 6:49

GoogleCodeExporter commented 9 years ago
I really haven't had time to test the change, but I am 99% sure that if it 
doesn't throw a syntax error it should work.

Original comment by rustysco...@gmail.com on 9 Jul 2013 at 11:42

GoogleCodeExporter commented 9 years ago

Original comment by bet...@gmail.com on 10 Jul 2013 at 12:29