Академический Документы
Профессиональный Документы
Культура Документы
����
��������
���������� � �������
1. ��� ����������
1.1. ��� ��������� ������� �� �����, � ������� ��� ���-���� ���
2. ������������ ������� � ����� ������ ������������, �� ����� ���������� IP-������.
������, ���� ������������� ������� �����������, � ���� ���������� ����������:
�������� ������ � ���� �� �������������� �� ����� � ��� �� ���������, ���
����������� �� �������� ����������� � ������ ������������.
������������ ������� - hardware id (��� �� ����� �����������). ������
�������������� �� ������������.
2.1. ������ ����� �������������� �������������� ��� � ������������ ������
(�������). ������ ����� �� �������� ������������ - ����� ��������� �������� �����
����� �� ������.
������ ���������� � ������ � ������ ������ � � ������� ������� ����� �����������
��������� ������� �� ������ �������.
2. ���������� x86/x64. ����������� ���������� x64. ������ �������� ������ ��� ��
����������, ��� ��� ������.
3. ���� ���� � �������:
- �� �����
- �� �����������
- ����� � ���������� ��
- �� � ����� ��
- ��������� ������� net view /all
- ��������� ������� net view /all /domain
- ��������� ������� nltest /domain_trusts /all_trusts
- IP-����� �������� �� ����������� - ��� ����� ���� ������� ���������� �������
4. ��� �������� ����
4.1. ������ �� �������������������� �����������.
5. ��� ������ UAC
6. ����������� ��������� ������� ��������� �� ������� ��������:
6.1. ��������� ������ �������� ��� �������
6.2. ������������ ������ � ��������� (����������� �������, ������� ���
������������, ��������� ����� ��������� �����������)
����� ����� ����� ������: �� ������ �������� ���������� � ������� ����; ������, ���
�������� �������� ��-�� ������; ������, ��� ���� �������� ������� ��, � ����� ���.
������ � ��� ������ ���� ����� � � �.
������� ������, ��� ������� ����� �������� ������ �������� ��� ����������������
�������� �� ������� ��������.
7. ������ ��� .exe, ��� � .dll
8. ������ �������� ����������� �������� (process hollowing, dll from memory �
������� ���������)
9. ������� �������� ��� ���������� �������
10. ������������� �������� ������� ���� �� ������ � C&C (HTTPS, DNS, ����� ���)
11. ������� ������� ���������� ��� ���������� ������� (������� ������ �������
������� �� cmd.exe ��� WerFault.exe, ���� �� ������ �������� � ���)
12. ���������� �������; ������ ����� ������������ �����. ���� ��������� - ������ ��
��������� �������, DPI.
������ ���������� �� ���������� � ��������� �����, � ������ ����������, ����� �����
���� ������� �������� � �������� ��� ���������� ������ ��������� � DPI.
13. ������ �� ��������� ������� (��������� �����, ��������� �������; �����������
������ �������� ����� ���).
��� ���� ���� ��� ������ �� ������� ��� ���������, ��� � ��:
13.1. �������� ������ �� �������� ���������� ������
13.2. ������� � ����� ������� ��
13.3. ������ �� ��������� � ����������� �������� ���������, ������ ���� ��
������������� �������������� � �������������.
��� ������� ��� ���� ���� � ��������� ����������� �� �������� ID ���������,
hostname, ����������� ������ ���.
������ �� ����������� ��� ������� ����� ������ �� ������� � ������ �����-����������
��������, ��� ����� ��������� ������.
14. ������� ������� ������������, ���� �� ������ � ���������� ��������������
������������. �� ������ �� ����� ���������.
15. �� - Windows Server 2008 R2+, Windows Vista+ - �� ���� ������ ������, �����
��� ����������� ���������� � ��������� �����.
���� �� �������� ������������� � Windows Server 2008 (��� R2, �� ���� ����������
��� XP), ��� ����� ����� �����.
16. �������� � �������� ���, ���� (� ������ ���������� ������ ��� .Net) ������
������ ��������� �� ����� ��.
�� ������ ���� ������������. ���� ��� ������ ���������� ���� ������ ���� (��������,
�� ������ ��������� � ����������� ������ � �� ����� ��������� VMWare Player), ��
��� ������ � ������ ����.
PowerShell - �� ���� 2.0.
��������� ���� ����� cscript, jscript, .bat, ��� ������� ���������� � ������ ����.
������� �������, ��� ������ ���� ���� ����, � �� ������ �������� �� ���� ������ ���
������� �� ��, ��� � ��� ��� ����� .Net ��� Microsoft Visual C++ Redistributable
������ ������.
17. ������������� � �������� (�� ��������� ����):
17.1. ������ ������ ������� ��� � .exe, ��� � � .dll
17.2. ��������� ������ (������, �� 1�)
17.3. ���������� CRT/STL (�� ��� ������ �����������).
���������� ����
���� � �������
��������� �������
1. ���������� ���������
$adm->register_property($plugin_name, $prop_name, $length) ����������������
��������� �� ������� ���� � �������
$plugin_name: ������ � ��������������� ����
$prop_name: ������ � ��������������� ��������
$length: ����������� ����� ���
TODO: �������� � ������� ������� ����� ��� ��� � ��������� ���������� � �������
(��� �������).
��������� ������� � �������� ���� � �� (��� ������, ��� ��� �� ����� �� ���-����
������������ ��� ����������).
���������� true � ������ ������, false � ������ ������.
2. �������� ���������
$adm->get_property($plugin_name, $prop_name, $group = null) �������� ��������
(���������) � ��������� ������; ����������� ���������� ������
$plugin_name: ������ � ��������������� ����
$prop_name: ������ � ��������������� ��������
$group: ������������� ������ (�������), �����������. ���� �� �������,
������� �������� ��������� �� �������� ��� ������� ������.
���������� �������� ���������.
3. �������� ��������
$adm->get_payload($bitness, $group) �������� �������� ��
�������� ������ � ��������� ����������
$bitness: ��������� ��� ��������� ������� 86 � 64 (int)
$group: ������������� ������
���������� ��������, ������ ������� ������ �������
4. ���������� �������
$adm->knock($group, $id = null) ���������� ������� �
��������� ������
$group: ������������� ������
$id: ������������� ��������� (�����������)
������ �� ����������.
6. ��������� ���������
$adm->put_telemetry($group, $data, $id = null) ��������� � �������
$group: ������������� ������
$id: ������������� ��������� (�����������)
$data: ������������ ��������� �� �������
����������
����� ���������� - �������� �������, � ������� � ������ �������.
������� ���� �� ������:
- � ��� ��� ������ ������ ��������
- � ��� ��� �� � ��������
- � ������������ ������� (��������, ������� �������� ������ �����)
- � ��������� �������� ������� ��������
- � ������ �������
��������� ������
���� ��������� �������� ������������ ����-���� ������ ��� ������ ����� API, � ����
��� ������ ����� �� ���������, ��������� ����������.
���� ����� (� ������ �������), ���� ��������� ��� ������� ������ (���� ������
error_reporting).
��������� �����
1. ��������� � �������
$gate->install()
��� ���������� ���������� ��������, ������ ����.
2. ��������� �������
$gate->process_request($HTTP_request)
������������ ������� ������ � ��������� �����.
$HTTP_request: ������� ������ �� ����� �����������
���������� �������:
code => HTTP-��� ������ (����� ��� ������)
response_headers => HTTP-��������� ��������������� ������. ���� ����� �� 200,
����� ���� �������.
response_body => HTTP-���� ��������������� ������. ���� ����� �� 200, �����
���� �������.
���� ����� 400 - ��� ������ ��� ��� �� ������� ������ ��� ��������.
���� ����� 404 - ��� ������ ��� ��� � ����� ������� ������ ��� ��������, �� ��
���� ����������� ��� � �������.
���� ����� 200 - ��� ������ ��� ����� �������� ���������, � ��������� ���������
�� ��������.
���� ������ ���� ������ �������� ��� ������ ���������; �� ���� ��������� ������
�� ������� ���� ���������.
PHP
require_once "adm_api.php";
// ����� ���� ������ $adm
class sample_gate {
string $plugin_name = "Plagin Vasi";
return array("code=>"404");
}
function arrange_headers_somehow() {}
//etc
}