-
Notifications
You must be signed in to change notification settings - Fork 0
/
LinuxSniffyScout.ui
917 lines (917 loc) · 25.9 KB
/
LinuxSniffyScout.ui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1328</width>
<height>725</height>
</rect>
</property>
<property name="windowTitle">
<string>LinuxSniffyScount Beta v0.2 - CreatedBy : Tokeii</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QTextEdit" name="textEdit">
<property name="geometry">
<rect>
<x>10</x>
<y>220</y>
<width>1321</width>
<height>481</height>
</rect>
</property>
<property name="markdown">
<string/>
</property>
</widget>
<widget class="QTabWidget" name="tabWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>60</y>
<width>411</width>
<height>121</height>
</rect>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>检查</string>
</attribute>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>401</width>
<height>91</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QPushButton" name="pushButton_env">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>无法正常打印,需要手动执行</string>
</property>
<property name="text">
<string>环境变量(set)</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QPushButton" name="pushButton_SUID">
<property name="toolTip">
<string>检查重要文件是否存在suid和sgid权限</string>
</property>
<property name="text">
<string>检查SUID</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="pushButton_pwdandshadow">
<property name="toolTip">
<string>读取/etc/passwd,以及/etc/shadow文件,passwd文件只读取能登录的用户</string>
</property>
<property name="text">
<string>检查用户</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QPushButton" name="pushButton_pstree">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>ps -aux</string>
</property>
<property name="text">
<string>检查进程</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QPushButton" name="pushButton_cron">
<property name="toolTip">
<string>打印出机器中的所有定时任务</string>
</property>
<property name="statusTip">
<string/>
</property>
<property name="text">
<string>定时任务</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QPushButton" name="pushButton_systemctl_status">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>查看开机的所有服务</string>
</property>
<property name="text">
<string>查看所有服务</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="pushButton_findhide">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>查找所有的.*文件</string>
</property>
<property name="text">
<string>查找隐藏文件</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="pushButton_hosts">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>/etc/hosts</string>
</property>
<property name="text">
<string>查看hosts</string>
</property>
</widget>
</item>
<item row="2" column="3">
<widget class="QPushButton" name="pushButton_kernel">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>对查找恶意驱动有帮助</string>
</property>
<property name="text">
<string>查看核心日志</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="pushButton_rookit">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>查找常见目录下的*.ko文件</string>
</property>
<property name="text">
<string>查找rookit</string>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QPushButton" name="pushButton_lsattr">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>查找常见目录下的ia特殊属性文件</string>
</property>
<property name="text">
<string>特殊属性文件</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QPushButton" name="pushButton_bashrc">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>执行打印命令:'cat ~/.bashrc', 'cat ~/.profile', 'cat /etc/profile'</string>
</property>
<property name="text">
<string>查看bashrc</string>
</property>
</widget>
</item>
<item row="0" column="4">
<widget class="QPushButton" name="pushButton_init1">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>查找常见目录下的ia特殊属性文件</string>
</property>
<property name="text">
<string>父进程为1</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QWidget" name="tab_5">
<attribute name="title">
<string>docker操作</string>
</attribute>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>361</width>
<height>91</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0" colspan="2">
<widget class="QComboBox" name="comboBox_dockerlist"/>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="pushButton_dockerlist">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>读取正在运行的docker容器</string>
</property>
<property name="text">
<string>刷新docker列表</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="pushButton_dockerlogs">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>打印docker日志</string>
</property>
<property name="text">
<string>docker容器日志</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="pushButton_dockerimages">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>打印主机空间内的docker镜像</string>
</property>
<property name="text">
<string>docker镜像列表</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="pushButton_dockercopyfile">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>从容器内复制到主机中,默认复制到/tmp/..,下面输入框天下docker容器的文件位置</string>
</property>
<property name="text">
<string>docker内复制文件</string>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QPushButton" name="pushButton_copyfile2docker">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>从容器内复制到主机中,默认从/tmp/..复制,下面输入框天下docker容器的文件位置</string>
</property>
<property name="text">
<string>复制文件至docker内</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QPushButton" name="pushButton_restartdocker">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>打印docker日志</string>
</property>
<property name="text">
<string>重启docker容器</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QPushButton" name="pushButton_dockernetwork">
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>打印主机空间内的docker镜像</string>
</property>
<property name="text">
<string>docker网卡列表</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QWidget" name="tab_4">
<attribute name="title">
<string>操作文件</string>
</attribute>
<widget class="QPushButton" name="pushButton_chattr">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>101</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="toolTip">
<string>取消文件的ia属性</string>
</property>
<property name="text">
<string>取消文件特殊属性</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_userdel">
<property name="geometry">
<rect>
<x>100</x>
<y>0</y>
<width>91</width>
<height>23</height>
</rect>
</property>
<property name="toolTip">
<string>强制删除用户 userdel -rf username 下面输入填写用户名</string>
</property>
<property name="text">
<string>强制删除用户</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_delfile">
<property name="geometry">
<rect>
<x>190</x>
<y>0</y>
<width>91</width>
<height>23</height>
</rect>
</property>
<property name="toolTip">
<string>强制删除文件或文件夹,执行rm -rf .... (谨慎使用)</string>
</property>
<property name="text">
<string>强制删除文件</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_catfile">
<property name="geometry">
<rect>
<x>200</x>
<y>70</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="toolTip">
<string>编辑输入框输入绝对路径的文件,使用右侧的保存文件保存</string>
</property>
<property name="text">
<string>编辑文件</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_savefile">
<property name="geometry">
<rect>
<x>280</x>
<y>70</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="toolTip">
<string>保存文件,保存到输入框的绝对路径,使用base64 -d保存</string>
</property>
<property name="text">
<string>保存文件</string>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>快速执行</string>
</attribute>
<widget class="QPushButton" name="pushButton_restartapache2">
<property name="geometry">
<rect>
<x>20</x>
<y>10</y>
<width>111</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>快速重启Apache2</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_quick_open_apache_proxy">
<property name="geometry">
<rect>
<x>140</x>
<y>10</y>
<width>121</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="text">
<string>快速开启Apache反代</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_updateaudidt">
<property name="geometry">
<rect>
<x>20</x>
<y>40</y>
<width>71</width>
<height>23</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>8</pointsize>
</font>
</property>
<property name="text">
<string>上传Auditd</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_restartaudit">
<property name="geometry">
<rect>
<x>90</x>
<y>40</y>
<width>111</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>快速重启Audit</string>
</property>
</widget>
</widget>
</widget>
<widget class="QTabWidget" name="tabWidget_2">
<property name="geometry">
<rect>
<x>425</x>
<y>10</y>
<width>501</width>
<height>171</height>
</rect>
</property>
<property name="currentIndex">
<number>2</number>
</property>
<widget class="QWidget" name="tab_6">
<attribute name="title">
<string>笔记1</string>
</attribute>
<widget class="QTextEdit" name="textEdit_1">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>491</width>
<height>141</height>
</rect>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_7">
<attribute name="title">
<string>笔记2</string>
</attribute>
<widget class="QTextEdit" name="textEdit_2">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>491</width>
<height>141</height>
</rect>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_8">
<attribute name="title">
<string>笔记3</string>
</attribute>
<widget class="QTextEdit" name="textEdit_3">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>461</width>
<height>141</height>
</rect>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_9">
<attribute name="title">
<string>笔记4</string>
</attribute>
<widget class="QTextEdit" name="textEdit_4">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>491</width>
<height>141</height>
</rect>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_11">
<attribute name="title">
<string>笔记5</string>
</attribute>
<widget class="QTextEdit" name="textEdit_5">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>491</width>
<height>141</height>
</rect>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_12">
<attribute name="title">
<string>笔记6</string>
</attribute>
<widget class="QTextEdit" name="textEdit_6">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>491</width>
<height>141</height>
</rect>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_13">
<attribute name="title">
<string>笔记7</string>
</attribute>
<widget class="QTextEdit" name="textEdit_7">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>501</width>
<height>141</height>
</rect>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_15">
<attribute name="title">
<string>笔记8</string>
</attribute>
<widget class="QTextEdit" name="textEdit_8">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>491</width>
<height>141</height>
</rect>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_10">
<attribute name="title">
<string>笔记9</string>
</attribute>
<widget class="QTextEdit" name="textEdit_9">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>491</width>
<height>141</height>
</rect>
</property>
</widget>
</widget>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>190</y>
<width>861</width>
<height>25</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="pushButton_findstr">
<property name="text">
<string>查找</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_findstr"/>
</item>
<item>
<widget class="QPushButton" name="pushButton_cmd">
<property name="text">
<string>执行</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_dockerexec">
<property name="text">
<string>执行docker内命令</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_savenote">
<property name="text">
<string>保存全部笔记</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>300</x>
<y>0</y>
<width>80</width>
<height>80</height>
</rect>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap>Designer.png</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
<widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>7</y>
<width>281</width>
<height>54</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>IP:Port</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="lineEdit_ipandport">
<property name="inputMask">
<string/>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="pushButton_login">
<property name="text">
<string>登录</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<widget class="QSplitter" name="splitter_2">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<widget class="QLabel" name="label_2">
<property name="text">
<string>User:Pwd</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_usernameandpasswd">
<property name="inputMask">
<string/>
</property>
<property name="text">
<string/>
</property>
</widget>
</widget>
</item>
</layout>
</widget>
<widget class="QTabWidget" name="tabWidget_3">
<property name="geometry">
<rect>
<x>930</x>
<y>10</y>
<width>401</width>
<height>171</height>
</rect>
</property>
<property name="toolTip">
<string>可适用于操作文件中的保存</string>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tab_3">
<attribute name="title">
<string>快速打开</string>
</attribute>
<widget class="QPushButton" name="pushButton_logindefs">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>111</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>/etc/login.defs</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_crontab">
<property name="geometry">
<rect>
<x>10</x>
<y>40</y>
<width>111</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>/etc/crontab</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_profile">
<property name="geometry">
<rect>
<x>10</x>
<y>70</y>
<width>111</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>/etc/profile</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_rclocal">
<property name="geometry">
<rect>
<x>10</x>
<y>100</y>
<width>111</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>/etc/rc.local</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_etcinitdmysql">
<property name="geometry">
<rect>
<x>130</x>
<y>10</y>
<width>111</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>/etc/init.d/mysql</string>
</property>
</widget>
</widget>
<widget class="QWidget" name="tab_14">
<attribute name="title">
<string>中间件或数据库等快速打开</string>
</attribute>
<widget class="QPushButton" name="pushButton_mycnf">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>111</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>/etc/my.cnf</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_httpd">
<property name="geometry">
<rect>
<x>10</x>
<y>40</y>
<width>111</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>httpd.conf</string>
</property>
</widget>
</widget>
</widget>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>