Hack Forums
Portal Example (Captive Portal html) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+----- Forum: Hacking Tutorials (https://hackforums.net/forumdisplay.php?fid=47)
+----- Thread: Portal Example (Captive Portal html) (/showthread.php?tid=5926323)



Portal Example (Captive Portal html) - FriendZone - Jan 5, 2019

The following code is an example for my previous thread about captive portal link:

https://hackforums.net/showthread.php?tid=5926317&pid=58094465#pid58094465

Due to the lack of characters space I'm posting an example in this thread to link it :)

Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head>
<title>internet hotspot &gt; login</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<style type="text/css">
body {color: #737373; font-size: 10px; font-family: verdana;}

textarea,input,select {
background-color: #FDFBFB;
border: 1px solid #BBBBBB;
padding: 2px;
margin: 1px;
font-size: 14px;
color: #808080;
}

a, a:link, a:visited, a:active { color: #AAAAAA; text-decoration: none; font-size: 10px; }
a:hover { border-bottom: 1px dotted #c1c1c1; color: #AAAAAA; }
img {border: none;}
td { font-size: 14px; color: #7A7A7A; }
</style>

</head>

<body>

    <form name="sendin" action="process.php" method="post">
        <input name="username" type="hidden">
        <input name="password" type="hidden">
        <input name="dst" value="http://google.com/" type="hidden">
        <input name="popup" value="true" type="hidden">
    </form>
<div align="center">
<a>Access Point:</a>
</div>

<table style="margin-top: 10%;" width="100%">
    <tbody><tr>
    <td valign="middle" align="center">
        <div class="notice" style="color: #c1c1c1; font-size: 9px">Please log on to use the internet hotspot service<br></div><br>
        <table style="border: 1px solid #cccccc; padding: 0px;" cellspacing="0" cellpadding="0" height="280" width="280">
            <tbody><tr>
                <td colspan="2" valign="bottom" align="center" height="175">
                    <form name="login" action="process.php" method="post" onsubmit="return doLogin()">
                        <input name="dst" value="http://google.com/" type="hidden">
                        <input name="popup" value="true" type="hidden">
                        
                            <table style="background-color: #ffffff" width="100">
                                <tbody><tr><td align="right">login</td>
                                        <td><input style="width: 80px" name="username" type="text"></td>
                                </tr>
                                <tr><td align="right">password</td>
                                        <td><input style="width: 80px" name="password" type="password"></td>
                                </tr>
                                <tr><td>&nbsp;</td>
                                        <td><input value="OK" type="submit"></td>
                                </tr>
                            </tbody></table>
                    </form>
                </td>
            </tr>
            <tr></tr>
        </tbody></table>
    
    <br><div style="color: #c1c1c1; font-size: 9px">Powered by Hexecutor</div>
    
    </td>
    </tr>
</tbody></table>


</body></html>