Jump to content
escalation666

systeminfo for windows si linux

Recommended Posts

Posted

O serie de programele si un script destinate windows-ului care colecteaza intr-un fisier log informatii despre server, cum ar fi uptime-ul, latimea de banda etc...

Nu pot garanta ca nu sunt backdoored sau ca nu contin troieni, pentru ca le-am gasit pe un server compromis.

Download:

http://rapidshare.com/files/39306234/systeminfo.rar.html

Si un simplu program in C facut de mine, care face aceleasi chestii in Linux. E folositor cand ai un shell si nu mai trebuie sa dai toate acele comenzi pentru a afla diverse informatii despre server :P


#include <stdio.h>

void main()
{
printf("Efectuez comanda uname.\n\n");
system("uname -a >> sysinfo.log");
printf("Efectuez comanda id..\n\n");
system("id >> sysinfo.log");
printf("Aflu continutul /etc/HOSTNAME...\n\n");
system("cat /etc/HOSTNAME >> sysinfo.log");
printf("Aflu configuratia procesorului....\n\n");
system("cat /proc/cpuinfo >> sysinfo.log");
printf("Efectuez comanda /proc/version.....\n\n");
system("cat /proc/version >> sysinfo.log");
printf("Aflu cat RAM este pe server......\n\n");
system("grep MemTotal /proc/meminfo >> sysinfo.log");
printf("Aflu ce procese active se desfasoara.......\n\n");
system("ps aux >> sysinfo.log");
printf("Spatiu disponibil pe hard........\n\n");
system("df -h >> sysinfo.log");
printf("Efectuez comanda ifconfig.........\n\n");
system("ifconfig >> sysinfo.log");
printf("Aflu cine se mai afla pe server..........\n\n");
system("who >> sysinfo.log");
printf("Aflu uptime-ul serverului...........\n\n");
system("uptime >> sysinfo.log");
printf("Conexiuni active in acest moment............\n\n");
system("netstat -tupl | grep LISTEN >> sysinfo.log");
printf("Downloaderi existenti.............\n\n");
system("which wget curl lynx links >> sysinfo.log");
printf("Aflu conexiuni arp..............\n\n");
system("arp -a >> sysinfo.log");

}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...