Feb 03, 2024, 09:13 PM
what's wrong with this logic in php
if (!(strcmp['pass'],$pass))
{login ..}
else
{bye bye}
if (!(strcmp['pass'],$pass))
{login ..}
else
{bye bye}
|
little challenge php
by zinzeur - Saturday February 3, 2024 at 09:13 PM
|
|
Feb 03, 2024, 09:13 PM
what's wrong with this logic in php
if (!(strcmp['pass'],$pass)) {login ..} else {bye bye}
Feb 12, 2024, 12:23 PM
The flaw is that it's not valid php ?
You can't access an array index on a function "strcmp". But if you wrote if (!(strcmp($GET_['pass'],$pass))) It would be bypassable if you were passing an empty array in $pass
Feb 13, 2024, 05:22 PM
(Feb 12, 2024, 12:23 PM)akjoulema Wrote: The flaw is that it's not valid php ? good that's the point it's bypassable if u pass empty array
Feb 13, 2024, 07:49 PM
Syntax error for invalid PHP
(Feb 13, 2024, 05:22 PM)zinzeur Wrote:(Feb 12, 2024, 12:23 PM)akjoulema Wrote: The flaw is that it's not valid php ? Ok, but still it's not valid PHP. You could have took a minute to at least write the code in an IDE (Feb 14, 2024, 08:11 AM)akjoulema Wrote:bro the line of code that I wanted to highlight is valid php remaining doesnt matter(Feb 13, 2024, 05:22 PM)zinzeur Wrote:(Feb 12, 2024, 12:23 PM)akjoulema Wrote: The flaw is that it's not valid php ? (Feb 14, 2024, 02:06 PM)zinzeur Wrote:also I said what's wrong with logic not syntax (syntax error is not a challenge)(Feb 14, 2024, 08:11 AM)akjoulema Wrote:bro the line of code that I wanted to highlight is valid php remaining doesnt matter(Feb 13, 2024, 05:22 PM)zinzeur Wrote:(Feb 12, 2024, 12:23 PM)akjoulema Wrote: The flaw is that it's not valid php ? |
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| [SCRIPT] GOOGLE DORKS GENERATOR | 63 | 9,838 |
1 hour ago Last Post: winter222 |
||
| FREE SITE FOR REST PASSWORD POISONING/HOST HEADER INJECTION TESTING | 23 | 5,702 |
1 hour ago Last Post: winter222 |
||
| [FREE] Database Searcher Telegram | 1,014 | 84,425 |
8 hours ago Last Post: locomoco |
||
| Cardable Giftcard Websites | 11 | 494 |
May 03, 2026, 12:39 PM Last Post: yuhang |
||
| ✅ Top 10 Google Dorks For SQL Injections | 10 | 322 |
May 03, 2026, 08:44 AM Last Post: auhfgkjasfhaj |
||