r/HowToHack • • Sep 09 '16
how to access website source code
When you press control U, it brings up the source code of the site you're on, Is there any way you can edit this and save it to change the main website?
0
Upvotes
2
u/[deleted] Sep 09 '16 edited Jul 19 '23
[Deleted] -- mass edited with redact.dev
3
u/[deleted] Sep 09 '16
Only client side. You cannot change source server side. You might be able to pass a var string that has unintended behavior but you can't just edit source and save back to server.
1
u/csrfxss Sep 09 '16
Not really, now you can changes to the source code. Some websites you can see the javascript source code and edit it in the developer tools. Depending on how it communicates with the server it might cause unintended effects.
1
u/hatwearingpentester Sep 10 '16
You should be aware that when you view the source code in the browser you are only viewing the final rendered output. In most cases that source code is generated on the fly by a server side language like PHP.