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 | |
| [FREE] Database Searcher Telegram | 1,012 | 82,477 |
1 hour ago Last Post: test101 |
||
| Cardable Giftcard Websites | 11 | 476 |
Yesterday, 12:39 PM Last Post: yuhang |
||
| ✅ Top 10 Google Dorks For SQL Injections | 10 | 311 |
Yesterday, 08:44 AM Last Post: auhfgkjasfhaj |
||
| Top 10 Phishing Tools To Use 2024 | 578 | 37,106 |
May 02, 2026, 03:02 PM Last Post: cwel321 |
||
| Bypassing Modern AV (Metasploit Method) | 5 | 371 |
May 02, 2026, 02:11 PM Last Post: UnknownUser01 |
||