Skip to content

dalaylan/PythonShellCodeExtractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

PythonShellCodeExtractor

quick script to extract all commands used in an active shell and convert them to a python file.

  • An attempt is made to remove invalid lines by checking if they compile.
  • NOTE: This does not catch ValueErrors, so make sure to test the output.

Usage:

  • import this file and then call ExtractShellCode() giving it the filepath you wish to write too.

About

exports history used in python shell to an external file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages