Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task 3 : Defiance #3

Open
CodingWarrior33 opened this issue Mar 17, 2023 · 0 comments
Open

Task 3 : Defiance #3

CodingWarrior33 opened this issue Mar 17, 2023 · 0 comments

Comments

@CodingWarrior33
Copy link
Collaborator

CodingWarrior33 commented Mar 17, 2023

So you have made it so far where you have successfully hacked into the database by fetching and merging the required files.

Now you must be having a file named encrypt.txt. It is a file containing random characters encodings about the database. However all databases have vulnerabilities wherein a certain part of the data is not encrypted for further easy updates that need to be rolled out. You need to find a vulnerability in the given text file.

You are certain that the vulnerability involves "Deanu". Search for "Deanu".

hacker-hack

Hacks

  • Make a new branch Defiance from the previous branch.
  • Keep adding valid screenshots to a doc file that show the different changes you made.
  • Convert the doc file to a PDF and add it to this branch in the repo.
  • Send a PR after changing and committing the above changes.
  • The PR should contain the modified text file and the newly created PDF file.
  • In the PR write 🎯Solved-Defiance

For users in MacOS / Linux :

Use the grep command for searching for the vulnerability :

  grep word_here filename_here.txt

For users in Windows :

Use the findstr command for searching for the vulnerability :

  findstr “word_here” “filename_here.txt”
  • Now make a new doc file and take a screenshot of the above vulnerability.

Make changes to the above vulnerability. Change the vulnerability to KP WAS HERE.

For users in MacOS / Linux :

Use the sed command for finding and replacing for the vulnerability :

  sed -i 's/original_word/new_word/g' filename_here.txt

For users in Windows (Seriously consider switching to Linux/ MacOS) :

Use the findstr command for searching for the vulnerability :

  (Get-Content filename_here.txt) -replace 'original_word', 'new_word' | Out-File -encoding ASCII myFile.txt
  • Check for the change by again using the grep or the findstr command. Attach the screenshot of the change in the doc file.

Screenshot 2023-03-24 at 10 30 30 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants