Вы находитесь на странице: 1из 3

������ ������ �� �������� � ���������� ��������

����������� �������

�������� ����
�� ����� � ��� ���� ������ ������� ����
ssh://user:pass@host:port
ftp://user:pass@host:port

����� ������������� ������ �� �������, �� ������� ���� �������������� ����� �����.

���������� � �����
��������� ��������� ��� ������ � ������������ � ����������� module_HOWTO �
"���������� ���� � ������".

�������� �������: fscan

������ ��������� �������� ������ � ����� fscan:


- "Version build %DATE% %TIME%" (���� ��� ��� ������)
- "File found: %filename% at %user%@%server%:%port%" - ����� ������ ���� �� �����
- "Results sent to server" ��� �������� �������� ��������� ����������
- "No result detected, give up", ���� ��������� ��������� ����� � ������ �� �������
(�������������� ������)
� ����� ������, ������ ������ ������ ������� WantRelease (�� "module_HOWTO") ��
�������� �� �����

�������

�� ������� - ��� �������� Ctl ������� Control, ���������� ������� - ��� ��������
CtlArg (��. modules_HOWTO.txt)

������� ������ ���� � ���� ����������� ��������� (��������������� ASCII).


������ ��������� ������������ ������ fsrv, ���������� ������ ������� �����������
�������,
����������� \r\n ��� \n, � ������� �����:����.
���� ���� ������, ������ ���� �� HTTP, ���� �������� - HTTPS.
���� ������ ������� ��������� (http/https), ������� ����� ��������� ��� ���������
������.
������ �������� � ��� ���������� ��������, �� �������� ������� ���������� ������,
�� ������� �������.

������ � ��������� ��������

������ ������� � ��������� �������� �� ��������� HTTP(s) �������� ���������.

����� ������� �����������:


GET /<group>/<clientid>/fscan/th HTTP/1.1
������� group � clientid - ��� ��� struct ParentInfo
CHAR ParentID[256];
CHAR ParentGroup[64];
(��. module_HOWTO)
� ����� - ��������������� �����.
���� atoi(�����) == 0, �� ����� ������� �� �������� = std::thread_concurrency() -
1.

������ �������� ������ �� ����������� HTTP-�������� �� ������

GET /<group>/<clientid>/fscan/domains HTTP/1.1


������ ������:
proto://user:pass@host[:port][\r]\n
...
(���� ��� ��������� �������)

������ �������� ������ ��������� ��������� �� ������ ��������


GET /<group>/<clientid>/fscan/rules HTTP/1.1
������ ������:
regexp1[\r]\n
regexp2[\r]\n
...
(���� ��� ��������� �������)

��� ������������, ������ ���� ����� ���� ��������� ��� ��������.


��� ����, ����� ��������� ����� ������������ �����������.

������ �������� ��������� ������� �� ������ ��������


GET /<group>/<clientid>/fscan/home HTTP/1.1
������ ������:
path1[\r]\n
path2[\r]\n
...
(���� ��� ��������� �������)
��� ��������, � ������� ����� ����������� �����.
���� ��������� ���������, ����� ����� ����������� � ������ �� ���.
���� ����� ����, ����� ������ � ������� ��������.

������ �������� ������� ������ ��������


GET /<group>/<clientid>/fscan/nest HTTP/1.1
������ ������:
��������������� ����� ����� ������ 100.
���� ����� �� �������� ��� ��� �������, ������� �� �������� 10.
����� 0 �������� ���������� ����������� �� ������� ������.

��� ���������� �������� �� ��������� ������ �� ���� ����� �� ���� �������:

GET /<group>/<clientid>/fscan/over HTTP/1.1

����� ������� - ����� ��, ��� �� ������ /domains - ����� ������ ������� �� ������.
��� ����������� ������ (������ ������, ��� ������ ���) ������ ��������� �� ��������
��� (������������ �����������)
� ������ ��� �� ����� ������ ��� � 10 ����� (���� - � ���������).

�������� ����������� ������� �� ��������� DPOST (��. "�� ���� ������� DPOST" ��
������� ���������) ��������

POST /<group>/<clientid>/fscan/81 HTTP/1.1

��������� ������ ���������� � ���������� multipart/form-data � ����� source � data.


�������� ��� source - "Files found"
�������� ��� data: ������� �����, ����������� ����� \r\n
������ ������:

proto://user:pass@host:port/path/to/file\r\n
...
(���� ��� ��������� �������)

������� �������� ����������� ������ ����� �������� � ����������� ������� HTTP-


��������
GET /<group>/<clientid>/fscan/freq HTTP/1.1

� ���� ������ �� ������� ����� - ��� ����� ������, �� ���� �������� �������
��������� ������.
���� ��� 0 - �������� ����� �� ���������� ������ ����������.
���� ��� ������������� ����� - �� ����������� ������ � ������ � ��������� ��� � X
������,
����� ����� ��� �������� ��������.

���������� ���������

����������� ���� ����������� ��������� ��������.


��������� ����� ��������� ������� ��������, �������������� ���� � ���������� ������
"[]".
* �������� ���������� ��� ������������������ �������� ����� �����
? �������������� ���� ���������� ���� ��������� ������
[] ���������� ������ ���������� ������ ��������� ��������, ��������,
[jeu] - �� ��� ����� ����� ����� ������ ���� �� ��� �������� "j" , "e" ��� "u",
[?] - ������ ������ ��������������� �����,
[[] - ������ ��������� ��������� ������,
[*] - ������ ������ ��������,
[[*] - �������� ��� ��������� ��������� ������.
������: q[abc]erty[?]u[[]uu??88]88*
qaerty?u[uuzz88]88444 - ��������
qbertysu[uuzz88]88444 - �� ��������
qcerty?u[uuz88]88 - �� ��������
qaerty?u[uuz?88]88 - ��������
qrerty?u[uuz?88]88 - �� ��������
qaerty?u!uuz?88]8811 - �� ��������

Вам также может понравиться