MCPcopy Create free account
hub / github.com/secdev/scapy / dump_campaign

Function dump_campaign

scapy/tools/UTscapy.py:401–424  ·  view source on GitHub ↗
(test_campaign)

Source from the content-addressed store, hash-verified

399
400
401def dump_campaign(test_campaign):
402 print("#" * (len(test_campaign.title) + 6))
403 print("## %(title)s ##" % test_campaign)
404 print("#" * (len(test_campaign.title) + 6))
405 if test_campaign.sha and test_campaign.crc:
406 print("CRC=[%(crc)s] SHA=[%(sha)s]" % test_campaign)
407 print("from file %(filename)s" % test_campaign)
408 print()
409 for ts in test_campaign:
410 if ts.crc:
411 print("+--[%s]%s(%s)--" % (ts.name, "-" * max(2, 80 - len(ts.name) - 18), ts.crc)) # noqa: E501
412 else:
413 print("+--[%s]%s" % (ts.name, "-" * max(2, 80 - len(ts.name) - 6)))
414 if ts.keywords:
415 print(" kw=%s" % ",".join(ts.keywords))
416 for t in ts:
417 print("%(num)03i %(name)s" % t)
418 c = k = ""
419 if t.keywords:
420 k = "kw=%s" % ",".join(t.keywords)
421 if t.crc:
422 c = "[%(crc)s] " % t
423 if c or k:
424 print(" %s%s" % (c, k))
425
426
427def docs_campaign(test_campaign):

Callers 1

execute_campaignFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…