Projects STRLCPY dummy Commits 5238d650
🤬
  • ■ ■ ■ ■ ■ ■
    README.md
    skipped 3 lines
    4 4  Generator of static files for testing file upload functionality.
    5 5   
    6 6  ## Motivation
     7 +I often test the file upload function during security testing.
     8 +I am always at a loss as to what kind of images to upload at that time.
     9 +I am not comfortable uploading an image of an Internet meme or a delicious meal to my client's server.
     10 +So I created `dummy` to create images that don't give a bad impression.
    7 11   
     12 +Also, when testing whether a large file can be uploaded, it is often difficult to prepare a large file.
     13 +To solve this, `dummy` has the ability to generate a png of any size by adding an extra chunk to the png.
    8 14   
    9 15  ## Installation
    10 16   
    skipped 4 lines
    15 21  ```
    16 22   
    17 23  ## Usage
     24 +The command outputs are displayed in color.
     25 +Just specify the file path for png, jpeg, or pdf and the file will be generated.
     26 +By default, the generated file is written "dummy file". This text can be changed with the `-t` option.
    18 27   
    19 28  ```bash
    20  -$ dummy
     29 +$ dummy test.jpeg
    21 30  ```
     31 + 
     32 +You can also specify the number of bytes in the file when generating png files with the `-t` option.
     33 + 
     34 + 
     35 +```bash
     36 +$ dummy -t abc -b 1MB test.png
     37 +```
     38 + 
     39 +You can check your options at any time by checking help.
    22 40   
    23 41  ```bash
    24 42  $ dummy -h
    skipped 17 lines
  • ■ ■ ■ ■
    setup.py
    skipped 4 lines
    5 5   
    6 6  setup(
    7 7   name='dummy',
    8  - version='0.0.1',
     8 + version='0.1.0',
    9 9   description='Create a dummy file for testing.',
    10 10   author='Taichi Kotake',
    11 11   packages=['dummy'],
    skipped 17 lines
Please wait...
Page is in error, reload to recover