Jump to content
Guest Kovalski

Linux Security Audit

Recommended Posts

Guest Kovalski
Posted (edited)

server: 94.249.208.71

login rst

pass rst

faceti si voi un security audit si spuneti aici cam ce ar trebui sa schimb.

target:

obtain uid=0 gid=0 groups=0

schimbari majore

compromitere mysql / apache

escaladare privilegii

instalare rootkit

etc...

daca ati reusit, schimbati asta: Secure

Edited by ps-axl
Guest Kovalski
Posted

ia-o cum vrei competitia este pentru a vedea daca am securizat bine.

si tot odata ma si ajutati sa il perfectionez

Guest Kovalski
Posted

fa-ti un folder cu numele tau si nu o sa se bage nimeni peste

by the way am vazut ca esti pe calea cea buna :) frumos

Guest Kovalski
Posted

vad ca esti cel mai bun pana acum, daca tot ti se goleste folderul fa-ti un folder ascuns pe undeva..

eu nu le sterg nu stiu cine naiba ti-a sters jucariile

Posted
Iar mi s-a golit directoru...pfff..ce oameni rai

Am creat 2 executabile

Unul blocheaza fisierul iar al doilea il deblocheaza, trebuie rulat cu drepturi administrative

Un fisier blocat nu poate fi sters si nici modificat de catre nimeni, nici macar de catre root

USAGE: UnBlock <filename>

USAGE: Block <filename>

Va arata un 0 daca operatiunea a fost executata sau nimic in momentul in care operatiunea nu a fost executata


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

begin 644 Block-Unblock.tar.gz
M'XL(".:HW$\``T)L;V-K+55N8FQO8VLN=&%R`.U8#VQ3QQF_9YP06F#.GXZT
MI<S:`@TK.'%("*!!FW\0(/Q-8`54WAS[)7;KV)G]S$C%M`0GK"ADRS:#HLV;
M@I9-V>1JGIH!$FRB"FM5:9-@ZZ9VTSJJ@F0&F^A&JZU%>-_W[M[SY4@:(P%=
MI_=9Y[O?W7?W??>]NW?W?K7^H/LY<F^E'*2ZJ@IS9W55.9]CT;G,646<SNKE
MU<Z*RO(J)X&JRF75Q%Y^C_W2)!)672&[G71VJ=[RP+(I]:9K_X3*UQJ:UDJ2
M9&`+F4$0=4>M>960GY])ZRN)G<PDI60!>93D:AA2-^A`N@AE3#F0K)!F0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5E3I_QOXJ/XW\0D_&_B8^=_W[QW_&_<X'_CV?*_
M31_!_R[-FO]E!_#M#/#]XX![/V8..&ERP"8'3$P.^/^9`]XTB1[/`0_U46YW
M.@Y8NQ-FP0'C83>2!0>L<[O3<<#:73,+#ECG=J?C@/&=VYL%!XQ<S$@6'#">
MYHDL.>!$EASPY2PYX-XL.>`QJ%Q@<L#4_C0<\)#``<<%#GA$`3`@><%#C@
M#.=+.>!>@0,>,3#E@!-WR`''!0YX1."`$]-PP`F!`T[>(0<\+'#`0P('G+@#
M#O@D%Q_D@'_+S0\YW[<$_"X7;^2`/^#BB1QPCL"!%@L<<*G``9<)G.\:`6\7
M..!=`@<L"_:^+.!O"!SP]SG.%SG@GW(<+7+`)Z4,AXX<\#F!`WY=RJP7Y'0O
M`A[C\&7!_GN"_DV!`RX4..#B3SX'7&&2P"8);(HIIIABBBFFF&***::88HHI
GIIABBBFFF&***::88HHIIIABBBFFF&***::8<C?EOV.41W``4```
`
end
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iF4EAREIAAYFAk/cqe8ACgkQiOFy19RY1SDaaQD9FftXKinTt+m1onug/eKSCCy5
vU1K19jlEuS4qbJDU+oBAL57hjkCXiHLlBNRZcC99sZrLoqnCakVRFfkptCky3B/
=lvYA
-----END PGP SIGNATURE-----

Posted (edited)

Ca executabilele sa poata fi folosite de catre orice user se pot atribui urmatoarele permisii

chmod u+s Block

chmod u+s UnBlock

Evident daca un user detine ambele executabile va putea debloca si bloca in acelasi timp

As sugerii sa fie pus doar Block la dispozitia user-ului rst asadar o data ce o persoana a terminat un assessment poate bloca fisierul care poate fi deblocat doar de persoana care detine UnBlock .Note: O data blocat fisierul nu poate fi nici macar modificat si nici sters oricare ar fi userul care incearca acest lucru.

Edited by pyth0n3
Posted
Am creat 2 executabile

Unul blocheaza fisierul iar al doilea il deblocheaza, trebuie rulat cu drepturi administrative

Un fisier blocat nu poate fi sters si nici modificat de catre nimeni, nici macar de catre root

USAGE: UnBlock <filename>

USAGE: Block <filename>

Va arata un 0 daca operatiunea a fost executata sau nimic in momentul in care operatiunea nu a fost executata

[...]

Vreo sansa sa imparti codul sursa si cu noi (*whisper*sau macar prin private message hehe*whisper*)?

Posted

Ba futu-va in cristos de labari, care va bateti joc ma ?


rst@ps-axl:~$ history |grep perl
476 perl
486 perl udp.pl
487 perl udp.pl 86.106.63.50 25255
488 perl udp.pl 86.106.63.50 25255 5000
489 perl -c udp.pl 86.106.63.50 25255 5000
490 perl -e udp.pl 86.106.63.50 25255 5000
496 perl udp.pl 86.106.63.50 25255 5000
507 history |grep perl
rst@ps-axl:~$

Posted (edited)
Vreo sansa sa imparti codul sursa si cu noi (*whisper*sau macar prin private message hehe*whisper*)?

Pe linux ai chattr.

Pe FreeBSD poti folosi chflags (in functie de securelevel, doar in single mai stergi ceva, sau reboot cu alt securelevel)

"A file with the `i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute."


idsplus ~ # touch rstcenter
idsplus ~ # chattr +i rstcenter
idsplus ~ # ls -la rstcenter
-rw-r--r-- 1 root root 0 Jun 17 19:12 rstcenter
idsplus ~ # id
uid=0(root) gid=0(root) groups=0(root)
idsplus ~ # rm rstcenter
rm: remove regular empty file `rstcenter'? yes
rm: cannot remove `rstcenter': Operation not permitted
idsplus ~ # chattr -i rstcenter
idsplus ~ # rm rstcenter
rm: remove regular empty file `rstcenter'? yes
idsplus ~ #

Edited by aelius
Posted
Pe linux ai chattr.

Pe FreeBSD poti folosi chflags (in functie de securelevel, doar in single mai stergi ceva, sau reboot cu alt securelevel)

"A file with the `i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file. Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE capability can set or clear this attribute."


idsplus ~ # touch rstcenter
idsplus ~ # chattr +i rstcenter
idsplus ~ # ls -la rstcenter
-rw-r--r-- 1 root root 0 Jun 17 19:12 rstcenter
idsplus ~ # id
uid=0(root) gid=0(root) groups=0(root)
idsplus ~ # rm rstcenter
rm: remove regular empty file `rstcenter'? yes
rm: cannot remove `rstcenter': Operation not permitted
idsplus ~ # chattr -i rstcenter
idsplus ~ # rm rstcenter
rm: remove regular empty file `rstcenter'? yes
idsplus ~ #

Mersi frumos, insa, inca mai vreau sa vad sursa ...

Da, curiozitatea moare ultima.

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...