little challenge php
by zinzeur - Saturday February 3, 2024 at 09:13 PM
#1
what's wrong with this logic in php
if (!(strcmp['pass'],$pass))
  {login ..} 
else 
  {bye bye}
Reply
#2
This is CSS @zinzeur

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Scamming
Reply
#3
(Feb 03, 2024, 09:15 PM)TIA Wrote: This is CSS @zinzeur
no it's php not css
Reply
#4
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
Reply
#5
(Feb 12, 2024, 12:23 PM)akjoulema Wrote: 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

good that's the point it's bypassable if u pass empty array
Reply
#6
Syntax error for invalid PHP Smile
Reply
#7
(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 ?
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

good that's the point it's bypassable if u pass empty array


Ok, but still it's not valid PHP. You could have took a minute to at least write the code in an IDE
Reply
#8
(Feb 14, 2024, 08:11 AM)akjoulema Wrote:
(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 ?
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

good that's the point it's bypassable if u pass empty array


Ok, but still it's not valid PHP. You could have took a minute to at least write the code in an IDE
bro the line of code that I wanted to highlight is valid php remaining doesnt matter

(Feb 14, 2024, 02:06 PM)zinzeur Wrote:
(Feb 14, 2024, 08:11 AM)akjoulema Wrote:
(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 ?
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

good that's the point it's bypassable if u pass empty array


Ok, but still it's not valid PHP. You could have took a minute to at least write the code in an IDE
bro the line of code that I wanted to highlight is valid php remaining doesnt matter
also I said what's wrong with logic not syntax (syntax error is not a challenge)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] Database Searcher Telegram odanbtw 1,014 84,298 5 hours ago
Last Post: locomoco
  Cardable Giftcard Websites AKASHIC 11 490 May 03, 2026, 12:39 PM
Last Post: yuhang
  ✅ Top 10 Google Dorks For SQL Injections NextSoftGroup 10 318 May 03, 2026, 08:44 AM
Last Post: auhfgkjasfhaj
  Top 10 Phishing Tools To Use 2024 Frontman 578 37,334 May 02, 2026, 03:02 PM
Last Post: cwel321
  Bypassing Modern AV (Metasploit Method) godco99 5 373 May 02, 2026, 02:11 PM
Last Post: UnknownUser01

Forum Jump:


 Users browsing this forum: 1 Guest(s)