r/HowToHack • u/Ceofreak • Feb 04 '20
Technical Interview as a Penetration Tester - 30 Minutes time to hack a Web App
Hey friends,
I got myself set up with a Technical Interview as a Penetration Tester.
Part of the interview is Hacking a Web Application with a Windows 10 Machine that they provide.
I just want to make sure I don't miss something but I would probably utilize the following:
Nessus
Burp
Check for XSS on the page
Check the page source
...
I don't really do any pentesting from a Windows machine... So I would like to make sure I don't miss any tools that I could potentially use on Windows but don't know of yet.
Let me know your thoughts!
49
Feb 04 '20
I’d just open up dev tools and work through the site. You have 30 minutes to demonstrate that you understand the makeup of a web application, and if you can do it purely from the browser, you’re demonstrating skill over tools.
6
16
u/StrangeError Feb 04 '20
I’ve done multiple of these for jobs. I would bet my a good amount of money that this will be a rehashed version of the following:
https://pentesterlab.com/exercises/web_for_pentester/course
Download the VM and get those down. They will also likely not point out what the vulnerability is on each page. Make sure you know what to look out for.
Knowing that will get you the job and pass the test. If you’re UK based I’ve done these for the likes of Context and NCC for two examples. I’d also ensure that you know how to look through source code for clues etc as well which isn’t covered in the lab mentioned.
Good luck and take notes with you if you’re allowed. Use it as a learning experience at the very least. :)
2
8
u/BoyishUndoing Feb 04 '20
hey OP, it sounds like you already have the answers in the other comments but i’m curious how this is gonna turn out. would be cool to see a follow-up post after your interview. K.I.S.S. and good luck!
3
4
u/silverslides Feb 04 '20
Install dvwa or juice shop and pentest it using Windows with edge and ie
1
12
u/tlarcombe Feb 04 '20
Take a USB with Kali and/or the tools you need to do it properly. Then boot it!
Or (if it is externally available), make sure you can ssh to your own pentest box, and hit it from there.
9
u/Ceofreak Feb 04 '20
I don't think it's allowed. I think you have to literally use windows in a closed network environment.
11
u/BfuckinA Feb 04 '20
I would bring a bootable USB drive just in case. Bring any tools you could use and then let them tell you what you can't do. Worst case is that they are you have the tools and knowledge of how to use them, even if they don't let you display that knowledge.
8
u/ThinCrusts Feb 04 '20
Never thought of the idea of sshing to your own box if working from a different one. Any issues doing so?
3
u/joesnipes Feb 04 '20
In pentests anything goes unless its out of scope. If I was the interviewer, I would encourage thinking out of the box. With that said, I agree with most here that you shouldn't need much.
Another thing to note, if you are expecting to install tools on their Win10 machine, they may have compliance issues depending on the software license.
5
u/VintageData Feb 05 '20
Thinking outside the box would be taking out your cell phone, calling one of their ops guys, posing as the interviewer and social engineering them to give you the main password for the admin interface. “I’ve got the candidate waiting in the lobby and it looks like the default account is missing but now I can’t log in to the admin dashboard.”
1
1
2
2
u/Informal-Mud-4942 Jan 17 '25
So 5 years later, did you end up getting the job?? lol
1
u/Ceofreak Jan 20 '25
Haha. I would have! But in the end it involved too much travel for my liking so I declined. The interview was way easier than I expected.
Anyways, I work as a developer now but thanks for the reminder :D
45
u/gorebull Feb 04 '20
It's webapp, all you need is proxy like burp and nmap + maybe nikto , dirb/gobuster , test-ssl. You don't need whole arsenal of tools for that task.
Look for low hanging fruits using proxy like:
csrf tokens, default credentials, auth bypass, sqli in parameters, xss, serialization, xxe, headers,
standard stuff which can be spotted right away.
I stopped using linux for pentests half year ago so it can be done.
5
3
u/89jase Feb 05 '20
Piggy backing off this comment as it's probably the best one here.
But I cant see anyone mentioning the ability to leverage SQL injections to get a Shell. SQLMap will do most of the heavy lifting for you so check that thats on the machine (it's python so runs on any OS supporting python).
13
u/blindhelix Feb 04 '20
The OS is almost zero percent relevant. I did almost this exact interview where they had me RDP into a windows machine that was in a special DMZ with a webserver also in the DMZ. They told me the IP. All they were looking for was checking page source (had hardcoded creds), two XSS, SQLi, priv exec via cookies or something like that. But they told me after that they didn't really care if I found all the flags. They just wanted to see if I could talk through the OWASP top 10, knew how to use Burp (or ZAP I guess) and had a methodology that was semi close to what they wanted. The technical part was super basic. Your interview may be something like that.
4
u/VintageData Feb 05 '20
I am not a pentester myself but I have some experience in web app security, and this sounds exactly right to me given the 30 minute timeframe.
1
u/Ceofreak Feb 05 '20
Wow this blew up! Thanks for all your input. Gonna look through and take notes. Gonna follow up after the interview on 25th of feb :)
1
2
1
u/tlarcombe Feb 04 '20
The art in pentesting has to be the ability to think outside the box. The app is aimed at people ‘in’ the box. Being prepared for an interview is never a bad thing - being unprepared always is. Even if you can’t boot Kali or ssh to the outside world take nmap and other tools on the USB
1
u/Spagbag Feb 04 '20
If its 30 minutes they will probably be pretty cooperative. Look through the site tell them what you would try where. To save time they will probably give you hints as long as you show you are on the right track.
0
0
u/Stevecaboose Feb 04 '20
Maybe check for value shadowing. Just a suggestion, I'm not security expert
0
u/kp22cfc Feb 04 '20
Also look for privilege escalation using burp , that is not identifiable by any tool
-1
-8
u/shaperaty Feb 04 '20
I am not expert in hacking but you can test server it's alive or not then starting according to your thinking
-18
u/kyolcu Feb 04 '20
Hey if you are not worry about anonymity for testing you can install vm virtual machine . You can use Kali or something like that.. if you are worrying about anonymity 😁 you should use a device which is you made it
0
126
u/ForgottenWatchtower AppSec/ML Feb 04 '20
Nessus won't help. Kali won't help. Metasploit won't help. The underlying OS is irrelevant 99% of the time when testing a web app. The only tool you need is Burp. Brush up on the OWASP Top 10 and don't overthink it. If they're giving you 30 minutes, it's probably some really dumb shit.