Skip to content
/ tar.py Public

Utility for creating Linux tar.gz archives with proper file permissions (executable bit set) on Windows

License

Notifications You must be signed in to change notification settings

Enichan/tar.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

tar.py

Utility for creating Linux tar.gz archives with proper file permissions (executable bit set) on Windows

Usage: tar.py [out] [file1] [file2] ... [fileN]
Do not add extension to out file
Add +x at the end of a file to set executable bit
Directories are added recursively, files already added are skipped
Options:
  -autoexec    Detect and set executable file permissions automatically

Examples

Compress a directory test to thing.tar.gz

python tar.py thing test

Compress a directory myapp with various executables to myapp100.tar.gz

python tar.py -autoexec myapp100 myapp

Compress a readme.txt and executable run.sh file to stuff.tar.gz

python tar.py stuff readme.txt run.sh+x

Compress a directory payload with executable run.sh file to blah.tar.gz

python tar.py blah payload/run.sh+x payload

Note that run.sh+x must come before the directory so that it is skipped when encountered

About

Utility for creating Linux tar.gz archives with proper file permissions (executable bit set) on Windows

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages