/    Sign up×
Community /Pin to ProfileBookmark

Dumb Puzzling Web Protect

How can I make it so that it is an input type (like… arg…)

Have a login.php page with inputs that are password/username and it will go to a web protected folder. I am hosting with globat.com if that helps any. But I was wondering how to bypass the challenge window (the one window that requires you to enter a username and password or it says you do not have authorization to access this page.) So if anyone has any ideas/information that is REALLY helpful right now.

to post a comment
PHP

10 Comments(s)

Copy linkTweet thisAlerts:
@diamondsNov 27.2003 — describe the login.php page.
Copy linkTweet thisAlerts:
@JonathanauthorNov 27.2003 — I just need a username textbox and a password textbox... I don't know how to make it. I am stumpted...
Copy linkTweet thisAlerts:
@pyroNov 27.2003 — <input type="text" name="username">
<input type="password" name="password">
Copy linkTweet thisAlerts:
@JonathanauthorNov 27.2003 — but how do i point it to the web protected... does it bypass the challenge window (the username + password) window?
Copy linkTweet thisAlerts:
@pyroNov 27.2003 — You're losing me... Perhaps you have a link, and could try explaining better...
Copy linkTweet thisAlerts:
@JonathanauthorNov 27.2003 — Okay let me try and explain it...

Whenever you use your hosts (globat.com is mine) web protect action it makes it so that the folder requires a username and password... Or else you can't get in. But this window is a popup window. It is not javascript. I don't know how to bypass this popup window with a username and password textbox on a html page. Say you had an html page that has a <input type="text" name="username"> and <input type="password" name="password"> and a submit button. Then it connects to a database, validates the username + password (to see if its there), then it bypasses the popup username and window that they already filled out on the html page. Would the popup password window still popup if they did enter the username and password?
Copy linkTweet thisAlerts:
@pyroNov 27.2003 — What kind of password is it? .htaccess?
Copy linkTweet thisAlerts:
@brendandonhueNov 28.2003 — It sounds like its htaccess pyro.

I wrote a PHP script awhile ago to login to htaccess protected files, i'll see if I can find it.
Copy linkTweet thisAlerts:
@brendandonhueNov 28.2003 — <?php

$username = $_POST['username'];

$password = $_
POST['password'];

$server = $_POST['server'];

$htsite = "http://" . $username . ":" . $password . "@" . $server;

header("Location: $htsite");

?>

<form action="<?php echo $PHP_SELF ?>" method="POST">

<input type="hidden" name="server" value="www.domain.com/secure/">

Username:

<input type=text name=username size=20>

<br><br>

Password:

<input type=password name=password size=20>

<input type="submit" value="Login">

</form>
Copy linkTweet thisAlerts:
@JonathanauthorNov 28.2003 — I will see if that works... thanks
×

Success!

Help @Jonathan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...