- 1Understand that this method won't work for most websites. Unless the website has been created using incredibly rudimentary HTML protection, passwords and login information will be stored in encrypted formats which aren't accessible by looking at the website's HTML.
-
2Open the website. In a web browser such as Chrome, Firefox, or Safari, go to the website that you want to attempt to hack.
-
3Go to the "Login" section. If the website has a dedicated login section, click the Log In or Sign In link to go to it.
- If your website loads to a login screen (or if the login section is on the home page), you can skip this step.
-
4Open the website's source code. Each browser has a different way of doing this from the menu, but the easiest way to view your website's HTML code is by pressing either Ctrl+U (Windows) or ⌘ Command+U (Mac). This will open a new tab with the website's source code displayed.
- If you're using Microsoft Edge, you'll have to click the Elements tab in the pop-out menu that appears in order to view the page HTML.
-
5Open the "Search" feature. On the source code tab, press either Ctrl+F(Windows) or ⌘ Command+F (Mac) to prompt a search bar to appear in the top-right corner of the window.
-
6Search for the login information. Type password into the search box, then scroll through the highlighted results. If you don't see any results, shorten the search to pass and repeat, then do the same with user, username, login, and other keywords which may describe login information.
- If you're attempting to hack the website by logging in under the website's administrator credentials, the username may be something like "admin" or "root".
-
7Try entering an incorrect username and password combination. If you've combed through the HTML with no adequate search results, do the following:
- Close the source tab.
- Type in random letters for the username (or email address) and password fields.
- Click the Log In button.
- Re-open the source page by pressing Ctrl+U or ⌘ Command+U.
-
8Resume looking for login credentials.Once you've updated the source code to reflect what's on the failed login attempt page, you can resume using the search bar to look for keywords pertaining to the login information.
-
9Enter any found login credentials on the site. If you were able to retrieve some form of username and password from the website's HTML, try using the credentials in the website's login section. If they work, you've found the correct credentials.
- Again, the chances of anything you found in the HTML working as a successful login are extremely low.
How to Hack a Website with Basic HTML Coding
April 19, 2019
0
Tags