Hiding Session Id
Started on the old forum in January 2009 · view the original in the archive · old links redirect here
Nope lavalair is stuck with sid id it will show no matter what....
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
QUOTE (subzero @ Jan 27 2009, 04:29 PM) <{POST_SNAPBACK}>
Nope lavalair is stuck with sid id it will show no matter what....
not true..
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!
foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
QUOTE (drwap @ Jan 27 2009, 06:10 PM) <{POST_SNAPBACK}>
mod_rewrite
How do you plan to use mod_rewrite to hide session id? :S
QUOTE (youngson @ Jan 27 2009, 09:26 PM) <{POST_SNAPBACK}>
How do you plan to use mod_rewrite to hide session id? :S
btw b4 tht kind of post, 1st c whts mod_rewrite... try google it
eeeeerrr....
QUOTE (alesh @ Jan 27 2009, 10:56 PM) <{POST_SNAPBACK}>
btw b4 tht kind of post, 1st c whts mod_rewrite... try google it
Btw b4 tht kind of post, don't insult my intelligence like that. I know fine what mod rewrite is. You would know that if you read my posts. I currently have it enabled in the site I am making atm which you will find in the script testing forum.
QUOTE (alesh @ Jan 27 2009, 10:55 PM) <{POST_SNAPBACK}>
yeah mod_rewrite would do the job but theres easier way to protect ur session id with only few lines of code and then u cn give ur session id in public and they can do shit with it lol...
And I still fail to see what mod_rewrite can do to hide session id, as it needs it in the url somewhere so it can be passed along as a parameter. Hence why I asked how can you do that with mod_rewrite.
mod rewrite isnt the way forward ... look at what the user gives you to identify themselves .. erm browser ??? ip ??? just to name two .. so why not make those two things part of the authentication process.. if ($currentip != $storedip) then request re-login ... that would solve erm .. 99% of your script kidding session jacking .. the rest of the 1% .. well dont even trying to stop them cause even i can brute force ur ssh port into submission.. so the experts that make up that 1% wouldnt have a problem
QUOTE (djlee @ Jan 28 2009, 01:45 AM) <{POST_SNAPBACK}>
mod rewrite isnt the way forward ... look at what the user gives you to identify themselves .. erm browser ??? ip ??? just to name two .. so why not make those two things part of the authentication process.. if ($currentip != $storedip) then request re-login ... that would solve erm .. 99% of your script kidding session jacking .. the rest of the 1% .. well dont even trying to stop them cause even i can brute force ur ssh port into submission.. so the experts that make up that 1% wouldnt have a problem
Ip & browser is definately the wrong way to login because both are varible. I would use cookies.
erm yh exactly .. variable .. and cookies arent the way to go unless you know what your doing .. and cookies store data .. much like session id's and therefore and n00b with a keyboard and create and destroy cookies on there own machine.
think about it .. IP .. erm your ip is locked to your account, in order for me to continue your session is to have the same ip address .. IP changes you gotta relogin .. and i dont kno the pass so i cant.
the whole point is to use dynamic variables.. 90% of static vars arent no good and they can be spoofed far too easily
QUOTE (djlee @ Jan 28 2009, 04:13 AM) <{POST_SNAPBACK}>
erm yh exactly .. variable .. and cookies arent the way to go unless you know what your doing .. and cookies store data .. much like session id's and therefore and n00b with a keyboard and create and destroy cookies on there own machine.
think about it .. IP .. erm your ip is locked to your account, in order for me to continue your session is to have the same ip address .. IP changes you gotta relogin .. and i dont kno the pass so i cant.
the whole point is to use dynamic variables.. 90% of static vars arent no good and they can be spoofed far too easily
Thats problem for login if you use ip because if your current ip is different from your preview ip then you cant login anymore.
no if your stored ip and ur current ip is different then the session is deleted, then u need to relogin back in .. upon relogging in the script enters your new ip into the db and that becomes ur stored ip. therefore the hijacker needs ur password to login in order to reset the stored ip .. i really dont see the difficulty ur having in understanding this lol
mod_rewrite You will fail!
Only one way to hide session ID is to build a new script that use session the right way like mine script im making so loony script and youngson's script we all are best coders to think of session
Here some idea's
Login
$session['id']=session_id();
$session['sid']=$sid;
Sign up
session_start();
session_register("session");
Exit
session_unset();
session_destroy();
In config
error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR);
Now see what you can do with this
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…
QUOTE (djlee @ Jan 28 2009, 04:11 AM) <{POST_SNAPBACK}>
no if your stored ip and ur current ip is different then the session is deleted, then u need to relogin back in .. upon relogging in the script enters your new ip into the db and that becomes ur stored ip. therefore the hijacker needs ur password to login in order to reset the stored ip .. i really dont see the difficulty ur having in understanding this lol
Ok, I got you now.
I also figured out that session id in the link is not a hacking problem if some codes will be added in it.
cheers sub yeah it is defi the best way to do sessions
if(isset($_SESSION['username'])) { print "everybody is a little loony inside"; } else { print"You should be shot"; }
QUOTE (djlee @ Jan 28 2009, 01:45 AM) <{POST_SNAPBACK}>
mod rewrite isnt the way forward ... look at what the user gives you to identify themselves .. erm browser ??? ip ??? just to name two .. so why not make those two things part of the authentication process.. if ($currentip != $storedip) then request re-login ... that would solve erm .. 99% of your script kidding session jacking .. the rest of the 1% .. well dont even trying to stop them cause even i can brute force ur ssh port into submission.. so the experts that make up that 1% wouldnt have a problem
yes djlee its true but im not afraid of tht kind hackers cuz they are not wannabe and theres no protect from them because u knw nothing is UNHACKABLE...
eeeeerrr....
well thats what i said .. checking for ip changes is simple and will stop 99% of the script kiddies .. the other 1% would have to understand how to get a randomised number from the start of an authenticated packet being sent over a remote network and then be able to spoof that that random key into there own data packets so they appear to come from an authenticated tcp stream already established with someone else (hence identifying as there ip not yours)
apart from it being over complicated to actually do that, anyone that can do that ... well you really think they'd care about some 2-bit cloned wapsite that gains them nothing by hacking?
QUOTE (djlee @ Jan 28 2009, 03:14 PM) <{POST_SNAPBACK}>
well thats what i said .. checking for ip changes is simple and will stop 99% of the script kiddies .. the other 1% would have to understand how to get a randomised number from the start of an authenticated packet being sent over a remote network and then be able to spoof that that random key into there own data packets so they appear to come from an authenticated tcp stream already established with someone else (hence identifying as there ip not yours)
apart from it being over complicated to actually do that, anyone that can do that ... well you really think they'd care about some 2-bit cloned wapsite that gains them nothing by hacking?
most mobile phones on d same network share ips, so what happens when you n i use d same type of phone on d same network, unless u add something else to the authentication process like username, id etc there will b some conflicts