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 | |
| 0day-Mari Bot | 77 | 7,137 |
35 minutes ago Last Post: Diezxx |
||
| [2026] Bypass AV / EDR | 63 | 1,201 |
Yesterday, 07:19 PM Last Post: AKASHIC |
||
| Unlimited Free Cloud | 105 | 7,916 |
Yesterday, 07:17 PM Last Post: AKASHIC |
||
| Bypassing Modern AV (Metasploit Method) | 9 | 524 |
Yesterday, 07:14 PM Last Post: AKASHIC |
||
| [FREE] Database Searcher Telegram | 1,021 | 87,570 |
Yesterday, 10:08 AM Last Post: hexaagent00 |
||