Skip to content

Commit

Permalink
Identify tinysh file and function.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-baines committed Oct 10, 2015
1 parent 8627fe0 commit 39d21ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/abstract_segments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ std::string AbstractSegments::determineFamily() const
{
return "ELF.Elknot";
}
if (files.find("tshd.c") != files.end())
{
return "TinySH";
}

const std::vector<AbstractSymbol>& symbols(getAllSymbols());
BOOST_FOREACH(const AbstractSymbol& symbol, symbols)
Expand Down
1 change: 1 addition & 0 deletions src/symbols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ namespace
("pcap_read", std::make_pair(elf::k_packetSniff, "pcap_read() found"))
("pcap_loop", std::make_pair(elf::k_packetSniff, "pcap_loop() found"))
("system", std::make_pair(elf::k_shell, "system() found"))
("tshd_runshell", std::make_pair(elf::k_shell, "tinysh function found."))
("dlsym", std::make_pair(elf::k_hooking, "dlsym() found in hooking context"))
("ptrace", std::make_pair(elf::k_antidebug, "ptrace detection found"));
}
Expand Down

0 comments on commit 39d21ca

Please sign in to comment.