πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #10626

Pascal

#10626
From: ^}EniGmA{^
Date: Mon, 18 Feb 2002 17:38
42 lines
2430 bytes
Hola a todos, necesito ayuda, esta rutina  a continuacion en pascal ( en
teoria ) devuelve el numero que ves despues del cartelito unreal, tomando
como parametro el host real ( por ej:  ircap7@unreal-4210.adinet.com.uy , es
decir que devuelve el 4210 )
Lo que yo necesito es hacerloreversible, para poder desenmascarar las ip...
Cuando trato de compilar el siguiente codigo en pascal me salta el error: :
ip.pas(23) Fatal: Syntax error, BEGIN expected but end of file found
Function  CheckSum(dat:string):Longint;
const b_base=1000;
var k,s,i,j:Longint;
begin
j:=0;
for i:=0 to length(dat)-1 do begin
if i<16 then k:=(i+1)*(i+1) else k:=i*(i-15);
s:=ord(dat[i+1]);
j:=j+(s*k);
end;
j:=j+B_Base;
if j>65535 then begin
k:=j div 65536;
s:=j and 65535;
j:=k+s;
end;
checksum:=j;
end;

Bueno necesitaria si alguien se anima a ayudarme con esto, ya que no soy muy
bueno en pascal, mas bien todo lo contrario...
Si me pueden indicar como solucionar el error les agradeceria, y si me
pueden ayudar en como hacerlo reversible, mejor!!
Muchas Gracias de Antemano


/.\Begin Signature/.\
^}EniGmA{^
Icq: 43134347
Linux User: 261187
Linux Machine: 145091
###################################################
Quien dice que una cosa no se puede hacer,
no debe interrumpir nunca a quien lo estοΏ½ haciendo.
###################################################
Technical Details
Message-ID: <a4rdrd$d2j$1@newsreader.mailgate.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mailgate.org!newsreader.mailgate.org!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,509600cee9988024,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-02-18 09:32:31 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mailgate.org!newsreader.mailgate.org!not-for-mail
From: "^}EniGmA{^" <^}EniGmA{^@netparatodos.com.uy>
Newsgroups: es.comp.os.linux.programacion
Subject: Pascal
Date: Mon, 18 Feb 2002 14:38:27 -0300
Organization: Mailgate.ORG Server - http://www.Mailgate.ORG
Lines: 44
Sender: area51@netparatodos.com.uy
Message-ID: <a4rdrd$d2j$1@newsreader.mailgate.org>
NNTP-Posting-Host: r200-40-179-211.adinet.com.uy
X-Trace: newsreader.mailgate.org 1014053550 13395 200.40.179.211 (18 Feb 2002 17:32:30 GMT)
X-Complaints-To: abuse@mailgate.org
NNTP-Posting-Date: Mon, 18 Feb 2002 17:32:30 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400