GithubHelp home page GithubHelp logo

get-ips's Introduction

File Processor Script

This bash script provides an interactive menu for selecting files from a specified directory and executing a command on the selected file. The results of the command are then saved in another specified directory.

Usage

  1. Ensure you have the necessary permissions to execute the script (chmod +x ips.sh).
  2. Customize the script by specifying the source directory where your files are located and the destination directory where you want to save the results.
  3. Run the script (./ips.sh) and follow the on-screen instructions.

Features

  • Interactive menu for file selection.
  • Executes a specified command on the selected file.
  • Saves the results of the command in a separate file.

Dependencies

  • This script relies on standard bash commands and does not require any additional dependencies.

Example

Suppose you have a directory /path/to/files containing text files. You want to extract IP addresses from each file using the httpx command and save the results in /path/to/results.

  1. Customize the script by setting source_directory="/path/to/files" and destination_directory="/path/to/results".
  2. Run the script (./file_processor.sh).
  3. Select the file you want to process from the menu.
  4. The script will execute the command cat "$selected_file" | httpx -ip -silent | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' on the selected file and save the results in "$destination_directory/$selected_file.txt".

License

This script is licensed under the MIT License.

get-ips's People

Contributors

jjardel-infosec avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.