em Posted September 30, 2013 Report Share Posted September 30, 2013 Problema:Te conectezi la serverul X prin telnet .. dai comanda ls si esti deconectat instant. Taskul vostru este sa aflati de ce. Puteti sa imi puneti maxim 2 intrebari de persoana. (De exemplu "Ce se intampla daca incerc X"). Premiu: Domeniu .com/.net/.infoA? fi putut face acest challenge practic dar îmi era fric? c? îmi futea?i serverul (fie el ?i virtual). Quote Link to comment Share on other sites More sharing options...
Silviu Posted September 30, 2013 Report Share Posted September 30, 2013 Utilizatorul nu are suficiente privilegii fiind limitat pe baza unor flag-uri setate de administrator in a nu putea executa anumite comenzi specifice, in incercarea de a securiza sistemul. Quote Link to comment Share on other sites More sharing options...
sadik Posted September 30, 2013 Report Share Posted September 30, 2013 Problema:Te conectezi la serverul X prin telnet .. dai comanda ls si esti deconectat instant. Taskul vostru este sa aflati de ce. Puteti sa imi puneti maxim 2 intrebari de persoana. (De exemplu "Ce se intampla daca incerc X"). Premiu: Domeniu .com/.net/.infoA? fi putut face acest challenge practic dar îmi era fric? c? îmi futea?i serverul (fie el ?i virtual).ce iti da la pwd? Quote Link to comment Share on other sites More sharing options...
em Posted October 1, 2013 Author Report Share Posted October 1, 2013 @silvian0. nu@sadik /home/user (mai ai o intrebare .. dar ii poti pune pe altii sa puna pentru tine)@Gecko A primit un prieten ca intrebare de interviu la Google. Nu e gandit de mine. Quote Link to comment Share on other sites More sharing options...
quantum Posted October 1, 2013 Report Share Posted October 1, 2013 care ii outputul de la comanda dir ? Quote Link to comment Share on other sites More sharing options...
em Posted October 1, 2013 Author Report Share Posted October 1, 2013 care ii outputul de la comanda dir ?Conection closed by foreign host. Te-ai deconectat. Quote Link to comment Share on other sites More sharing options...
Silviu Posted October 1, 2013 Report Share Posted October 1, 2013 Fac pariu ca raspunsul e de toata jena. La chmod +x * comenteaza? Quote Link to comment Share on other sites More sharing options...
Eric Posted October 1, 2013 Report Share Posted October 1, 2013 ssh user@ip 'ls -al'aceeasi metoda se poate implementa si la telnet, chiar daca ne deconecteaza noi vom obtine output-ul, de aici ne putem da netcat si putem sa ne facem de cap, mai ales daca avem privilegiile necesare putem edita configul de la telnet si rezolva problema.Cel mai probabil asta este o setare din config-ul telnetului. Quote Link to comment Share on other sites More sharing options...
sadik Posted October 1, 2013 Report Share Posted October 1, 2013 Ciudat ca raspunde la pwd si se inchide la ls si dir. As zice ca nu ai r-x pe /home/user dar nu mi se pare un motiv suficient sa iti inchida conexiunea.Ar putea fi si faptul ca nu ai acess la /usr/bin sau unde o fi ls si dir dar atunci nu explica de ce pwd merge. Sunt in acelasi director doar.Pe ce distributie de Linux e configurat? Quote Link to comment Share on other sites More sharing options...
quantum Posted October 1, 2013 Report Share Posted October 1, 2013 (edited) sa fie datorita faptului ca ai un numar mare de fisiere in director si este setata vreo limita care face ca si conexiunea sa se termine.Ce se intampla daca dails /tmp sau ls /var/tmp ? Edited October 1, 2013 by quantum Quote Link to comment Share on other sites More sharing options...
sadik Posted October 1, 2013 Report Share Posted October 1, 2013 Pe mine m-ar interesa ce sistem de operare ruleaza serverul de FTP + ce serviciu de FTP foloseste. ProFTP, filezilla, etc. si ce port *sunt multe intrebari, scuze* care ftp? Quote Link to comment Share on other sites More sharing options...
Dubfx Posted October 1, 2013 Report Share Posted October 1, 2013 1. Restricted shell2. Alias pentru `ls` kill telnet pid Quote Link to comment Share on other sites More sharing options...
em Posted October 1, 2013 Author Report Share Posted October 1, 2013 @silvian0 chmod +x * - nu afiseaza nimic@Eric nu se aplica la telnet/problemei@sadik, orice linux. kernel chior, na @quantum se listeaza fisierele de acolo, fara probleme@Dubfx nu Quote Link to comment Share on other sites More sharing options...
Dubfx Posted October 1, 2013 Report Share Posted October 1, 2013 Ultimul raspuns pe care il dau:Custom command handler bindat pe portul de telnet - 23.Ce returneaza daca executi de 2 ori consecutiv 'w' ? Quote Link to comment Share on other sites More sharing options...
Silviu Posted October 1, 2013 Report Share Posted October 1, 2013 E un numar prea mare de foldere si fisiere care trebuiesc listate, asa incat se face buffer overflow? (Sunt constient ca se poate sa fi spus o mega prostie, necunoscand in deajuns protocolul). Quote Link to comment Share on other sites More sharing options...
Renegade Posted October 1, 2013 Report Share Posted October 1, 2013 prea multe conexiuni simultane (depasirea limitei de useri conectati in aceelasi timp) Quote Link to comment Share on other sites More sharing options...
j1ll2013 Posted October 1, 2013 Report Share Posted October 1, 2013 unix - Telnet inside a shell script - Stack Overflow nu ma pricep, insa instinctul imi zice ca despre asta e vorba so i ll give a try.. Quote Link to comment Share on other sites More sharing options...
FoxKids Posted October 1, 2013 Report Share Posted October 1, 2013 Ati incercat sa va conectati cu alt soft de conectare la consola unui server , eu banuiesc ca sunt blocate requesturile la pachetele trimise de windows catre server cand esti connectat incercati cu un soft gen PuTTy , am avut un server si la fel facea. Quote Link to comment Share on other sites More sharing options...
shaggi Posted October 1, 2013 Report Share Posted October 1, 2013 ls -la /home/zi-mi care e output-ul Quote Link to comment Share on other sites More sharing options...
Maximus Posted October 1, 2013 Report Share Posted October 1, 2013 ce se intampla cand trimitem comanda "ha" ? Quote Link to comment Share on other sites More sharing options...
em Posted October 4, 2013 Author Report Share Posted October 4, 2013 @Dubfx, merge de 2 ori w@silvian0, nu, nu apare nimic cand dai ls si esti deconectat@Renegade, nu@shaggidrwxr-xr-x 15 root root 4096 Sep 15 18:12 ./drwxrwxrwx 26 root root 4096 Mar 25 2013 ../drwxr-x--- 3 user user 4096 Mar 27 2013 user/@spide112ha: command not found Quote Link to comment Share on other sites More sharing options...
sadik Posted October 4, 2013 Report Share Posted October 4, 2013 User-ul cu care te loghezi in telnet nu este "user" si nici nu este parte din grupul "user" si totusi te baga in "/home/user/". Te scoate cand faci "ls ." pentru ca nu ai permisii. Asta ar explica de ce doar ls nu merge in timp ce restul merg. Quote Link to comment Share on other sites More sharing options...
Dubfx Posted October 6, 2013 Report Share Posted October 6, 2013 Se pare ca am fi esuat cu totii la un interviu... Care este raspunsul pana la urma ? Quote Link to comment Share on other sites More sharing options...
Eric Posted October 17, 2013 Report Share Posted October 17, 2013 Daca chiar dai de un server de genu si chiar ti se pare atat de important incat fuck the system i want to get access, te uiti la uname -a, dai un cat /etc/issue, downloadezi /bin/ls pentru versiunea respectiva si te pisi pe ea de restrictie cu ./ls indiferent de ssh, telnet sau job. Quote Link to comment Share on other sites More sharing options...
ionut97 Posted October 20, 2013 Report Share Posted October 20, 2013 Ce afiseaza cand trimitem "echo *" ? Quote Link to comment Share on other sites More sharing options...