Re: [Synalist] snmpv3 3des

2016-02-01 Thread ungarn

> Sorry, I was a busy. ;-(

no problem

> But I am little confused. What is TV3KeyType, I not found it in my
> sources... :-o

oh sorry, that are modifications i made to your code because of the time 
intensive key calculation
i store the calculated key and use it on all subsequent requests
this is more than 10 times faster, the c# library do the same

if you want i can send my version

cheers k1


> 
>> i found out how to fix this 3des issue
>> 
>> the missing step is very easy
>> just append after the line
>> 
>> FPrivKey := Pass2Key( TV3KeyType.PrivKey, FPrivPassword );
>> 
>> one more step if the key is smaller than 32
>> 
>> if Length( FPrivKey ) < 32 then
>>FPrivKey := FPrivKey + Pass2Key( TV3KeyType.PrivKey, FPrivKey );
>> 
>> it is not yet perfect because it must be something like this
>> 
>> while Length( FPrivKey ) < 32 do
>> ...
>> 
>> but for the moment its working for me, i will send the correct version
>> sson
>> 
>> cheers k1
> 
> 
> --
> Lukas Gebauer.
> 
> http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
> http://geoget.ararat.cz/ - Geocaching solution
> 
> 
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> synalist-public mailing list
> synalist-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/synalist-public

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] snmpv3 3des

2016-01-24 Thread ungarn

i found out how to fix this 3des issue

the missing step is very easy
just append after the line

FPrivKey := Pass2Key( TV3KeyType.PrivKey, FPrivPassword );

one more step if the key is smaller than 32

if Length( FPrivKey ) < 32 then
   FPrivKey := FPrivKey + Pass2Key( TV3KeyType.PrivKey, FPrivKey );

it is not yet perfect because it must be something like this

while Length( FPrivKey ) < 32 do
...

but for the moment its working for me, i will send the correct version 
sson

cheers k1



Am 2016-01-06 20:57, schrieb ung...@its-pro.net:
>> Nice shot, thank you!
> 
> you are welcome
> 
>> Do you know what ExtendShortKey does?
> 
> yes, this is the description from the c# lib
> Extends the encryption key if key size returned by PasswordToKey is
> less then minimum required by the encryption protocol.
> 
> and this is with 3des 32
> 
> here is the source from the c# lib
> 
> public byte[] ExtendShortKey(byte[] shortKey, byte[] password, byte[]
> engineID, IAuthenticationDigest authProtocol)
> {
>   int length = shortKey.Length;
>   byte[] extendedKey = new byte[MinimumKeyLength];
>   Buffer.BlockCopy(shortKey, 0, extendedKey, 0, shortKey.Length);
> 
>   while (length < MinimumKeyLength)
>   {
> byte[] key =
>   authProtocol.PasswordToKey(shortKey, engineID);
>   int copyBytes = Math.Min(MaximumKeyLength - length,
> authProtocol.DigestLength);
>   Buffer.BlockCopy(key, 0, extendedKey, length, copyBytes);
>   length += copyBytes;
>   }
>   return extendedKey;
> }
> 
> cheers k1
> 
> 
>> 
>> 
>>> hi everybody,
>>> 
>>> i found the problem with the 3des encryption
>>> i have comparen the snmpsend source code with the snmpsharpnet source
>>> code
>>> and the problem is in the EncryptPDU
>>> branch
>>> 
>>> this line
>>> FPrivKey := Pass2Key( TV3KeyType.PrivKey, FPrivPassword );
>>> 
>>> gives the same result as the c# library but in the c# library you can
>>> see, than when the length of the key is smaler than 32 we have to do
>>> another step
>>> 
>>> in c# its this lines
>>> if( encryptionKey.Length < MinimumKeyLength )
>>>encryptionKey = ExtendShortKey(encryptionKey, secret, engineId,
>>> authProtocol);
>>> 
>>> and this step is missing i think in snmpsend and thats why the
>>> calculated key is wrong
>>> 
>>> i will try to imnplement this extra function
>>> if someone wants to try, i can offen an open port to a working 3des
>>> agent, all the free available 3des agents are also not correct
>>> implemented
>>> 
>>> thanks
>>> k1
>>> 
>>> 
>>> --
>>> ___
>>> synalist-public mailing list
>>> synalist-public@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/synalist-public

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] snmpv3 3des

2016-01-17 Thread ungarn

is there any progress with this problem
can i help ?

thanks k1


> Nice shot, thank you!
> 
> Do you know what ExtendShortKey does?
> 
> 
>> hi everybody,
>> 
>> i found the problem with the 3des encryption
>> i have comparen the snmpsend source code with the snmpsharpnet source
>> code
>> and the problem is in the EncryptPDU
>> branch
>> 
>> this line
>> FPrivKey := Pass2Key( TV3KeyType.PrivKey, FPrivPassword );
>> 
>> gives the same result as the c# library but in the c# library you can
>> see, than when the length of the key is smaler than 32 we have to do
>> another step
>> 
>> in c# its this lines
>> if( encryptionKey.Length < MinimumKeyLength )
>>encryptionKey = ExtendShortKey(encryptionKey, secret, engineId,
>> authProtocol);
>> 
>> and this step is missing i think in snmpsend and thats why the
>> calculated key is wrong
>> 
>> i will try to imnplement this extra function
>> if someone wants to try, i can offen an open port to a working 3des
>> agent, all the free available 3des agents are also not correct
>> implemented
>> 
>> thanks
>> k1
>> 
>> 
>> --
>> ___
>> synalist-public mailing list
>> synalist-public@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/synalist-public

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] snmpv3

2015-02-17 Thread ungarn
Am 2015-02-15 10:14, schrieb Lukáš Gebauer:
 Dne 9.2.2015 v 14:50 ung...@its-pro.net napsal(a):
 did someone try to use 3des encryption ?
 i wrote a little test program and all auth-priv combinations work 
 except
 3des
 
 i found a public site for testing
 http://snmpsim.sourceforge.net/public-snmp-simulator.html
 
 and here is my little program
 i think there is something wrong in the 3des encryption
 
 
 Please, what compiler you are using?
 Thanks!

i develop on linux with
Free Pascal Compiler version 2.6.0-6 [2012/10/05] for x86_64

greetings
peter

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631iu=/4140/ostg.clktrk
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] snmpv3

2015-02-09 Thread ungarn

hi everybody,

did someone try to use 3des encryption ?
i wrote a little test program and all auth-priv combinations work except 
3des

i found a public site for testing
http://snmpsim.sourceforge.net/public-snmp-simulator.html

and here is my little program
i think there is something wrong in the 3des encryption

thanks in advance
k1


***
var
   snmp : TSNMPSend;
   user : String;
begin
snmp := TSNMPSend.Create;
snmp.Query.Clear;
snmp.Query.Version := 3;
snmp.Query.Flags := AuthPriv;
snmp.Query.FlagReportable := True;

user := 'usr-';
case cbAuth.ItemIndex of
  0: begin
   snmp.Query.AuthMode := AuthMD5;
   user := user + 'md5-';
 end;
  1: begin
   snmp.Query.AuthMode := AuthSHA1;
   user := user + 'sha-';
 end;
end;
case cbPriv.ItemIndex of
  0: begin
   snmp.Query.PrivMode := PrivDES;
   user := user + 'des';
 end;
  1: begin
   snmp.Query.PrivMode := Priv3DES;
   user := user + '3des';
 end;
  2: begin
   snmp.Query.PrivMode := PrivAES;
   user := user + 'aes';
 end;
end;

snmp.Query.UserName := user; // 'usr-md5-aes';

snmp.Query.Password := 'authkey1';
snmp.Query.PrivPassword := 'privkey1';

snmp.TargetHost := eIP.Text;
snmp.Query.PDUType := PDUGetRequest;

snmp.Query.MIBAdd( eOID.Text, '', asn1util.ASN1_NULL );
if snmp.SendRequest = True then
  Memo1.Lines.Add( 'Ok : ' + snmp.Reply.MIBByIndex( 0 ).OID + ' - ' + 
snmp.Reply.MIBByIndex( 0 ).Value )
else
  Memo1.Lines.Add( 'Fail' );

***

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] TUDPBlockSocket

2011-10-09 Thread Ungarn

Hi everybody,

do someone know if its possible to set the source port of an udp 
connection ?

thanks in advance
peter

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] Snmpv3

2011-07-19 Thread Ungarn

Hi everybody,

i found a little problem in snmpsend, everthink works find just very slow
one snmp request takes 70 ms, that sound not much, but i checked it with 
wireshark
and the agent need to answer 1 ms

i found out that in synacode in the function MD5LongHash
the line
MDUpdate(MDContext, Value, @MD5Transform);
will be executed 131072 times with the password testtest
and this consumes all the time

do someone know a better solution to calculate the MD5LongHash ?

or is it possible to save the result from pass2key and use it on the 
next request of the same device ?

thanks in advance
peter

--
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] Snmpv3

2011-07-19 Thread Ungarn

Hi again,

i checked it quickly and it works

i changed in the pass2key function the following lines

if FAuthKey = '' then
   key := MD5LongHash(Value, 1048576)
else
   key := FAuthKey;

on the first request i save the result of
keyForThisDevice := snmp.Reply.AuthKey;
and use it on the next
snmp.Query.AuthKey := keyForThisDevice;

this modification reduce the request time from 70ms to 7ms and less

greetings
peter


 Hi everybody,

 i found a little problem in snmpsend, everthink works find just very slow
 one snmp request takes 70 ms, that sound not much, but i checked it with
 wireshark
 and the agent need to answer 1 ms

 i found out that in synacode in the function MD5LongHash
 the line
 MDUpdate(MDContext, Value, @MD5Transform);
 will be executed 131072 times with the password testtest
 and this consumes all the time

 do someone know a better solution to calculate the MD5LongHash ?

 or is it possible to save the result from pass2key and use it on the
 next request of the same device ?

 thanks in advance
 peter



--
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] Snmpv3

2011-07-19 Thread Ungarn

sorry, that was a little bit to fast
now it works

function TSNMPRec.Pass2Key(const Value: AnsiString): AnsiString;
var
   key: AnsiString;
begin
   case FAuthMode of
 AuthMD5:
   begin
 if FAuthPassKey = '' then
 begin
 key := MD5LongHash(Value, 1048576);
 FAuthPassKey := key;
 end
 else
 key := FAuthPassKey;
 Result := MD5(key + FAuthEngineID + key);
   end;
 AuthSHA1:
   begin
 if FAuthPassKey = '' then
 begin
 key := SHA1LongHash(Value, 1048576);
   FAuthPassKey := key;
 end
 else
 key := FAuthPassKey;
 Result := SHA1(key + FAuthEngineID + key);
   end;
   else
 Result := '';
   end;
end;

greetings
peter
 Hi again,

 i checked it quickly and it works

 i changed in the pass2key function the following lines

 if FAuthKey = '' then
 key := MD5LongHash(Value, 1048576)
 else
 key := FAuthKey;

 on the first request i save the result of
 keyForThisDevice := snmp.Reply.AuthKey;
 and use it on the next
 snmp.Query.AuthKey := keyForThisDevice;

 this modification reduce the request time from 70ms to 7ms and less

 greetings
 peter



 Hi everybody,

 i found a little problem in snmpsend, everthink works find just very slow
 one snmp request takes 70 ms, that sound not much, but i checked it with
 wireshark
 and the agent need to answer 1 ms

 i found out that in synacode in the function MD5LongHash
 the line
 MDUpdate(MDContext, Value, @MD5Transform);
 will be executed 131072 times with the password testtest
 and this consumes all the time

 do someone know a better solution to calculate the MD5LongHash ?

 or is it possible to save the result from pass2key and use it on the
 next request of the same device ?

 thanks in advance
 peter

  



--
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] RE : SNMPv3 on Solaris

2011-07-18 Thread Ungarn

hi again,

i think i have found the problem with snmpv3 on sparc solaris
its in the Pass2Key function of snmpsend

the function MD5LongHash below have on linux and windows the same result
54 E4 2E 39 06 06 15 0A 0D CB 67 FA 5B 67 75 CA
but cross compiled for sparc solaris this
90 08 0A 2F FA 64 67 25 BC 43 7D AD 58 0A 26 A9

thanks for any advise
peter

begin
   s := MD5LongHash( 'testtest', 1048576 );
   for cnt := 1 to Length( s ) do
   begin
 Write( IntToHex( Ord( s[cnt] ), 2 ) );
 Write( ' ' );
   end;
   WriteLn;
end.



 here is my little prog

 var
 snmp : TSNMPSend;

 begin
 snmp := TSNMPSend.Create;
 snmp.Query.Clear;
 snmp.Query.Version := 3;
 snmp.Query.Flags := AuthPriv;
 snmp.Query.FlagReportable := True;
 snmp.Query.UserName := 'snmpv3';
 snmp.Query.AuthMode := AuthMD5;
 snmp.Query.Password := 'testtest';
 snmp.Query.PrivMode := PrivDES;
 snmp.Query.PrivPassword := 'testtest';
 snmp.TargetHost := '192.168.10.2';
 snmp.Query.PDUType := PDUGetRequest;

 snmp.Query.MIBAdd( '1.3.6.1.2.1.1.5.0', '', asn1util.ASN1_NULL );
 if snmp.SendRequest = True then
   WriteLn( 'Ok : ' + snmp.Reply.MIBByIndex( 0 ).OID + ' - ' +
 snmp.Reply.MIBByIndex( 0 ).Value )
 else
   WriteLn( 'Fail' );
 end.


  
 Works fine here on Solaris x86 when contacting an Ubuntu 64 server. I'm
 using fpc 2.5.1 svn.

 Ludo





--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] RE : RE : RE : RE : SNMPv3 on Solaris

2011-07-18 Thread Ungarn

Thank you very much Ludo,

now its working !

thanks
peter

 The CIL define is used in a lot of synapse units. I suggest you put a
 {$define CIL} in the begining of synacode.pas instead.

 After some research I found that CIL was apparently meant for Delphi.net...

 Ludo




--
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] SNMPv3 on Solaris

2011-07-04 Thread Ungarn

Hi everybody,

i wrote this little test program and it works on linux and windows but 
on solaris
it returns 1.3.6.1.6.3.15.1.1.5.0
i found out that means that the password is not correct

here is my little prog

var
   snmp : TSNMPSend;

begin
   snmp := TSNMPSend.Create;
   snmp.Query.Clear;
   snmp.Query.Version := 3;
   snmp.Query.Flags := AuthPriv;
   snmp.Query.FlagReportable := True;
   snmp.Query.UserName := 'snmpv3';
   snmp.Query.AuthMode := AuthMD5;
   snmp.Query.Password := 'testtest';
   snmp.Query.PrivMode := PrivDES;
   snmp.Query.PrivPassword := 'testtest';
   snmp.TargetHost := '192.168.10.2';
   snmp.Query.PDUType := PDUGetRequest;

   snmp.Query.MIBAdd( '1.3.6.1.2.1.1.5.0', '', asn1util.ASN1_NULL );
   if snmp.SendRequest = True then
 WriteLn( 'Ok : ' + snmp.Reply.MIBByIndex( 0 ).OID + ' - ' + 
snmp.Reply.MIBByIndex( 0 ).Value )
   else
 WriteLn( 'Fail' );
end.


thanks in advance
peter


--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] RE : RE : RE : synapse on sparc-solaris

2011-06-30 Thread Ungarn

Thank you very much, thats it
just change like you described it and it works !!!

i will now test my other progs and give you feedback when i finished
thanks again

cheers peter

 Just figured out that Solaris uses different values for SOCK_STREAM and
 SOCK_DGRAM.
 In ssfpc.inc change
SOCK_STREAM=2;
SOCK_DGRAM=1;

 I tested this on solaris 10 x86 and I get output from your test program.
 Can you please test this on SPARC?
 BTW I got a 120 protocol not supported error.

 Ludo


 -Message d'origine-
 De : Ungarn [mailto:ung...@its-pro.net]
 Envoyé : jeudi 30 juin 2011 13:07
 À : Ararat Synapse
 Objet : Re: [Synalist] RE : RE : synapse on sparc-solaris



 Bad file number

 thanks peter

  
 What is the error message?

 Writeln(http.Sock.LastErrorDesc);

 Ludo



 -Message d'origine-
 De : Ungarn [mailto:ung...@its-pro.net]
 Envoyé : jeudi 30 juin 2011 11:28
 À : Ararat Synapse
 Objet : Re: [Synalist] RE : synapse on sparc-solaris



 thanks ludo,

 i have copied all values to unxsockh.inc and now i can
  
 compile it for
  
 solaris but on windows and linux i get an response,
 on solaris - nothing
 i tried with tcpdump and nothing happens on the net

 thanks peter

 my simple prog:
 
 program test;

 uses
  Classes, sysutils,
  snmpsend, httpsend;

 var
  http : THTTPSend;
  lines : TStringList;

 begin
  WriteLn( 'Test sparc' );

  lines := TStringList.Create;

  http := THTTPSend.Create;
  http.HTTPMethod( 'GET', 'http://www.gauns.org' );
  WriteLn( HTTP.Headers.Text );
  lines.LoadFromStream( HTTP.Document );
  WriteLn( '***' );
  WriteLn( lines.Text );
 end.
 



  
 I haven't used it on Solaris but a quick look at ssfpc.inc


 shows that

  
 solaris/unxsockh.inc is missing the definitions for the


 setsockopt and

  
 getsockopt options. Solaris supports setsockopt and

 getsockopt but
  
 AFAIK not all of the options listed in

 linux/unxsockh.inc. What you
  
 could do is to copy the missing definitions from

 linux/unxsockh.inc
  
 (line 172 and further) into solaris/unxsockh.inc.

 Ssfpc.inc is only
  
 mapping the constants to the corresponding constants in

 sockets.pp
  
 and, at first sight, the setsockopt and getsockopt options


 mapped are

  
 not used with snmpsend. So if they are not implemented in


 Solaris, it

  
 won't hurt defining them when they are not used.


 Ludo





 -Message d'origine-
 De : Ungarn [mailto:ung...@its-pro.net]
 Envoyé : jeudi 30 juin 2011 01:30
 À : Ararat Synapse
 Objet : [Synalist] synapse on sparc-solaris


 Hi everybody,

 did someone used synapse snmpsend on sparc-solaris

 i get with every version (2.1.1, 2.4.2) following errors

 ssfpc.inc(157,32) Error: Identifier not found IP_TOS
 ssfpc.inc(158,32) Error: Identifier not found IP_TTL
 ssfpc.inc(159,32) Error: Identifier not found IP_HDRINCL
 ssfpc.inc(160,32) Error: Identifier not found IP_OPTIONS
 ssfpc.inc(162,32) Error: Identifier not found IP_RECVOPTS
 ssfpc.inc(163,32) Error: Identifier not found IP_RETOPTS
 ssfpc.inc(171,32) Error: Identifier not found IP_MULTICAST_IF
 ssfpc.inc(172,32) Error: Identifier not found IP_MULTICAST_TTL
 ssfpc.inc(173,32) Error: Identifier not found IP_MULTICAST_LOOP
 ssfpc.inc(174,32) Error: Identifier not found IP_ADD_MEMBERSHIP
 ssfpc.inc(175,32) Error: Identifier not found
  
 IP_DROP_MEMBERSHIP
  
 ssfpc.inc(211,35) Error: Identifier not found IPV6_UNICAST_HOPS
 ssfpc.inc(212,35) Error: Identifier not found IPV6_MULTICAST_IF
 ssfpc.inc(213,35) Error: Identifier not found
  
 IPV6_MULTICAST_HOPS
  
 ssfpc.inc(214,35) Error: Identifier not found
  
 IPV6_MULTICAST_LOOP
  
 ssfpc.inc(215,35) Error: Identifier not found IPV6_JOIN_GROUP
 ssfpc.inc(216,35) Error: Identifier not found IPV6_LEAVE_GROUP

 i can compile it on solaris box or crosscompile on linux,

  
 same result

  
 ! on linux and crosscompile windows, there are no problems

 i can give acces to my solaris-sparc box, if someone will try

 thanks in advance
 peter


 --
 
 All of the data generated in your IT infrastructure is seriously
 valuable. Why? It contains a definitive record of application
 performance, security threats, fraudulent activity, and

  
 more. Splunk

  
 takes this data and makes
 sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-d2d-c2
 ___
 synalist-public mailing list
  
 synalist-public@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/synalist-public

Re: [Synalist] SNMPv3 encryption DES/AES

2011-05-09 Thread Ungarn

Hi Lukas,

i found a little problem in the snmpsend.pas
a lot of devices, linux also, will reply to the first request with an 
1.3.6.1.6.3.15.1.1.4.0 wrong EngineID
with the right EngineID and EngineBots and EngineTime in the answer 
(report frame). In this case you hanlde everythink perfectly.
But some devices will answer just the right right EngineID and in the 
next Request the will answer with 1.3.6.1.6.3.15.1.1.2.0 wrong EngineTime
and here is the problem.
You check the EngineTime in line 1059, if it is 0 the you do the next 
request.
But the problem is you set the EngineTime on the first request to 
somethink other then 0

I discovered with wireshark that net-snmp get sets the EngineTime in the 
first packer to 0
i tried to change your code in line 805 to

//compute engine time difference
if FAuthEngineTimeStamp  0 then
 x := TickDelta(FAuthEngineTimeStamp, GetTick) div 1000
else
 x := 0;

after this change everythink works fine, i just want to set the 
EngineTime to 0 but just in the first request
i am sure you will find a more beautiful solution.

thanks lukas,
cheers peter



--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SNMPv3 encryption DES/AES

2011-05-09 Thread Ungarn

Hi again,

one more info, i see now that the mg-soft agent will always send back 
EngineTime 0 thats the reason why your code works fine with mg-soft agent
my agent (Cabletron SmartSwitchRouter 2000) send always the same 
EngineTime back what it gets in the first frame.
When you set the EngineBoots and EngineTime to 0 in the first frame than 
i think every device will work probably.

thanks
peter

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SNMPv3 encryption DES/AES

2011-05-05 Thread Ungarn

 I not found some SNMP agent with AES support yet.

 Have someone SNMP server with AES, what is accessible from the
 Internet? I need simple account with MD5 or SHA1 authorization and
 AES privacy. I need to read sysDescription only.

 Thank you!




You can find every kind of snmpv3 device here
http://www.mg-soft.si/snmpv3.html#SNMPv3ACCESS

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


Re: [Synalist] SNMPv3 encryption DES/AES

2011-05-04 Thread Ungarn

 Progress is good! I made working encryption support using basic DES
 and 3DES encryption yet. I am working on the AES now.



If you want me to help testing, let me know

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public


[Synalist] SNMPv3 encryption DES/AES

2011-05-02 Thread Ungarn

Hi,

did someone plan to implement SNMPv3 encryption ?

thanks
k1

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public