Skip to content

The Affixer is designed to add specific text, strings, or characters both "Before" and "After" each line in a file. This is useful for modifying lists of domains, URLs, or any other list of data.

License

Notifications You must be signed in to change notification settings

MrNeutr1n0/Affixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Affixer

The Affixer is designed to add specific text, strings, or characters both "Before" and "After" each line in a file. This is useful for modifying lists of domains, URLs, or any other list of data.


affixer1.png

Features

  • Prefixes: Add text to the start of each line.
  • Suffixes: Add text to the end of each line.
  • User-Friendly: Simple to use with command-line arguments.
  • Safe: Includes error checks for smooth operation.

Prerequisites

Make sure you have Python 3.x installed on your system to use Affixer.

Installation

Clone/Download the script to your computer. No extra setup needed.

https://github.com/MrNeutr1n0/Affixer.git

How to Use

Run Affixer in the command line like this:

python affixer.py -i INPUT_FILE -o OUTPUT_FILE -b "PREFIX_TEXT" -a "SUFFIX_TEXT"

Replace INPUT_FILE with your source file, OUTPUT_FILE with the desired output file name, PREFIX_TEXT with the text to add before each line, and SUFFIX_TEXT with the text to add after each line.

python Affixer.py -i INPUT_FILE -o OUTPUT_FILE -b PREFIX_TEXT -a SUFFIX_TEXT

  • -i, --input Input file containing lines to be modified.
  • -o, --output Output file to save the modified lines.
  • -b, --before Text to add before each line (optional).
  • -a, --after Text to add after each line (optional).

Examples

  • Adding "https://" before and "/admin/config.json" after each line in domains.txt:
python affixer.py -i domains.txt -o updated_domains.txt -b "https://" -a "/admin/config.json"
  • Adding "https://" before each line in domains.txt:
python affixer.py -i domains.txt -o updated_domains.txt -b "https://"
  • Adding "/db_backup.sql" after each line in list.txt:
python affixer.py -i list.txt -o list2.txt -a "/db_backup.sql"

etc...


  • Demo 1 affixer1.png
  • Demo 2 affixer1.png
  • Demo 3 affixer1.png

Disclaimer

The Affixer is developed for educational and professional purposes. Please use Affixer responsibly. You are responsible for your actions. Misuse of this tool can lead to potential legal consequences. The developer assumes no liability and is not responsible for any misuse or damage caused by this program.

License

The Affixer is distributed under the MIT License. See MIT License for more information.

About

The Affixer is designed to add specific text, strings, or characters both "Before" and "After" each line in a file. This is useful for modifying lists of domains, URLs, or any other list of data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages