The-Capstone-Project / OS-Scraper

Operating System Information Scraping Agents
2 stars 0 forks source link

Shell informations #11

Open psychoSherlock opened 2 weeks ago

psychoSherlock commented 2 weeks ago

Task 1:

Shell informations including but not limited to Current shell being used its location contents of .rc file of the shell being used eg:

/home/user/.bashrc
/home/user/.zshrc

Task 2:

Only with confirmation of the user, collect shell history. both current shell history and the history in .{shell}_history files All KEYS should be redacted eg:

KEY1=REDACTED
KEY2=REDACTED
command [argument] --key=REDACTED

You both can do work either combined or induvidually

vaishakhsnair commented 2 weeks ago

How are we gonna implement user approval via the RAG?

psychoSherlock commented 2 weeks ago

what d u mean user approval?

vaishakhsnair commented 2 weeks ago

How are you gonna ask for user permission

psychoSherlock commented 1 week ago

How are you gonna ask for user permission

Each agents could jst ask for a prompt based reply right? Whats the confusion?

psychoSherlock commented 6 days ago

@kaalibabe Here's what you have to do next:

Command line argument to fetch n history

Example:

go run main.go -n 100
# This should output the last 100 history

if given without this then show entire history if given with the -n option but without the number then show entire history while.

Also you have to include a warning, with an yes or no prompt:

Warning: Entire history will be collected! Are you sure? (yes/no): 

Complete the tasks given ASAP.

psychoSherlock commented 5 days ago

@anubix05 Extract all installed zsh plugins and display them in the same code.