Raised This Month: $51 Target: $400
 12% 

[EXTENSION] cURL & Hash


Post New Thread Reply   
 
Thread Tools Display Modes
versatile_bfg
Veteran Member
Join Date: Feb 2012
Old 07-01-2015 , 08:34   Re: [EXTENSION] cURL & Hash
Reply With Quote #151

Quote:
Originally Posted by IceCucumber View Post
Is this compatible with SM 1.7?

Trying to compile the example files, I get a bunch of
the extension is but the include might not be.

This include should work: https://forums.alliedmods.net/showpo...&postcount=129
__________________

Last edited by versatile_bfg; 07-01-2015 at 08:35.
versatile_bfg is offline
IceCucumber
Member
Join Date: Dec 2011
Old 07-01-2015 , 08:38   Re: [EXTENSION] cURL & Hash
Reply With Quote #152

Yeah, it works. Thanks.
IceCucumber is offline
klapo
Junior Member
Join Date: Sep 2007
Old 07-05-2015 , 20:32   Re: [EXTENSION] cURL & Hash
Reply With Quote #153

Hello there,
I'm getting veird error on: Metamod:Source version 1.10.5, SourceMod 1.7.3-dev+5217

Quote:
L 07/06/2015 - 02:28:55: [SM] Unable to load extension "curl.ext": /home/steam/cs_go/csgo/addons/sourcemod/extensions/curl.ext.so: undefined symbol: _ZNSs9_M_mutateEjjj

Last edited by klapo; 07-05-2015 at 20:32.
klapo is offline
versatile_bfg
Veteran Member
Join Date: Feb 2012
Old 07-05-2015 , 22:10   Re: [EXTENSION] cURL & Hash
Reply With Quote #154

Quote:
Originally Posted by klapo View Post
Hello there,
I'm getting veird error on: Metamod:Source version 1.10.5, SourceMod 1.7.3-dev+5217
have you tried this build? https://forums.alliedmods.net/showpo...&postcount=101
__________________

Last edited by versatile_bfg; 07-05-2015 at 22:10.
versatile_bfg is offline
klapo
Junior Member
Join Date: Sep 2007
Old 07-06-2015 , 07:34   Re: [EXTENSION] cURL & Hash
Reply With Quote #155

Quote:
Originally Posted by versatile_bfg View Post
And now it's working. Thank you!


Ouh... well after adding only library .so file, got random crashes on server.

Last edited by klapo; 07-06-2015 at 16:14.
klapo is offline
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 09-12-2015 , 06:12   Re: [EXTENSION] cURL & Hash
Reply With Quote #156

Output:

PHP Code:
sharting sha test
hash worked 
== 1
hashing 
->test<- with Openssl_Hash_SHA256 (length == 4)
--->
90a3ed9e32b2aaf4c61c410eb925426119e1a9dc53d4286ade99a809<---- 

Code:

PHP Code:
char buffer[1024];
char test[1024];
strcopy(testsizeof(test),"test");
PrintToServer("hash worked == %b",curl_hash_string(teststrlen(test), Openssl_Hash_SHA256buffersizeof(buffer)));
PrintToServer("hashing ->%s<- with Openssl_Hash_SHA256 (length == %i)",test,strlen(test));
PrintToServer("--->%s<----",buffer); 

When generating the hash with other generators (php/other) I get:

HTML Code:
9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
what am I doing wrong ?

Last edited by ImACow; 09-12-2015 at 06:32.
ImACow is offline
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 09-12-2015 , 08:26   Re: [EXTENSION] cURL & Hash
Reply With Quote #157

No idea why but I had to add +1 to the enum.

Openssl_Hash_SHA256+1


PHP Code:
curl_hash_string(teststrlen(test), Openssl_Hash_SHA256+1buffersizeof(buffer)) 
Thanks Fyren.

PHP Code:
<Fyren> $ echo -n test sha224sum
<Fyren90a3ed9e32b2aaf4c61c410eb925426119e1a9dc53d4286ade99a809  

Last edited by ImACow; 09-12-2015 at 08:26.
ImACow is offline
stretchy
Member
Join Date: Aug 2015
Old 09-17-2015 , 19:48   Re: [EXTENSION] cURL & Hash
Reply With Quote #158

I forked this, and added support for HMAC hashing strings. Removed MD2, and compiled for Windows/Linux.

If enough people are interested maybe I'll host the build somewhere. Seems like a dead extension though
stretchy is offline
gsg9
New Member
Join Date: Sep 2015
Old 10-04-2015 , 09:50   Re: [EXTENSION] cURL & Hash
Reply With Quote #159

How I can connect to server telnet, then to execute the command and at the end to get an answer?
gsg9 is offline
mazdarx8
Veteran Member
Join Date: Aug 2014
Old 12-09-2015 , 13:38   Re: [EXTENSION] cURL & Hash
Reply With Quote #160

Since CSGO Update:
<FAILED> file "curl.ext.so": /csgo/csgo/addons/sourcemod/extensions/curl.ext.so: undefined symbol: _ZNSs9_M_mutateEjjj

logs:
L 12/09/2015 - 192:29: [SM] Unable to load extension "curl.ext": /csgo/csgo/addons/sourcemod/extensions/curl.ext.so: undefined symbol: _ZNSs9_M_mutateEjjj
L 12/09/2015 - 193:43: Error log file session closed.
mazdarx8 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode