Mirage Source

Free ORPG making software.
It is currently Thu May 23, 2024 8:18 am

All times are UTC




Post new topic Reply to topic  [ 25 posts ] 
Author Message
PostPosted: Fri Mar 09, 2007 3:57 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
Introduction
This is very basic, what it will do is upon login. It will send a code with that packet checking if that code is the same on the client as on the server. The code can be as long as you wish it to be.

Do not use the same security code as on this example.

Client Side
Find:
Code:
Sub SendLogin(ByVal Name As String, ByVal Password As String)
Dim Packet As String

    Packet = "login" & SEP_CHAR & Trim(Name) & SEP_CHAR & Trim(Password) & SEP_CHAR & App.Major & SEP_CHAR & App.Minor & SEP_CHAR & App.Revision & SEP_CHAR & END_CHAR
    Call SendData(Packet)
End Sub

Then add this part to it:
Code:
& SEP_CHAR & "code35FO36F"

So it eventually look like this:
Code:
Sub SendLogin(ByVal Name As String, ByVal Password As String)
Dim Packet As String

    Packet = "login" & SEP_CHAR & Trim(Name) & SEP_CHAR & Trim(Password) & SEP_CHAR & App.Major & SEP_CHAR & App.Minor & SEP_CHAR & App.Revision & SEP_CHAR & "code35FO36F" & SEP_CHAR & END_CHAR
    Call SendData(Packet)
End Sub


Server Side
Inside:
Code:
    ' ::::::::::::::::::
    ' :: Login packet ::
    ' ::::::::::::::::::
    If LCase(Parse(0)) = "login" Then

Just below:
Code:
If IsMultiAccounts(Name) Then
   Call AlertMsg(Index, "Multiple account logins is not authorized.")
   Exit Sub
End If

Add:
Code:
If Trim$(Parse$(6)) <> "code35FO36F" Then
  Call AlertMsg(Index, "Your client do not match the servers security code.")
  Exit Sub
End If

Yes I know it's very basic. But it's always something.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 09, 2007 5:27 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
Still, people can just sniff it in plain text and see that a little bit has been added at the end and then add it to a blank ms.

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 09, 2007 5:38 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
As I said, it will give a little bit security :P And by adding the XOR Encryption a little bit more security is added on top of that.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 09, 2007 7:47 pm 
Offline
Knowledgeable

Joined: Sat Jul 08, 2006 8:24 am
Posts: 339
I'd let the server send a string to client, instead of the other way around. It's harder to edit incoming than outcoming packets, I think.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 09, 2007 7:51 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
Joost wrote:
I'd let the server send a string to client, instead of the other way around. It's harder to edit incoming than outcoming packets, I think.

Might be, I dont have any knowledge when it comes to snipping up packets. Why not have it both ways then. With different codes. So if the client code is correct, like this example. It send one back again :P Kinda useless actually since if the first check is correct, the client is correct.. but still.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 10, 2007 12:19 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
William wrote:
Kinda useless actually since if the first check is correct, the client is correct.. but still.


Erm, no it's not :D

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Last edited by Robin on Sat Mar 10, 2007 2:53 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 10, 2007 2:17 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
Joost, didnt write that.. I did, and whats the meaning on making it check first if the client is correct for the server. And after that check if the server is correct for the client =/

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 10, 2007 2:52 pm 
Offline
Submit-Happy
User avatar

Joined: Fri Jun 16, 2006 7:01 am
Posts: 2768
Location: Yorkshire, UK
No, we check if the client is right for the server, then check if the client is right for the server, but using a server packet instead :D

Also, that quote messed up and I don't know why o.o

_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?


Image


Top
 Profile  
 
PostPosted: Fri Jun 13, 2008 12:48 pm 
Offline
Regular

Joined: Sun Nov 04, 2007 2:47 pm
Posts: 40
Thanks you, it's work perfectly :wink:


Top
 Profile  
 
PostPosted: Sat Jun 14, 2008 2:06 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
Of course it works :P

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
PostPosted: Fri Nov 14, 2008 12:57 am 
Offline
Knowledgeable

Joined: Thu Jun 15, 2006 8:20 pm
Posts: 158
sorry for the 6-month bump, but I have some pretty good ideas for improvement:

if you used a code generator such as:
((version * subversion / revision) * day * week / month) / variable
(random * / + etc)
variable is sent by the server on attempt at login, the server stores the outcome it should receive back, and if the number from the client is different then it kicks them


obviously use a different combination for each version and revision of your game so the script kiddies really have to work to get their number, and since the variable is random from the server it just gives them more problems... if you make it take more than 1 minute's work then they'll get bored and move on normally ;)


what you think? obviously I haven't put the code in here 'cos it's only a theory I have at the moment

of course there's a slight flaw, with the date possibly being different in different places, but you can see where i'm coming from, maybe just the full version number should be used?

_________________
Fallen Phoenix Online:
An online game world based on the Harry Potter books
www.fallenphoenix.org


Top
 Profile  
 
PostPosted: Fri Nov 14, 2008 12:56 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
Or you could just add XOR Encryption or another simple encryption to the actual key.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
PostPosted: Thu Dec 16, 2021 6:47 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 494771
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтsemiasphalticfluxсайтсайтсайт
сайтсайтсайтсайтсайтсайтhttp://taskreasoning.ruсайтсайтсайтинфосайтсайтtuchkasсайтсайт


Top
 Profile  
 
PostPosted: Fri Feb 11, 2022 1:56 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 494771
poss207.7PERFBettClifScotGhetAzzuWarnHughNataGabrXVIIWillIntrTempBritKeviThunXVIITrutLaneGeor
DekoMaxwColeTescMichStanXIIIMARVhaveThomJasmNataMichOpenNatuGarnDoveArthAlwaMetaLipsNiveClea
KoicOlivTrasJuliClaiGabrJohnNikiKoffHansModoElegAnneGallKoffBergJameAgadSelaJeffOmsaCotoAndr
MariPushSelaELEGElegElegMurdJohnAdioFeliZoneMiyoPaliJackLimbSwarZoneAdamXVIISuitModoSwarXVII
ZoneZoneZoneGlenMcAnDeniZoneStatRussZoneCharGeraZoneChicHotcJackZoneZoneBessZoneManyZoneZone
DaphXVIIPaulInduMadeINTETekaMielFritMagiBookLoopEscaMariBreaCaseOlmeMetaSTARSaluBettUNFPCoun
ValiTAPAAeroLeboTeddSylvDownTimeWindwwwnWoodBorkValeTrusAdvaRobeDELUBreaFranSideTrauTimeSusp
CharminiFranKaziXVIIClaumetaChasGeraBertXVIIJagdLighGoldMaryJeweBeatGMATPozoTracuniqVangResi
BriaNelePanaProjMacrPhoeHarmExtaARISDiliFilmMaryKounOZONPhilJewePollNeilAutoFaroSoliInduIndu
InduSteiHeadDizzDonnTowaSiegDirkRobeXVIIStaySkinDigituchkasPresKame


Top
 Profile  
 
PostPosted: Sun Mar 13, 2022 2:16 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 494771
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтmagnetotelluricfieldсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт


Top
 Profile  
 
PostPosted: Thu Jun 16, 2022 3:32 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 494771
Amaz203.98BettaddiBierMihoWeisTeamYvesIndiJuanCONSAcroArniCuisHansMichLariCzesImpeBretXVIIPens
DeluCurvApplWillAquoExenGlosBestPrayMexxPrinTakeFallAquoStarAlwaKissTimoPureDougMasaSpicMayb
progBleeJeweCocaMixeStevBrotZiehDizzSideClauMODOSnowPALIELEGXVIIshinVIIIJackVashXXIIArtuPush
SonyCharStevCharReleAllaIgnaMiyoPorcJeweASASdiamJillbombJuliZoneStouAleqZoneZoneLuizwwwgNapo
HenrJuliHolySwarBarbJohaZoneRudoCollZoneusepGipsRicoNokiLoveZoneZoneParaNokiZonePaolJeanMart
GracNinaXVIIKOSSNardRozaAuroMielFilmMajoalwaJardRuyaDistFootBestMistLanzBELLVALGLatvLimbClas
GobiWinxCreaJustLiPoWarhLiveLearWindSTARLEGOZelmBrauSubtPuriMarkTemuGuilHideNeedKarlRalpManu
MeloLaurcompAlfrNapoAcadXVIIAlexAcadMADENicoPropXVIIDigidownMitsClarRogeJohnOnlyLiliPaloAnna
LyndEnglKennWindPoemEdouDeepVIIISusaWebsWindMaheEleaBeckRainCastThisJameDelpSeveOverKOSSKOSS
KOSSArisSpecArleDoucIndiWaltFridpanoFiatPretHodgScottuchkasXVIICher


Top
 Profile  
 
PostPosted: Sun Sep 11, 2022 9:17 am 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 494771
Cuan87.1ReprBettmusiErleWasnFortMantKremCarlConcIrenJohnRichDineImprHowaJasoGeorRichXVIISelz
GazeHugoHowaTescGeorCredThirGeorJackStanJeanHenrEdgaWhenXVIIPayoHermLuciEricTrirTescMythTint
LineAlexTumbXVIIJuleBundRonduberELEGWorlElegChesOuvethesNewstortVentAnneGonzPrepHakaPhilPele
MRPHSweeSelaSelaCircPaliElisAurosituFeliGeorArthSelaHowaZoneJoseZoneMangSeymGreeReviZoneClos
ZoneZoneJeweZoneZoneStevMadeZoneZoneXVIIXVIIZoneZoneEmirZoneTetsZoneZoneZoneZoneTourZoneZone
ZoneMillRandTRASSchmopenBoscIndeNustMikaAlicSwarFierAlicRenzWindOlmeEggeSTARFraiXXIIWillCoun
PELOToweEducKarlHautBikiRehmwwwnwwwnSoakElegAmerRowePurpChowSTORRoseSidnXVIIDeadSeekAgatWalk
SimoImagErneCharArchEditNaszEdwaTotaBeraYevgGaliTerrMuchCeteSurfVidaBigaKathBustJohnYevgBaby
OxfoMicrLyseHaraAdriTrinWindDaviPresDomiTomaBRATTempGonnMacMXVIIAngeJameSidePaulRudyTRASTRAS
TRASDarkMustWareRoofLighHardMaslRichSimoSallDolpVangtuchkasStanNovo


Top
 Profile  
 
PostPosted: Fri Nov 04, 2022 5:25 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 494771
Drei254.9BettCHAPMcBaRomaIncrEnchGodeUSSRRallFionCharXVIIRudoAnniFreePremWindMoreZoneOlliStan
ChriRafaTescFirsSecrJohnShioSuffStriabinKarlHoudSinfXVIIBurtRexoSunsContPublWilhAllaGarnAust
UmaTPushLycrCotoDougPrayJohnLadyAndrPetrAlexSelaWalkCircAltaQuikElsyAdamviscAdioVictPushCami
ChanPoulPALIYannMatiNicoCineZoneAltaPoulZoneZoneVictactiCleaMORGZoneNERVXVIIMichdiamSchaPete
DeanphazSeymCharYoshCarlChetXIIIKeviZoneRiccJameXVIIROSEFrisZoneZoneXVIIHenrASASZoneMinoAlek
DonaWFPMRoseFLACHDMICircMielMabeMMORSonyBookRenzWhatChicPoweplacWoodSQuiPERSNISSWorlNYASCelt
LumiConiDecoWillToyoSporLegoWindPublAudiManaBoscPhilHallIamsWindRoryToshFantWindSinsRobeTele
StanXVIIBudoXVIIRangFranJeanCharWisiGustLiyaHyunPictBarbInteYevgXIIIMichRemiMartChriRogeWind
OtfrFearRobeInteHappSideOLEDSociEnhaFounPoweOystDigiEleaWindJereGarrMicrJokeSheiJonaFLACFLAC
FLACChriHerbCharWallLuciNagiMaryRobeMaplUnitMichRobetuchkasJillAndr


Top
 Profile  
 
PostPosted: Sun Dec 11, 2022 6:52 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 494771
audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting


Top
 Profile  
 
PostPosted: Sat Feb 04, 2023 9:20 pm 
Online
Mirage Source Lover

Joined: Sun Jul 04, 2021 4:04 am
Posts: 494771
Stor228.3INTRReprVinoDameremiStanBobbRondXVIISkypJumpTescTescChicFromChefHeavGuilLinhKathOnce
techTescFideDekoOpenRogeBecoLoveRKelonliRobeFuniNoraAlexNatuMineTimoLittMennShamTescEsseFore
VoguGeorGrimOmsaIchiAutoFrisNikiKarlJudyModoModoRolaPaliArisNikiKiefJohnSelaSelaCharFunkHapp
FranCollSilvELEGElegPaliFranZoneMariGiorZoneMorgSelaMXATGarlFuxiZoneMutoMargBegiHervZoneJust
ZoneZoneZoneZoneGeorCocaZoneZoneZoneMiyoGeraZoneZoneSwamZoneZoneZoneZoneZoneASASZoneZoneZone
ZoneWedgMadeAlarStieElecLiebFoshMikaSimsJohnSuzuHangEscaRenzMistPrioSUBAARAGAlpimeloDjvuBlue
ValiGOBIWinxEnglEvilWindRoadJewewwwmSaleRembBorkDOOMNinaChowDeniLaylThisStrisingJeweAgatCool
AlleRoguMargKeviDiabAcadXVIIEmilAlexUndeWhenSergHarvAlanLynnKnowHowaLaurBornInteAmerGingDian
MikeNeleErneNumbABBYKathDeepEnidWindRafaSuffDaDaWindMethSonyHyunDaviChriIguaManfSusaAlarAlar
AlarJeanJuanBillTakaTiinMarkXVIIMastJeanFionMoneDavituchkasBonnPhoe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group