avatarTeri Radichel

Summarize

Error when entering backticks on AWS EC2 instance in shell

Backticks make the text go all over the place

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚙️ Check out my series on Automating Cybersecurity Metrics | Code.

🔒 Related Stories: Application Security | Secure Code | AWS Security | EC2

💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Entering backticks on the command line in a bash shell on an AWS EC2 instance leads to all kinds of wonky behavior. Is it the backticks? Or because I have multiple tabs open? Or…??? Here’s what happens.

I was trying to do something like the query in the commands in this story.

I had all kinds of strange behavior trying to run that scirpt.

Now I’m trying to run a separate query usign that same functionality but for AWS Organizational Units.

What happens when I enter the backticks is that the cursor jumps to the line above where it should be.

I start by copying and pasting this line into the command shell:

I change the name of the command — so far so good.

I add a space and two dashes so I can add the parent-id parameter and I get this:

UGH. What is that? There’s no way for me to edit this now.

If I hit enter and hit the up arrow to get the last line I typed…

That is not what I typed.

If I try to backspace the whole line disappears. The cursor jumps up a line which is not right at all. It should never go back a line.

If I hit enter, it appears to execute something I can’t see. Thankfully it was an invalid command since I have no idea what just ran.

I type clear and then the up arrow. I get something somewhat promising. Maybe I can work with this.

As I’m typing “OrganizationalUnits” my cursor randomly jumps to the right and now I have duplicate text.

So, this is a pointless exercise. I can try to write it in a script instead. Sometimes when I logout and log back in it works.

But whatever is going on here is 100% a bug.

Well, I just tried this on my local Mac and the same thing happens there. So perhaps there’s something bigger than AWS going on here. But it doesn’t look good, whatever it is. I really don’t have time to dig into this. Behind on a pentest

Follow for updates.

Teri Radichel | © 2nd Sight Lab 2023

About Teri Radichel:
~~~~~~~~~~~~~~~~~~~~
⭐️ Author: Cybersecurity Books
⭐️ Presentations: Presentations by Teri Radichel
⭐️ Recognition: SANS Award, AWS Security Hero, IANS Faculty
⭐️ Certifications: SANS ~ GSE 240
⭐️ Education: BA Business, Master of Software Engineering, Master of Infosec
⭐️ Company: Penetration Tests, Assessments, Phone Consulting ~ 2nd Sight Lab
Need Help With Cybersecurity, Cloud, or Application Security?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔒 Request a penetration test or security assessment
🔒 Schedule a consulting call
🔒 Cybersecurity Speaker for Presentation
Follow for more stories like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
❤️ Sign Up my Medium Email List
❤️ Twitter: @teriradichel
❤️ LinkedIn: https://www.linkedin.com/in/teriradichel
❤️ Mastodon: @teriradichel@infosec.exchange
❤️ Facebook: 2nd Sight Lab
❤️ YouTube: @2ndsightlab
Bug
Shell
Bash
Backticks
Multiple Tabs
Recommended from ReadMedium