Client API Reference
SightHouseAnalysis
SightHouseAnalysis(username: str, password: str, url: str, logger: LoggingSighthouse, verify_host: bool = True, force_submission: bool = False, options: dict = None)
Parameters:
-
(usernamestr) –username to connect to server
-
(passwordstr) –password to connect to server
-
(urlstr) –URL of Sighthouse server
-
(clientLoggingSighthouse) –A Sighthouse Logging linked to SRE
-
(verify_hostbool, default:True) –Option to enable or disable certificate verification
Methods:
-
add_tag–Add a tag on the SRE
-
get_current_arch–get current architecture and translate to ghidra one
-
get_current_binary–Retrieve the current binaries in bytes
-
get_functions–get functions
-
get_hash_program–get hash of program
-
get_program_name–Get program name
-
get_sections–Get sections
-
run–Run the complete analysis
-
update_progress–show an update progress
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
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 | |
add_tag
Add a tag on the SRE
Parameters:
-
(addressint) –address where put the tag
-
(tagstr) –tag of message
-
(messagestr) –message to show
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
682 683 684 685 686 687 688 689 690 | |
get_current_arch
get_current_arch() -> None
get current architecture and translate to ghidra one
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
662 663 664 | |
get_current_binary
get_current_binary() -> bytes
Retrieve the current binaries in bytes
Returns:
-
bytes(bytes) –the content in bytes of the current binaries
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
674 675 676 677 678 679 680 | |
get_functions
get functions
Parameters:
-
(sectionSection) –section
Returns:
-
List[Function]–List[Function]: list of function inside the section
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
708 709 710 711 712 713 714 715 716 717 | |
get_hash_program
get_hash_program() -> str
get hash of program
Returns:
-
str(str) –sha256 string
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
719 720 721 722 723 724 725 | |
get_program_name
get_program_name() -> str
Get program name
Returns:
-
str(str) –the program name
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
692 693 694 695 696 697 698 | |
get_sections
get_sections() -> List[Section]
Get sections
Returns:
-
List[Section]–List[Section]: list sections
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
700 701 702 703 704 705 706 | |
run
run() -> bool
Run the complete analysis
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
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 | |
update_progress
update_progress(message: str) -> None
show an update progress
Parameters:
-
(messagestr) –message to show
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
666 667 668 669 670 671 672 | |
Section
Section(name: str, start: int, end: int, fileoffset: int, perms: str, kind: str, id: int = -1)
Bases: object
Manipulate Section object
-
API Reference
Client API Reference
SightHouseAnalysisget_sections
-
API Reference
Client API Reference
SightHouseAnalysisget_functions
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
Function
Function(name: str, offset: int, details: dict = None)
Bases: object
Manipulate Function object
-
API Reference
Client API Reference
SightHouseAnalysisget_functions
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
82 83 84 85 86 87 | |
Match
Match(executable: str, function: str, score: float, nb_match: int)
Bases: object
Show match
-
API Reference
Client API Reference
Signature
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
35 36 37 38 39 40 41 42 43 44 45 | |
Signature
Signature(function: str, address: int, matches: list[Match])
Bases: object
show signature
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
93 94 95 96 | |
LoggingSighthouse
LoggingSighthouse()
Bases: object
Initialize logging class
-
API Reference
Client API Reference
SightHouseAnalysis
Methods:
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
600 601 602 | |
error
error(message: str)
Show an error message
Parameters:
-
(messagestr) –The message to show
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
604 605 606 607 608 609 610 | |
info
info(message: str)
Show an info message
Parameters:
-
(messagestr) –The message to show
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
620 621 622 623 624 625 626 | |
warning
warning(message: str)
Show an warning message
Parameters:
-
(messagestr) –The message to show
Source code in venv/lib/python3.12/site-packages/sighthouse/client/SightHouseClient.py
612 613 614 615 616 617 618 | |