-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathChangeLog
1104 lines (1038 loc) · 49.2 KB
/
ChangeLog
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
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2009-08-22 Francesco Piccinno <[email protected]>
* umit/pm/gui/widgets/propertygrid.py
umit/pm/backend/scapy/__init__.py
umit/pm/higwidgets/hignetwidgets.py:
- Adding IPv6 editor.
* umit/pm/gui/widgets/propertygrid.py
umit/pm/gui/tabs/propertytab.py
umit/pm/backend/scapy/wrapper.py
umit/pm/manager/preferencemanager.py:
- Now PropertyTab has a font option.
- Readapting existing code to the new structure as explained at:
http://trac.umitproject.org/wiki/devguide#Namespaces
2009-08-16 Francesco Piccinno <[email protected]>
* PM/Core/AuditUtils.py
audits/audittester.py
PM/Manager/AuditManager.py:
- Now we accept datalink as argument.
* audits/nose-test.sh:
- Now we accept an argument to test a single file.
* audits/active/arpcachepoison/sources/main.py
audits/active/arpping/sources/main.py
audits/active/dnsspoof/sources/main.py
audits/active/icmpredirect/sources/main.py
audits/active/injector/sources/main.py
audits/active/synflood/sources/main.py
audits/passive/ethernet/sources/main.py
audits/passive/fingerprint/sources/main.py
audits/passive/ftp/sources/main.py
audits/passive/http/sources/main.py
audits/passive/icmp/sources/main.py
audits/passive/ip/sources/main.py
audits/passive/profiler/sources/main.py
audits/passive/tcp/sources/main.py
audits/passive/udp/sources/main.py
audits/passive/wifi/sources/main.py:
- Adding description and references.
- Wifi decoder fixed.
* PM/share/locale/it/it.po
PM/share/locale/packetmanipulator.pot
PM/share/locale/it/LC_MESSAGES/packetmanipulator.mo:
- Updated catalog and its translation.
* PM/Gui/Core/MainWindow.py:
- Codename changed.
* PM/Backend/Scapy/translator.py:
- Add radiotap and wifi protocol aliases.
* setup.py
scripts/windows/setup.py:
- Including generation and building of plugins.
- Audits are built under share/PacketManipulator/audits.
- Fixing documentation inclusion.
* scripts/i18n/pygettext.py:
- Fixing the POT header generation.
* PM/Gui/Core/MainWindow.py:
- Setting transiet for all dialogs opened.
- Fixing AboutDialog
* PM/Backend/Scapy/wrapper.py:
- Using more reasonable message to warng of scapy missing.
- Patch select only on posix systems.
* plugins/geoip/sources/main.py
plugins/traceroute/sources/libtrace/tracert.py
plugins/traceroute/sources/main.py:
- Plugins now are working again.
* PM/Gui/Sessions/Base.py
PM/Gui/Widgets/MultiPaneds.py:
- Fixing bug in removing and adding perspectives.
* PM/Gui/Core/BugReport.py
PM/Gui/Core/BugRegister.py:
- Including traceback in the textview.
- Fixing version and milestone.
* PM/Gui/Core/MooPaned.py
PM/Gui/Core/FallbackPaned.py:
- Fixing docking libraries.
* PM/PacketManipulator:
- Fixing launcher.
* MANIFEST.in:
- Include missing pixmaps.
* PM/Core/Const.py:
- Constants fixed.
* ubuntu
ubuntu/debian
ubuntu/debian/PacketManipulator.1
scripts/linux/ubuntu/debian/packet-manipulator-plugins.install
scripts/linux/ubuntu/debian/packet-manipulator.install
ubuntu/debian/control
ubuntu/debian/files
ubuntu/debian/compat
ubuntu/debian/menu
ubuntu/debian/install
ubuntu/debian/changelog
ubuntu/debian/packet-manipulator.desktop
ubuntu/debian/packet-manipulator-root.desktop
ubuntu/debian/copyright
ubuntu/debian/docs
ubuntu/debian/rules
ubuntu/debian/pycompat
ubuntu/generate_deb.sh:
- Scripts to generate DEB package for debian and ubuntu.
- Plugins are now in a separate package.
* scripts/linux/fedora/generate_rpm.sh:
- Script to generate RPM file.
- End user Audits framework documentation added.
- PacketManipulator 0.3 released - codename sneaky whisper
2009-08-15 Francesco Piccinno <[email protected]>
* audits/passive/tcp/sources/main.py:
- Fixing debug messages.
* audits/active/arpping/sources/main.py:
- Adding a new functionality to scan the current network segment for
the presence of active hosts using ARP ping packets. This could be
used by pressing scan button inside HostListTab.
- Now ARPPing is an operation like the rest of plugins.
- Messages are printed directly into AuditOutputPage.
* audits/active/icmpredirect/sources/main.py:
- Fixing wrong constants use.
* audits/active/injector/sources/main.py:
- Fixing various bugs in injector.
* audits/active/synflood/sources/main.py:
- Fixed message.
* MANIFEST.in:
- Updated to respect the new structure.
* PM/Gui/Pages/AuditOutputPage.py:
- Checking for log file overwrite.
- Fixing a bug in button-press event handler.
- Autoscrolling and solved problems with threads.
- More icons.
* PM/Gui/Tabs/HostListTab.py:
- Now scan button is not dummy.
* PM/Backend/Scapy/Context/Audit.py:
- Adding get_netmask1() and get_netmask2() to AuditContext.
- Adding onsend() callback to the SendWorker class and to the various
AuditContext methods() like s_l{2,3,b}, si_l{2,3,b}, sr_l{2,3,b}.
* PM/Backend/Scapy/wrapper.py:
- Patching the select() used by scapy method with a custom one that
handles EINTR. This should solve:
select.error(4, 'Interrupted system call.')
* PM/Backend/Scapy/packet.py:
- Adding get_rawtime() method to MetaPacket.
* PM/Backend/Abstract/BaseContext/Audit.py:
- Add missing methods to the interface.
* PM/Gui/Dialogs/Preferences.py
PM/Manager/PreferenceManager.py:
- Adding autoscroll option for AuditOtputPage.
* PM/Gui/Sessions/Base.py:
- Fixed remove_perspective() method.
* PM/Gui/Core/MainWindow.py:
- Fixed unbind_session() method.
* plugins/http-analyzer/sources/main.py:
- Fixed stop() method.
* plugins/cfields-explorer/sources/main.py:
- Adding a simple plugin for debug purposes.
* audits/setup-autogen.py:
- Fixed the creation of setup.py files.
* audits/passive/http/sources/main.py
audits/passive/profiler/sources/main.py
audits/passive/tcp/sources/main.py
audits/passive/fingerprint/sources/main.py
audits/passive/icmp/sources/main.py
audits/passive/ip/sources/main.py
audits/passive/udp/sources/main.py
audits/passive/ftp/sources/main.py
audits/passive/ethernet/sources/main.py:
- Fixed stop() method.
* PM/share/locale/it/it.po
PM/share/locale/packetmanipulator.pot
PM/share/locale/it/LC_MESSAGES/packetmanipulator.mo:
- Updated pot catalog and IT translation.
- Various bugs fixed.
- GUI improvements.
- Scan of the network segment implemented in ARPPing audit plugin.
2009-08-14 Francesco Piccinno <[email protected]>
* audits/run-tester.sh:
- Adjusting PYTHONPATH
- Using audittester.py instead of old attacktester.py
* audits/passive/tcp/sources/main.py
audits/passive/fingerprint/sources/main.py
audits/passive/icmp/sources/main.py
audits/passive/ip/sources/main.py:
- I18N fixes.
- Bug fixing.
* audits/passive/udp/sources/main.py:
- Add new UDP decoder with checksum check of UDP packets and a simple
injector function (not tested).
* audits/active/dnsspoof/sources/main.py:
- Add new DNSSpoof plugin that could spoof MX, A, PTR and WINS records.
* audits/active/injector/sources/main.py:
- Commented out debug code.
- Implemented missing methods.
* audits/active/synflood/sources/main.py:
- Removed unused code.
* PM/Gui/Pages/SniffPage.py:
- Add redraw() method. Now selected rows are redrawed correctly after
packet changes.
* PM/Gui/Pages/AuditPage.py:
- Fixed 80 columns line wrap.
- Fixed a bug when the user clicks on clear.
- Now the treeview is packed inside gtk.ScrolledWindow.
* PM/Gui/Pages/PacketPage.py:
- Fixed a bug when the user tries to add a packet in the protocol
hierarchy widget within an empty SequenceSession.
* PM/Gui/Pages/AuditOutputPage.py:
- New shiny GUI, with a filter widget to search for interesting records.
- Multiple log records could be selected and copied in the clipboard, or
saved to a file (XML file format or plain text available).
* PM/Gui/Plugins/PathPage.py:
- Removed trailing spaces.
- Update audit page when the paths are modified.
* PM/Gui/Plugins/AuditPage.py:
- Add a InfoPage showing informations related to the selected plugins.
* PM/Gui/Plugins/Containers.py:
- Changing default icons for PassiveAudits and ActiveAudits.
* PM/Gui/Dialogs/Preferences.py
PM/Manager/PreferenceManager.py:
- Font and timeformat options added for AuditOutputPage.
* PM/Gui/Sessions/SniffSession.py:
- Fixed a bug.
* PM/Gui/Widgets/PropertyGrid.py:
- Fixed a bug with Float fields.
- Add MACEditor.
* PM/Gui/Widgets/FilterEntry.py:
- Trailing spaces and 80 columns line wraps.
* PM/Gui/Core/Icons.py:
- Fixing a bug with icon names having underscore.
* PM/Gui/Tabs/PropertyTab.py:
- Behaviour fix.
* PM/Backend/Scapy/translator.py:
- Adding udp, dns, dnsqr, dnsrr packet aliases.
* PM/Backend/Scapy/Context/Audit.py:
- Implementing get_mtu function for posix oses. Leaving it dummy for
windows.
- Add missing get_ip2(), get_mac2(), get_mtu(), get_mtu1(), get_mtu2().
- Summary is correctly setted now.
- Stop is correctly implemented now.
* PM/Backend/Scapy/__init__.py:
- MAC field added.
* PM/Backend/Scapy/wrapper.py:
- Fixing get_field_size() function.
* PM/Backend/Scapy/packet.py:
- set_field() now accepts also MetaPacket.
- set_field() and get_field() now accepts arguments with 2 inderections.
* PM/Backend/Abstract/BaseContext/Audit.py:
- Adding missing methods to the interface.
- Resetting file_types class attribute. This context could not be saved.
* PM/Core/Logger.py:
- Removing unused code.
* PM/Core/Atoms.py:
- Add strip_tags() function to strip HTML tags.
* PM/Manager/AuditManager.py:
- Various bugs fixed.
* PM/higwidgets/hignetwidgets.py:
- Generalization of HIGIpEntry into HIGGenericEntry and creating
HIGMacEntry for editing MAC fields.
- DNS spoof plugin added.
- UDP decoder added.
- Various bugs fixed.
2009-08-11 Francesco Piccinno <[email protected]>
* plugins/http-analyzer/sources/main.py
audits/passive/http/sources/main.py:
- Fixing a regression. Now http-analyzer plugin works again.
* PacketManipulator:
- Adding PM_LOGEXCLUDE enviroment option to filter useless debug
messages.
* audits/active/icmpredirect/sources/main.py:
- Adding icmpredirect active audit plugin.
* audits/active/synflood/sources/main.py:
- Adding synflood active audit plugin.
* PM/Gui/Pages/AuditPage.py:
- Implemented a new AuditTree to manage currently active audits
from a nice TreeView like in OperationsTabs.
* PM/Gui/Pages/AuditOutputPage.py:
- This file contains widgets used to report status messages coming
from online audits.
* PM/Gui/Sessions/AuditSession.py:
- Adding OutputPage perspective to the AuditSession.
* PM/Core/Logger.py:
- PM_LOGEXCLUDE functionality added to Logger.
* PM/Core/Const.py:
- More constants added.
* PM/Core/AuditUtils.py:
- Netmask class and utilities functions added.
- Add AuditOperation class that could be used to create sophisticated
audits.
* PM/Manager/AuditManager.py:
- Adding missing remove_decoder_hook function.
- Various bugs fixed
- TCP syn flooding implemented as audit plugin.
- ICMP Redirect MITM attack implemented as audit plugin.
- Various GUI improvements.
2009-08-09 Francesco Piccinno <[email protected]>
* plugins/schemas/AttackPlugins.xsd
audits/offline/http/sources/main.py
audits/offline/profiler/sources/main.py
audits/offline/profiler/data/finger.mac.db
audits/offline/tcp/sources/main.py
audits/offline/fingerprint/sources/main.py
audits/offline/fingerprint/data/finger.os.db
audits/offline/icmp/sources/main.py
audits/offline/ip/sources/main.py
audits/offline/ftp/sources/main.py
audits/offline/ethernet/sources/main.py
audits/offline/wifi/sources/main.py
audits/online/arpping/sources/main.py
audits/online/injector/sources/main.py
audits/online/arpcachepoison/sources/main.py
audits/audittester.py
audits/setup-autogen.py
audits/passive/http/sources/main.py
audits/passive/profiler/sources/main.py
audits/passive/tcp/sources/main.py
audits/passive/fingerprint/sources/main.py
audits/passive/icmp/sources/main.py
audits/passive/ip/sources/main.py
audits/passive/ftp/sources/main.py
audits/passive/ethernet/sources/main.py
audits/passive/wifi/sources/main.py
audits/active/arpping/sources/main.py
audits/active/injector/sources/main.py
audits/active/arpcachepoison/sources/main.py
PM/Gui/Pages/AuditPage.py
PM/Gui/Plugins/PluginPage.py
PM/Gui/Plugins/Tree.py
PM/Gui/Plugins/AuditPage.py
PM/Gui/Plugins/AttackPage.py
PM/Gui/Plugins/Containers.py
PM/Gui/Plugins/Engine.py
PM/Gui/Plugins/Window.py
PM/Gui/Dialogs/Interface.py
PM/Gui/Dialogs/NewAudit.py
PM/Gui/Dialogs/Preferences.py
PM/Gui/Sessions/AuditSession.py
PM/Gui/Core/MainWindow.py
PM/Gui/Core/App.py
PM/Gui/Tabs/OperationsTab.py
PM/Gui/Tabs/MainTab.py
PM/Backend/Scapy/Context/__init__.py
PM/Backend/Scapy/Context/Sniff.py
PM/Backend/Scapy/Context/Audit.py
PM/Backend/Scapy/Context/Static.py
PM/Backend/Abstract/BaseContext/Sniff.py
PM/Backend/Abstract/BaseContext/Audit.py
PM/Backend/Abstract/BaseContext/Static.py
PM/Backend/Abstract/Context/__init__.py
PM/Backend/__init__.py
PM/Core/NetConst.py
PM/Core/Providers.py
PM/Core/Const.py
PM/Core/AuditUtils.py
PM/Manager/PreferenceManager.py
PM/Manager/AuditManager.py:
- Renaming to AuditFramework.
- Bug fixing in Injector and TCP decoder.
- Refactoring all the code to respect new AuditFramework nomenclature:
- Attacks are now audits organized in passive and active.
- OfflinePlugin and OnlinePlugin are now PassiveAudit and ActiveAudit.
2009-08-04 Francesco Piccinno <[email protected]>
* attacks/online/injector/sources/main.py:
- Removing unused ConnectionsList (forgot to remove it in the first
commit).
* PM/Manager/AttackManager.py:
- Adding injectors and various methods like add_injector(),
remove_injector() and get_injector() to manage injection of the
packets in active sessions.
- Now AttackDispatcher accepts an AttackContext as argument in the
constructor.
- Adding a primitive way to inject packets in feed() method. We make
use of cfields to control the send. So I've added inj::l4proto,
inj::flags, inj::payload, inj::data cfields to control and manage
the injection. The code is still buggy and incomplete. I need more
time to tune the TCP decoder. At this point we're able only to inject
various packets and then lose the total control over the TCP flow.
* PM/Core/NetConst.py:
- Add INJ_FORWARDED to check that the packet sniffed on the wire is
one of ours injected set.
* PM/Backend/Scapy/packet.py:
- Add reset_field() method to reset the value of a field in a packet.
Used to recompute checksum in various plugins.
* PM/Backend/Scapy/Context/Attack.py:
- Add get_mtu(), get_ip1(), get_mac1() method in order to obtain the
MTU, the IP address and the MAC address of the first NIC.
- Packets with equal MAC address and different source IP are marked as
INJ_FORWARDED before passing them to feed().
- Fixing a bug with negative repeat argument.
* attacks/online/arpcachepoison/sources/main.py:
- ARP cache poison attack added.
* attacks/online/injector/sources/main.py:
- Now injector plugin could see data in transit between TCP sessions
without CPU burning.
- Active connections could be killed or we could inject data within.
- The data could be taken from a file or typed with keyboard in a
TextView.
- The file contains debug code and need to be cleaned up. The unused
code should be remove when the injection will be complete and fully
working.
* attacks/offline/ip/sources/main.py:
- Now IP decoder provides an injector routine that recompute checksum or
create a new IP MetaPacket that will held injected data.
* attacks/offline/tcp/sources/main.py:
- Various bug fixed due to wrong Buffer usage.
- The inject_cb is dropped leaving space to the new injection
infrastructure.
- Add _inject_tcp() method to manage injection of TCP fragments in an
active connection.
- Bug fixing.
- First draft of injection.
- ARP cache poison plugin added.
2009-07-27 Francesco Piccinno <[email protected]>
* attacks/offline/tcp/sources/main.py:
- Moving connection enumeration in NetConst module.
- Adding get_source(), get_dest(), get_bytes() method to TCPStream
objects.
- Reassembler now makes use of an inject callback to manage packet
injection and modification.
* attacks/online/arpping/sources/main.py:
- Add simple ARP ping online plugin that show how the online
infrastructure is organized. It simply send who-has arp packet
and wait for the reply by using deferred style callback provided
by the new AttackContext.
* attacks/online/injector/sources/main.py:
- Add general purpose injector online plugin.
- It provides a tree view where you could view active connections
and kill a selected for the moment. The entire part relative to
the real injection is missing but is going to be implemented soon.
* README:
- Fixing trailing spaces and correcting the site.
* PM/Gui/Core/MainWindow.py:
- The attack menu is set sensitive only if the active page is an
AttackSession.
- Add new public function start_new_attack() used by App.py.
* PM/Gui/Core/App.py:
- Now we have an '-a' command line option to launch an attack.
* PM/Backend/Scapy/translator.py:
- Adding 'arp' alias for ARP protocol.
* PM/Backend/Scapy/Context/Attack.py:
- Add a SendWorker class to manage the send of the packets trough
the thread pool.
- Now we have si_l{2,3,b}, s_l{2,3,b} and sr_l{2,3,b} to send packets
trough the sockets opened for the attack.
- s_* and sr_* functions accept deferred style callbacks.
- Everything is consumed in a thread pool so make sure to isolate your
code with mutexes if necessary.
* PM/Backend/Scapy/packet.py:
- Add missing __div__ operator to concatenate various packets together.
- Add hashret() and answers() method to manage the replies.
- Add new() classmethod to create new packets.
- Implemented set_field() method.
* PM/Core/NetConst.py:
- Rearranging INJ_* constants and adding CONN_* from tcpdecoder plugin.
* PM/Manager/AttackManager.py:
- Adding attack_sess parameter to execute_attack()
- Various fix.
- Online infrastructure finished.
- ARPPing plugin added.
- Injector plugin added but still incomplete.
2009-07-24 Francesco Piccinno <[email protected]>
* PacketManipulator
- Setting PM_NOPSYCO to avoid using psyco module while developing.
* PM/Gui/Sessions/AttackSession.py:
- First draft of AttackSession that uses the AttackPage explained below.
* PM/Gui/Pages/AttackPage.py:
- First draft of the AttackPage. We use the OperationsTree to organize
the various attacks that could run on AttackContext.
* PM/Gui/Dialogs/Preferences.py:
- Add the capmethod option also for the AttackContext.
* PM/Gui/Dialogs/NewAttack.py:
- Avoid to return the second interface if the gtk.ComboBox is not
sensitive.
* PM/Gui/Sessions/SniffSession.py
PM/Gui/Sessions/SequenceSession.py:
- Removing unused class attribute.
* PM/Gui/Widgets/Interfaces.py:
- Fixed a regression introduced by the addition of add_auto parameter.
* PM/Gui/Widgets/MultiPaneds.py:
- Implemented automatic resize of the paned's children. Really useful.
* PM/Gui/Widgets/Expander.py:
- Fixed indentation problems and introduce activate signal used in
MultiPaneds.py file (described above).
* PM/Gui/Core/MainWindow.py:
- Fixed a bug due to __on_disconnect_proxy.
- New attack menu entry is not dummy anymore.
* PM/Gui/Core/Views.py:
- Leaving a reasonable amount of free pixels as borders.
* PM/Gui/Tabs/OperationsTab.py:
- Implemented AttackOperation.
* PM/Gui/Tabs/MainTab.py:
- Introduced create_attack_session() method.
* PM/Backend/Scapy/Context/Sniff.py:
- Fixed ''_socketobject has no attribute datalink' bug.
* PM/Manager/PreferenceManager.py
PM/Backend/Abstract/BaseContext/Attack.py:
- Introduced capmethod in AttackContext.
* PM/Backend/Scapy/Context/Attack.py:
- First implementation of Scapy AttackContext.
- General bug fixing.
- First implemenntation of AttackContext
2009-07-23 Francesco Piccinno <[email protected]>
* PM/Gui/Tabs/MainTab.py:
- Fixing the background color of gtk.EventBox to avoid wrong colors
on dark color gtk themes.
* attacks/offline/http/sources/main.py:
- Fixed a bug related to username cfield not correctly exposed.
* attacks/offline/profiler/sources/main.py:
- Moved out Account, Port, Profile interfaces to Providers.py file
to have a clear way to communicate with PM GUI.
- Implemented various functions like info_cb and populate_cb used
to communicate with the new HostListTab.
- Fixed various bugs.
* attacks/offline/tcp/sources/main.py:
- Preparing TCPDecoder plugin for injection purpose.
- Dropped out unused code.
- Added a new paramater to the listener callback (used to pass the
receiving HalfStream if there's data to add).
- Avoid to mantain unused data if it's not collected.
* PM/Core/NetConst.py:
- Add specific constants used to implement injection on decoders.
* attacks/attacktester.py:
- Now it works also with online directory.
* PM/Gui/Dialogs/Routes.py
PM/Backend/Scapy/Context/__init__.py:
- Indentation and column wraps fixes.
* PM/Gui/Core/MainWindow.py:
- Add a specific menu for the attacks.
- Add a menu entry to create an AttackContext.
- Add the HostListTab to the MainWindow interface.
- Tooltips of the various menuitem are now showed in the statusbar.
- Implemented register_attack_item and deregister_attack_item to add and
remove attack menu entries.
* PM/Manager/PreferenceManager.py:
- Add a new element to the preferences to manage the HostListTab
visibility.
* PM/Gui/Tabs/HostListTab.py:
- This is a tab to collect a list of active hosts in a sniffing session.
- The hosts are grouped by interfaces.
- There are 3 buttons: a scan button to send probe packets to a
specific interface and collect active hosts, a refresh button to
refresh the list, and a information button to see additional
information related to the selected hosts like active services,
account collected, remote OS, MAC vendor, distance in hop, etc.
* PM/Core/Providers.py:
- Simple module that holds interfaces used by attack plugins to
communicate with PM GUI and viceversa.
* PM/Manager/AttackManager.py:
- Add a simple Forwarder class to manage reinjection of frames on
a target interface (Not used now. It's only a draft).
- Now we use __inputs__ to deal with GUI inputs for online attacks. The
input dialog is created on demand by looking at __inputs__, in order
to simplify the development phase.
- The developer now has remove_menu_entry(), add_menu_entry() to place
menu entries in the PM GUI.
- The interaction with the GUI is documented in the docstring and the
start point to launch the attack is execute_attack().
* PM/Gui/Plugins/Containers.py:
- Now we produce also offline attacks Manifest.xml.
* PM/Gui/Dialogs/NewAttack.py:
- Add a new dialog to create a new AttackContext, letting the user chose
the interfaces where the attack will take place.
* PM/Gui/Widgets/StatusBar.py:
- Fixed a bug and implemented the missing pop() method.
* PM/Gui/Widgets/Interfaces.py:
- Now the 'Auto' entry could be inserted at discretion by using add_auto
bool parameter.
* PM/Backend/__init__.py
PM/Backend/Abstract/Context/__init__.py
PM/Backend/Abstract/BaseContext/Attack.py:
- Add a new AttackContext.
* PM/Core/AttackUtils.py:
- Add new string utilities functions like is_ip() and is_mac() that
could be used by various plugins.
- Various bug fixes.
- Introducing HostListTab.
- Preparing the environment for the online attacks.
2009-07-13 Francesco Piccinno <[email protected]>
* plugins/http-analyzer/sources/main.py:
- Now HTTP analyzer can plot numeric cookies for further analysis.
This is useful when the user needs to check if the next cookie is
predictable.
- All the plotting is done in webkit webview using protovis library
that generates an SVG image starting from javascript code. The
library could be found at http://vis.stanford.edu/protovis/
* plugins/schemas/AttackPlugins.xsd:
- Better reorganization of the various elements.
- Merge offline and online attacks into a single one.
- Added configurations element so we can easilly expose attack options.
- Dropped out list element to simplify the schema structure.
* attacks/offline/tcp/sources/main.py:
- Fixed 'No mem' bug reported by luis.
* attacks/offline/http/sources/main.py
attacks/offline/ip/sources/main.py
attacks/offline/ftp/sources/main.py
attacks/offline/tcp/sources/main.py
attacks/offline/icmp/sources/main.py
attacks/offline/ethernet/sources/main.py
attacks/offline/profiler/sources/main.py
attacks/offline/fingerprint/sources/main.py:
- Removed register_options methods. Now options are exposed at module
level. This makes possible to autogenerate the setup.py in a simple
way and expose options also to the GUI without having to load the
plugins.
* attacks/setup-autogen.py:
- Autogeneration process now takes care of attacks attribute to generate
a setup.py that could be used to create in a simple way a
understandable attack's Manifest.xml file as we have defined in the
schema.
* PM/Gui/Plugins/Containers.py:
- Implemented the capability to save and load Manifest.xml for attacks.
* PM/Gui/Plugins/AttackPage.py:
- First implementation of attack plugins GUI.
* PM/Gui/Plugins/Engine.py:
- Fixed a stupid bug.
* PM/Gui/Plugins/AttackPage.py:
- Now we have an attack tab where the user could load, find and
configures various attacks with a friendly UI.
* PM/Gui/Plugins/PluginPage.py:
- Plugin are now hidden in the plugin page and only showed in update
process.
* scripts/windows/setup.py
PM/Core/Const.py
setup.py:
- Renamed pixmaps directory from 'umit' to 'pm'.
* PM/Gui/Dialogs/Preferences.py:
- Now there's a gtk.CellRendererCombo to show up the available cfields
permitting to the user a more easier configuration of the sniff
columns. Implemented also a tooltip showing the description of the
cfield.
* PM/Core/Const.py
PM/Manager/AttackManager.py:
- Exposing cfields type and description to the GUI of PM.
* nose-tests.sh
run-tester.sh:
- Adding trap check to bash.
* offline/http/sources/main.py:
- Now HTTP dissector could work also without TCP reassembler.
* offline/fingerprint/sources/main.py:
- Fixing a regression.
* PM/Gui/Core/MainWindow.py
PM/Manager/AttackManager.py:
- Now attack configurations are loaded and saved to attacks-conf.xml
file in PM_HOME. To do that I've implemented two classes that make
use of xml SAX parser: ConfigurationsLoader and ConfigurationsWriter.
* PM/Backend/Scapy/Context/Sniff.py
PM/Backend/Scapy/Context/Static.py:
- Now SniffContext and StaticContext understands linktype.
- Bug fixing.
- GUI improvements.
- CFields are now globally organized and exposed to the GUI.
- Attacks configurations are now stored to attacks-conf.xml file.
2009-07-07 Francesco Piccinno <[email protected]>
* plugins/http-analyzer/sources/main.py:
- Add HTTP analyzer plugin that exploits cfields setted from
http dissector attack. Cookie analyzer is not implemented yet.
- It could show HTTP pages in transit like also images and flash
videos, etc.
* attacks/offline/http/sources/main.py:
- HTTP dissector is finished. It lacks only of passport sniffing.
- It uses the new shiny TCP flow reassembler.
- Fully support to the HTTP request/responses and chunked transfers.
- NTLM / Basic / Digest sniffing is implemented.
- Form extraction of username/password is implemented and uses
username_fields and password_fields variable to have the maximum
flexibility.
- UserAgent, language and others information captured are exposed
in cfields.
* attacks/offline/profiler/sources/main.py
attacks/offline/fingerprint/sources/main.py
attacks/offline/ip/sources/main.py
attacks/setup-autogen.py
PM/Gui/Pages/SniffPage.py
PM/Gui/Plugins/Core.py
PM/Gui/Core/MainWindow.py:
- Minor bugfix.
* attacks/offline/tcp/sources/main.py:
- Fully working TCP reassembler. It's a pure userland TCP/IP stack
implementation written entirely in python. It performs better and
can handle TCP fragmentation. It's a libnids port with minor
improvements.
- We support also ICMP messages parsing.
* PM/Backend/Scapy/packet.py:
- Add another method get_datetime() to the MetaPacket object used by
TCP reassembler module.
* PM/Gui/Dialogs/Interface.py
PM/Gui/Tabs/OperationsTab.py
PM/Gui/Dialogs/Preferences.py
PM/Manager/PreferenceManager.py
PM/Backend/Scapy/Context/Static.py:
- Added the possibility to use offline attacks also on pcap files.
* PM/Gui/Sessions/Base.py
PM/Gui/Sessions/SniffSession.py
PM/Gui/Sessions/SequenceSession.py
PM/Backend/Abstract/BaseContext/Static.py:
- Now we could have several editors and containers. This is really
usefull while developing plugins.
- Bug fixes.
- HTTP dissector complete.
- TCP reassembler complete.
- HTTP analyzer plugin started.
2009-06-29 Francesco Piccinno <[email protected]>
* attacks/offline/http/sources/main.py:
- First implementation of HTTP decoder/dissector.
* attacks/offline/profiler/sources/main.py:
- This is a traffic profiler and collector offline attack. This
includes:
- MAC fingerprint with the help of a db file.
- Service banner collector.
- Account collector.
- Hop collector.
- Host type identification (router / local / remote).
* attacks/offline/profiler/data/finger.mac.db:
- MAC database file derived from manuf of wireshark.
* attacks/offline/tcp/sources/main.py:
- Fixed a bug showing wrong checksum message on truncated packets.
- Add a reassembler class. Only a skeleton the implementation is
missing and should be add soon.
- Enabled dissectors running from this stage trought a configuration
variable.
* attacks/offline/icmp/sources/main.py:
- Add ICMP decoder that uses IP reassembling exposed in IP decoder
trough cfields.
* attacks/offline/ftp/sources/main.py:
- Finished FTP dissector implementation (but we don't use reassembly
so bogus or fragmented packets can not be handled).
* attacks/pcap-tests/ftp-login.pcap
attacks/pcap-tests/wrong-checksum-icmp.pcap
attacks/pcap-tests/fragmented-ping.pcap:
- Add pcap test files used by various plugins for testing.
* PM/Manager/SessionManager.py:
- Implement a simple SessionManager used by FTP plugin.
- Bug fixing.
- FTP dissector.
- ICMP decoder.
- Profiler attack.
- Initial work on HTTP dissector and TCP stream reassembling.
2009-06-22 Francesco Piccinno <[email protected]>
* attacks/offline/fingerprint/sources/main.py:
- Now we use a remote_os cfield to set the fingerprint on a packet.
- Renamed various classes.
* attacks/offline/ip/sources/main.py:
- Now fragmented IP packets could be reassembled.
- The results of payload reassemble phase it's available as
reassemble_payload cfield.
- Added various tests for fragmentation as doctest strings.
- Introduced reassemble_max_fraglist and reassemble_max_fragments to
control the behaviour and limits of reassemble phase.
- No further checks if we have truncated packets due to low snaplen.
* attacks/setup-autogen.py:
- Add a simple setup.py autogenerator for attacks. This script could
also build automatically attacks. I've used to build attacks as
plugin and then test them directly into PM.
* PM/Gui/Pages/SniffPage.py
PM/Manager/PreferenceManager.py:
- Now sniff page could have custom columns. Columns are defined in
gui.maintab.sniffview.columns variable as list of strings separated
by a comma. The structure is pretty simple:
<name>|<size>|<getter>
Where `name` is the name of the column, `size` the pixel size as
integer and getter is a string representing a cfield or a method
of MetaPacket (that could have `get_` as prefix or not).
* PM/Gui/Dialogs/Preferences.py:
- Add a page to customize columns trough a comfortable treeview like
wireshark does.
* PM/Gui/Pages/PacketPage.py
PM/Gui/Pages/SequencePage.py:
- Introduced append_packet() method used by callbacks of the context
menu of ProtocolSelector tab.
* PM/Gui/Tabs/ProtocolSelectorTab.py:
- Add a context menu with classical actions to avoid using the drag
and drop if the user doesn't like it. Everything is implemented
with AccelGroup giving to the users the possibility to use also
keyboard shourtcuts to speed up the things.
* PM/Gui/Plugins/PluginPage.py:
- Backport from UmitPlugins (fixed a typo)
- 80 columns line wrap fixed.
* PM/Gui/Plugins/Tree.py
PM/Gui/Plugins/Engine.py
PM/Gui/Core/Views.py
PM/Gui/Tabs/HackTab.py:
- 80 columns line wrap fixed.
* PM/Gui/Dialogs/Interface.py:
- Add `Enable attacks` check button to the dialog.
* PM/Backend/Scapy/Context/Sniff.py:
- Now we could run attacks with AttackDispatcher inside a SniffContext.
* PM/Gui/Sessions/SequenceSession.py
PM/Backend/Scapy/Context/Sequence.py:
- Add the possibility to save the sequence as flatten one (pcap dump)
- GUI improvements.
- General bug fixing.
2009-06-13 Francesco Piccinno <[email protected]>
* attacks/run-tester.sh:
- Simple attacktester.py runner to avoid setting PYTHONPATH at every
run.
* attacks/nose-tests.sh:
- Simple launcher of nosetests to test the attacks by testing the
doctest strings in main.py files.
* attacks/attacktester.py:
- Add interaction with PluginEngine().tree to let the plugin tested
with the attacktester.py to have Core().get_need() fully working
without having the mess to define a setup.py. Really usefull while
developing and testing.
- Add the possibility to change the configuration by passing set
expressions separated with ',' on the command line prefixed with -s.
- Add a --quiet options to avoid printing useless messages.
- Add a --profile option that uses hotshot module to profile the code.
* PM/Core/AttackUtils.py:
- Add a module to holds utilities functions used in various attacks.
- Add attack_unittest() function used by doctest of various attacks.
* attacks/offline/ethernet/sources/main.py
attacks/offline/ip/sources/main.py:
- Switching from coroutine to classic approach.
* attacks/offline/tcp/sources/main.py:
- Switching from coroutine to classic approach.
- Add checksum checking.
* attacks/offline/fingerprint/sources/main.py:
- Add passive fingerprint attack that uses the same approach and db of
ettercap.
* attacks/pcap-tests/wrong-checksum.pcap:
- Create a pcap-test/ file to holds pcap files used for testing
purposes.
- Add a wrong-checksum.pcap file used by tcp, ip and fingerprint
attacks.
* PM/Manager/AttackManager.py:
- Dropped coroutine approach for evident limitation on threaded context
and poor performance. Now we use tradition callable.
- Add Configuration object to centralize and made easier task to manage
configurations from a plugin and his relative methods to the manager.
- Add user_msg() function for communicating message to the user with
the same approach of syslog (severity and facility).
- Add add_decoder_hook() method to the manager to provide a pre/post
hook set mechanism for decoders functions. This is used for example
in the fingerprint offline attack.
- Now AttackPlugin class has 2 additional methods register_options()
and register_hooks().
* PM/Core/Atoms.py:
- Add ordered dict (odict) implementation to the Atoms module.
* PM/Backend/Abstract/BaseContext/Timed.py:
- print replaced with log.debug()
* PM/Backend/Scapy/packet.py:
- Add a cfields attribute to metapacket for managing custom fields
created by attacks.
- Add get_field(), set_cfield(), unset_cfield() functions.
- General bug fixing.
- Implemented custom fields by using a private dictionary.
- Added nosetest architecture to test attacks by using doctest strings to
speed up the development phase.
2009-06-07 Francesco Piccinno <[email protected]>
* PM/Gui/Pages/SniffPage.py:
- Fixing a bug due to check_finished() called on context that doesn't
provide, like Sequence.
* PM/Gui/Pages/PacketPage.py:
- Using get_raw() method instead of get_packet_raw()
* PM/Gui/Pages/SequencePage.py:
- 80 columns line wrap fix.
- Switching to standard tooltip scheme instead of HIGTooltip.
- Implemented a context menu to copy, delete and paste selected packet.
- Fixed text label.
* PM/Gui/Tabs/OperationsTab.py:
- Fixing a bug due to not checking for the load()/save() correctness.
* PM/Backend/Scapy/Context/Sequence.py:
- Various bug fix. Fixing a regression that doesn't set the title
after the file is saved.
* PM/Backend/Scapy/Context/Sniff.py:
- Fixing "9, Bad file descriptor" bug showed when the sniff session
is stopped.
* PM/Backend/Scapy/wrapper.py
PM/Backend/Scapy/serialize.py:
- Various fix.
- Avoid to save not edited properties.
- Using base64 to serialize field values.
* PM/Core/Logger.py:
- Adding a PM_NOCOLORTERM environment variable to avoid the use of
colors on terminal.
* PM/Backend/Scapy/utils.py:
- Now the SendReceiveConsumer and SequenceConsumer could use the
helpers.
* PM/Manager/PreferenceManager.py
PM/Gui/Dialogs/Preferences.py:
- Introducing enumerator variables.
- Add variables to manage the various capmethods.
* PM/Backend/Scapy/packet.py:
- Added a copy() function to MetaPacket.
* PM/Gui/Tabs/ProtocolSelectorTab.py:
- Fix wrong colorized rows when the packets are organized per layer.
* PM/Gui/Core/MainWindow.py:
- Fixing the size of the application by suggesting a default_size
- Various fix to avoid exceptions if page remove are not a Session.
* PM/Gui/Tabs/MainTab.py:
- Sexy stuff like IntroPage introduced.
- Bug fixing.
- UI improvements.
- Helper methods for SendReceiveContext and SequenceContext.
2009-06-02 Francesco Piccinno <[email protected]>
* attacks/offline/wifi/sources/main.py:
- First (dummy) implementation of Wifi decoder module.
* attacks/offline/ethernet/sources/main.py:
- First implementation of Ethernet decoder module.
* attacks/offline/ip/sources/main.py:
- First implementation of IP decoder module.
* attacks/offline/tcp/sources/main.py:
- First implementation of TCP decoder module.
* attacks/attacktester.py:
- Simple script to test the decoders/dissectors/attacks from command
line.
* PM/Backend/Scapy/translator.py:
- Global translator script for fields that does not respect wireshark
visible filters nomenclature. (Used in get_field of MetaPacket)
* PM/Backend/Scapy/wrapper.py:
- Fixing a bug related to the wrong implementation of get_field_size.
* PM/Backend/Scapy/packet.py:
- Add get_raw_layer function.
- Add get_field function that should respect wireshark filters.
- Add get_datalink function to return the correct datalink for the
selected packet.
* PM/Core/NetConst.py:
- Module that contains constants used in AttackFramework implementation.
* PM/Manager/AttackManager.py:
- Real code for AttackFramework idea.
- Add coroutine decorator to create more performant filters, decoders
or dissectors.
- Add Decoder class if the OOP design is preferred.
- Add AttackManager singleton class that contains all the references
to decoders and filters used in PM.
- Add AttackDispatcher class to separate the feed behaviour from the
Singleton class. This lets you call various dispatcher without
having the mess to create a single AttackManager for every invocation.
- Add AttackPlugin as base class and the derived one OfflineAttack,
OnlineAttack.
- Add AttackTester class used for testing purpose.
- Scapy bugfixing.
- First approach of AttackFramework idea.
2009-05-24 Francesco Piccinno <[email protected]>
* PM/Gui/Widgets/Plotter.py
PM/Gui/Widgets/PropertyGrid.py:
- Fixing various bugs due to ConditionalField used by Scapy.
* PM/Backend/Scapy/wrapper.py:
- Added a new function is_showable_field() to manage this situation.
- Various fix for ConditionalField.
* PM/Backend/Scapy/packet.py:
- Added rebuild_from_raw_payload() to MetaPacket.
* PM/Gui/Pages/PacketPage.py:
- Add the possibility to edit the packet directly from the HexView.
* PM/Gui/Widgets/PyGtkHexView.py:
- Added a popup menu for common actions like cut/copy/paste.
* PM/Gui/Plugins/Network.py
PM/Gui/Plugins/PathPage.py
PM/Gui/Plugins/PluginPage.py
PM/Gui/Plugins/Tree.py
PM/Gui/Plugins/Update.py
PM/Gui/Plugins/Containers.py
PM/Gui/Plugins/Engine.py
PM/Gui/Plugins/Window.py
PM/Backend/Scapy/Context/Sniff.py
PM/Backend/Scapy/utils.py:
- Switch to new plugin schema.