hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Full Version: Speed Tests?
iLLuSioN
I remember somone here talking about it, cant really remember but like, I have one for remote computers that will speed test them on download. But im looking for one that would speed test them on upload. Ive been tryin to search all day for it here on the forums and cant find one.. anyone help please..
vnet576
I made an upload speed tester awhile ago. Its open source so u can change it around however u want:

http://www.governmentsecurity.org/forum/in...=7549&hl=tester
JaSeR
Hi, i cant view that topic. Can you post here the uploader speed tester here?

Thx & sorry for my bad english.
iLLuSioN
QUOTE (vnet576 @ May 22 2004, 03:25 AM)
I made an upload speed tester awhile ago. Its open source so u can change it around however u want:

http://www.governmentsecurity.org/forum/in...=7549&hl=tester

Yeah thats one i was lookin for i had the 1st one and all was buggy but people still saying it is buggy by any chance u gunna fix it up? thanks alot for linky
vnet576
I fixed all of the bugs that they mentioned. If there are other ones, then I can't fix them unless I know about them. wink.gif

Although in this version i made it tell u the external ip even if u're behind a router.
Any other bugs let me know and I'll fix them.
iLLuSioN
sweet thanks man
iLLuSioN
Ok so im tryint o edit ur source to fit more ftps for more countries..
and when i try to compile in dev c++ i get an error.. Please help me out man...

I try to build and here:

Compiler: Default compiler
Executing gcc.exe...
gcc.exe "C:\Documents and Settings\DeViL\Desktop\remotetest1[1].32\remotetest1.3.c" -o "C:\Documents and Settings\DeViL\Desktop\remotetest1[1].32\remotetest1.3.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c: In function `WinMain':
C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c:76: `for' loop initial declaration used outside C99 mode

C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c: In function `ipaddress':
C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c:385: warning: passing arg 4 of `InternetOpenUrlA' makes integer from pointer without a cast
C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c:385: warning: passing arg 6 of `InternetOpenUrlA' makes integer from pointer without a cast
C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c:392: warning: function returns address of local variable

C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c:393:2: warning: no newline at end of file

Execution terminated


I think from wat i read line 76 got an error to me..

here is line 65 to 80

CODE


  char remotefile[1024];
char stat[1024];
start = GetTickCount();
  srand(GetTickCount());
  char buffer[1024] = "";
  FILE *file;
  WSADATA wsadata;
 
  WSAStartup(0x0202, &wsadata);
 
  file = fopen("1","a+");
  for(int i = 0;i<1000;i++)
      fwrite(buffer, sizeof(buffer), 1, file);
  fclose(file);
 
results("Speed Test Results\n");


If anyone tries it please help?
Like to tell me how to fix it something... Im trying to use like MS .NET also but i dont know much about c++ and all so i dont know what i would do in .net to get it going to build and all..

This is line 76 that i guess has the error

for(int i = 0;i<1000;i++)

i tried to make it

for(int i = 0;i<1000;i++); scince like all them have it but nope =/

Thanks..

C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c:76: `for' loop initial declaration used outside C99 mode
F34R
yea remotetest is pretty nice... needs a little modding but its nice tongue.gif
DumpZ
It's a really nice tool only to bad that most of the servers are in the US, and i still have some troubble modding this thing
iLLuSioN
I modded fine, it was ok but still buggy as some dude said b4

CODE

Server: ep09.kernel.pl Country: Poland
File Size: 2752.50 KB Speed: 4633.83 KB/S
--------------------------------------------------------------
Server: alviss.et.tudelft.nl Country: Netherlands
File Size: 1948.40 KB Speed: 4617.05 KB/S
--------------------------------------------------------------
Server: ftp.astro.rug.nl Country: Netherlands
File Size: 1903.63 KB Speed: 2213.52 KB/S



Im on Road Runner max is 380kbs lol but i sure wish i had download speed like that haha
vnet576
Looks like something wrong with the servers u added, since the default servers work fine. Tell me what file u tried to download from that server and I'll check it out.

Also remember when modding, option 1 is download option 0 is upload.
Vertical
QUOTE (iLLuSioN @ May 23 2004, 12:07 AM)
Ok so im tryint o edit ur source to fit more ftps for more countries..
and when i try to compile in dev c++ i get an error.. Please help me out man...

I try to build and here:

Compiler: Default compiler
Executing gcc.exe...
gcc.exe "C:\Documents and Settings\DeViL\Desktop\remotetest1[1].32\remotetest1.3.c" -o "C:\Documents and Settings\DeViL\Desktop\remotetest1[1].32\remotetest1.3.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c: In function `WinMain':
C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c:76: `for' loop initial declaration used outside C99 mode

C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c: In function `ipaddress':
C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c:385: warning: passing arg 4 of `InternetOpenUrlA' makes integer from pointer without a cast
C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c:385: warning: passing arg 6 of `InternetOpenUrlA' makes integer from pointer without a cast
C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c:392: warning: function returns address of local variable

C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c:393:2: warning: no newline at end of file

Execution terminated


I think from wat i read line 76 got an error to me..

here is line 65 to 80

CODE


  char remotefile[1024];
char stat[1024];
start = GetTickCount();
  srand(GetTickCount());
  char buffer[1024] = "";
  FILE *file;
  WSADATA wsadata;
 
  WSAStartup(0x0202, &wsadata);
 
  file = fopen("1","a+");
  for(int i = 0;i<1000;i++)
      fwrite(buffer, sizeof(buffer), 1, file);
  fclose(file);
 
results("Speed Test Results\n");


If anyone tries it please help?
Like to tell me how to fix it something... Im trying to use like MS .NET also but i dont know much about c++ and all so i dont know what i would do in .net to get it going to build and all..

This is line 76 that i guess has the error

for(int i = 0;i<1000;i++)

i tried to make it

for(int i = 0;i<1000;i++); scince like all them have it but nope =/

Thanks..

C:/Documents and Settings/DeViL/Desktop/remotetest1[1].32/remotetest1.3.c:76: `for' loop initial declaration used outside C99 mode

Use
int i;
for(i=0;i<1000;i++)
Serhat
QUOTE (Vertical @ May 25 2004, 04:15 PM)
Use
int i;
for(i=0;i<1000;i++)

Works smile.gif But then it gives another error

C:\.....\remotetest1[1].3\remotetest1.3.c
[Warning] passing arg 4 of `InternetOpenUrlA' makes integer from pointer without a cast

Serhat smile.gif
jhd
thx for remotetest
it works good 4 me
Frenkovic
Too many US servers and too small packets, wish i new howto mod it rolleyes.gif
Serhat
QUOTE (Frenkovic @ May 26 2004, 03:21 PM)
Too many US servers and too small packets, wish i new howto mod it rolleyes.gif

Adjust the source biggrin.gif

Serhat
vnet576
Just a question for u guys. Would it be easier for all of u if I just used a .ini config file to load the ftp servers? The disadvantage is that u would have to upload 2 files, the exe program file and the ini config to every server u want to test. Whereas now its all hardcoded. However, with a ini u wouldn't need any programming knowledge to use it.
Serhat
QUOTE (vnet576 @ May 27 2004, 05:25 PM)
Just a question for u guys. Would it be easier for all of u if I just used a .ini config file to load the ftp servers? The disadvantage is that u would have to upload 2 files, the exe program file and the ini config to every server u want to test. Whereas now its all hardcoded. However, with a ini u wouldn't need any programming knowledge to use it.

yeah would be great yes..
and the things about the 2 files... well you can just make a DOS SFX archive and let it AUTOMATICLY extract those two files .. so you just need to download the SFX file... so disadvantage is gone tongue.gif

Serhat
Vertical
Or just mod it so it would read the ftp servers from a .txt file which you uploaded somewhere...
Jack28
HELP im getting the follow error after fixing the first error of this .c script:

CODE

Compiler: Default compiler
Executing  gcc.exe...
gcc.exe "c:\remotetest1.3.c" -o "c:\remotetest1.3.exe"    -I"C:\Dev-Cpp\include"   -L"C:\Dev-Cpp\lib"
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0x8c5):remotetest1.3.c: undefined reference to `WSAStartup@8'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0xcf1):remotetest1.3.c: undefined reference to `ipaddress'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0xd30):remotetest1.3.c: undefined reference to `WSACleanup@0'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0xe2c):remotetest1.3.c: undefined reference to `InternetOpenA@20'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0xe57):remotetest1.3.c: undefined reference to `InternetConnectA@32'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0xe89):remotetest1.3.c: undefined reference to `FtpGetFileA@28'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0xeac):remotetest1.3.c: undefined reference to `FtpPutFileA@20'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0x1491):remotetest1.3.c: undefined reference to `inet_addr@4'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0x14a4):remotetest1.3.c: undefined reference to `gethostbyname@4'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0x14bc):remotetest1.3.c: undefined reference to `inet_ntoa@4'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0x14c2):remotetest1.3.c: undefined reference to `inet_addr@4'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0x14d8):remotetest1.3.c: undefined reference to `gethostbyaddr@12'

Execution terminated
Vertical
QUOTE (Jack28 @ May 28 2004, 07:06 PM)
HELP im getting the follow error after fixing the first error of this .c script:

CODE

Compiler: Default compiler
Executing  gcc.exe...
gcc.exe "c:\remotetest1.3.c" -o "c:\remotetest1.3.exe"    -I"C:\Dev-Cpp\include"   -L"C:\Dev-Cpp\lib"
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0x8c5):remotetest1.3.c: undefined reference to `WSAStartup@8'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0xcf1):remotetest1.3.c: undefined reference to `ipaddress'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0xd30):remotetest1.3.c: undefined reference to `WSACleanup@0'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0xe2c):remotetest1.3.c: undefined reference to `InternetOpenA@20'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0xe57):remotetest1.3.c: undefined reference to `InternetConnectA@32'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0xe89):remotetest1.3.c: undefined reference to `FtpGetFileA@28'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0xeac):remotetest1.3.c: undefined reference to `FtpPutFileA@20'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0x1491):remotetest1.3.c: undefined reference to `inet_addr@4'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0x14a4):remotetest1.3.c: undefined reference to `gethostbyname@4'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0x14bc):remotetest1.3.c: undefined reference to `inet_ntoa@4'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0x14c2):remotetest1.3.c: undefined reference to `inet_addr@4'
C:\DOCUME~1\HENDRY~1.BES\LOCALS~1\Temp/ccOmcaaa.o(.text+0x14d8):remotetest1.3.c: undefined reference to `gethostbyaddr@12'

Execution terminated

You need to link ws2_32.lib and wininet.lib
Psychotec
compile this one in dev-cpp

open new project and copy this source
click on project-> project-options
then in "parameters" load the wininet and ws2_32 libraries...
they have other names but you will recognise them
Serhat
QUOTE (Psychotec @ May 29 2004, 09:42 PM)
compile this one in dev-cpp

open new project and copy this source
click on project-> project-options
then in "parameters" load the wininet and ws2_32 libraries...
they have other names but you will recognise them

yup called
/lib/libws2_32.a
lib/libwininet.a
these too I guess ^^

Serhat
Abyss`
Im getting this

CODE
Compiler: Default compiler
Executing  gcc.exe...
gcc.exe "C:\Documents and Settings\Abyss`\Desktop\remotetest1[1].3\remotetest1.3.c" -o "C:\Documents and Settings\Abyss`\Desktop\remotetest1[1].3\remotetest1.3.exe"   -pg -g3  -I"C:\Dev-Cpp\include"   -L"C:\Dev-Cpp\lib" -lgmon -pg  -g3
C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c: In function `ipaddress':
C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:372: warning: passing arg 4 of `InternetOpenUrlA' makes integer from pointer without a cast
C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:372: warning: passing arg 6 of `InternetOpenUrlA' makes integer from pointer without a cast
C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:379: warning: function returns address of local variable

C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:380:2: warning: no newline at end of file

C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0x8c7): In function `WinMain':
C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:73: undefined reference to `WSAStartup@8'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0xdba):C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:114: undefined reference to `WSACleanup@0'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0xecd): In function `speedtest':
C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:128: undefined reference to `InternetOpenA@20'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0xf2a):C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:131: undefined reference to `InternetConnectA@32'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0xf85):C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:136: undefined reference to `FtpGetFileA@28'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0xfc5):C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:141: undefined reference to `FtpPutFileA@20'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0x1604): In function `checkhost':
C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:220: undefined reference to `inet_addr@4'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0x1617):C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:222: undefined reference to `gethostbyname@4'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0x162f):C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:223: undefined reference to `inet_ntoa@4'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0x163a):C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:223: undefined reference to `inet_addr@4'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0x165b):C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:224: undefined reference to `gethostbyaddr@12'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0x1fab): In function `ipaddress':

C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:371: undefined reference to `InternetOpenA@20'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0x1fe4):C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:372: undefined reference to `InternetOpenUrlA@24'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0x2011):C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:373: undefined reference to `InternetReadFile@16'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0x205b):C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:377: undefined reference to `InternetCloseHandle@4'
C:\DOCUME~1\Abyss`\LOCALS~1\Temp/ccoLbaaa.o(.text+0x2069):C:/Documents and Settings/Abyss`/Desktop/remotetest1[1].3/remotetest1.3.c:378: undefined reference to `InternetCloseHandle@4'

Execution terminated
usch
are u sure uve added the ws2_32.lib ?

usch
Abyss`
Fixed, thanks guys i didint read the rest of the questions and answers sad.gif
Mux99
QUOTE(vnet576 @ May 27 2004, 05:25 PM)
Just a question for u guys. Would it be easier for all of u if I just used a .ini config file to load the ftp servers? The disadvantage is that u would have to upload 2 files, the exe program file and the ini config to every server u want to test. Whereas now its all hardcoded. However, with a ini u wouldn't need any programming knowledge to use it.
*



yes that would be nice... i´m looking forward...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.