crash.software
Projects
Pull Requests
Issues
Builds
OWASSRF-CVE-2022-41082_TabShell-CVE-2022-41076
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
OWASSRF-CVE-2022-41082_TabShell-CVE-2022-41076
Files
🤬
Sign In
main
ROOT
/
pypsrp
/
powershell.py
Search
History
1691 lines
|
ISO-8859-1
|
64 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
base64
logging
struct
time
types
typing
uuid
warnings
ET
default_backend
padding
rsa
Cipher
algorithms
modes
version_equal_or_newer
ApartmentState
Command
CommandMetadata
CommandParameter
CommandType
ComplexObject
HostInfo
ObjectMeta
Pipeline
PipelineResultTypes
PSInvocationState
PSThreadOptions
RemoteStreamOptions
RunspacePoolState
FragmentError
InvalidPipelineStateError
InvalidPSRPOperation
InvalidRunspacePoolStateError
WSManFaultError
ApplicationPrivateData
ConnectRunspacePool
CreatePipeline
DebugRecord
Destination
EncryptedSessionKey
EndOfPipelineInput
ErrorRecordMessage
GetAvailableRunspaces
GetCommandMetadata
InformationRecord
InitRunspacePool
Message
MessageType
PipelineHostCall
PipelineHostResponse
PipelineInput
PipelineState
ProgressRecord
PublicKey
ResetRunspaceState
RunspaceAvailability
RunspacePoolHostCall
RunspacePoolHostResponse
RunspacePoolInitData
RunspacePoolStateMessage
SessionCapability
SetMaxRunspaces
SetMinRunspaces
UserEvent
VerboseRecord
WarningRecord
Serializer
SignalCode
WinRS
NAMESPACES
OptionSet
SelectorSet
WSMan
PSHost
log
PROTOCOL_VERSION
PS_VERSION
SERIALIZATION_VERSION
DEFAULT_CONFIGURATION_NAME
RunspacePoolWarning
(Warning)
RunspacePool
(object)
id
state
connection
shell
session_key_timeout_ms
apartment_state
thread_options
host
_min_runspaces
_max_runspaces
_serializer
_fragmenter
_key_exchanged
_new_client
_ci_counter
_exchange_key
protocol_version
ps_version
serialization_version
_application_private_data
__init__
(self,connection:WSMan,apartment_state:int=ApartmentState.UNKNOWN,thread_options:int=PSThreadOptions.DEFAULT,host:typing.Optional["PSHost"]=None,configuration_name:str=DEFAULT_CONFIGURATION_NAME,min_runspaces:int=1,max_runspaces:int=1,session_key_timeout_ms:int=60000,)
application_private_data
(self)
min_runspaces
(self)
min_runspaces
(self,min_runspaces:int,)
max_runspaces
(self)
max_runspaces
(self,max_runspaces:int,)
__enter__
(self)
__exit__
(self,exc_type:typing.Optional[typing.Type[BaseException]],value:typing.Optional[BaseException],traceback:typing.Optional[types.TracebackType],)
close
(self)
connect
(self)
_connect_existing_client
(self)
_connect_new_client
(self)
create_disconnected_power_shells
(self)
disconnect
(self)
get_available_runspaces
(self)
get_command_metadata
(self,names:typing.Union[str,typing.List[str]],command_types:int=CommandType.ALL,namespace:typing.Optional[typing.List[str]]=None,arguments:typing.Optional[typing.List]=None,)
get_runspace_pools
(connection:WSMan,)
open
(self,application_arguments:typing.Optional[typing.Dict]=None,)
exchange_keys
(self)
reset_runspace_state
(self)
serialize
(self,obj:typing.Any,metadata:typing.Optional[ObjectMeta]=None,)
_receive
(self,id:typing.Optional[str]=None,timeout:typing.Optional[int]=None,)
_parse_responses
(self,responses:bytes,pipeline:typing.Optional["PowerShell"]=None,)
_process_host_call
(self,message:Message,response_obj:typing.Union[typing.Type[RunspacePoolHostResponse],typing.Type[PipelineHostResponse]],pipeline:typing.Optional["PowerShell"]=None,)
_process_session_capability
(self,message:Message,)
_process_runspacepool_init_data
(self,message:Message,)
_process_runspacepool_availability
(self,message:Message,)
_process_runspacepool_host_call
(self,message:Message,)
_process_runspacepool_state
(self,message:Message,)
_process_runspacepool_warning
(self,message:Message,)
_process_application_private_data
(self,message:Message,)
_process_encrypted_session_key
(self,message:Message,)
_process_user_event
(self,message:Message,)
PowerShell
(object)
runspace_pool
state
had_errors
history_string
id
is_nested
streams
_from_disconnect
commands
_command_id
__init__
(self,runspace_pool:RunspacePool,)
add_argument
(self,value:typing.Any,)
add_command
(self,command:Command,)
add_cmdlet
(self,cmdlet:str,use_local_scope:typing.Optional[bool]=None,)
add_parameter
(self,parameter_name:str,value:typing.Any=None,)
add_parameters
(self,parameters:typing.Dict[str,typing.Any],)
add_script
(self,script:str,use_local_scope:typing.Optional[bool]=None,)
add_statement
(self)
clear_commands
(self)
connect
(self)
connect_async
(self)
create_nested_power_shell
(self)
begin_invoke
(self,input:typing.Optional[typing.Union[bytes,typing.Iterator]]=None,add_to_history:bool=False,apartment_state:typing.Optional[int]=None,redirect_shell_error_to_out:bool=False,remote_stream_options:typing.Optional[int]=RemoteStreamOptions.ADD_INVOCATION_INFO,)
end_invoke
(self)
invoke
(self,input:typing.Optional[typing.Union[bytes,typing.Iterator]]=None,add_to_history:bool=False,apartment_state:typing.Optional[int]=None,redirect_shell_error_to_out:bool=False,remote_stream_options:typing.Optional[int]=RemoteStreamOptions.ADD_INVOCATION_INFO,)
merge_previous
(self,enabled:bool=False,)
merge_all
(self,to:str="none",)
merge_error
(self,to:str="none",)
merge_warning
(self,to:str="none",)
merge_verbose
(self,to:str="none",)
merge_debug
(self,to:str="none",)
merge_information
(self,to:str="none",)
merge_reset
(self)
poll_invoke
(self,timeout:typing.Optional[int]=None,)
stop
(self)
_invoke
(self,msg:ComplexObject,)
_set_merge_to
(self,merge:str,to:str,valid:typing.Optional[typing.List[str]],min_protocol:typing.Optional[str]=None,)
_process_error_record
(self,message:Message,)
_process_pipeline_host_call
(self,message:Message,)
_process_pipeline_state
(self,message:Message,)
_process_debug_record
(self,message:Message,)
_process_verbose_record
(self,message:Message,)
_process_warning_record
(self,message:Message,)
_process_progress_record
(self,message:Message,)
_process_information_record
(self,message:Message,)
PSDataStreams
(object)
__init__
(self)
Fragmenter
(object)
outgoing_counter
max_size
serializer
__init__
(self,max_size:int,serializer:Serializer,)
fragment
(self,data:ComplexObject,rpid:str,pid:typing.Optional[str]=None,remaining_size:typing.Optional[int]=None,)
fragment_multiple
(self,blocks:typing.List[ComplexObject],rpid:str,pid:typing.Optional[str]=None,)
defragment
(self,data:bytes,)
_byte_iterator
(self,data:bytes,buffer_size:int,)
Fragment
(object)
object_id
fragment_id
start
end
data
__init__
(self,object_id:int,fragment_id:int,data:bytes,start:bool=False,end:bool=False,)
pack
(self)
unpack
(data:bytes)
All occurrences
Please wait...
Page is in error, reload to recover