How to use unhook method in ATX

Best Python code snippet using ATX

antisandbox_unhook.py

Source: antisandbox_unhook.py Github

copy

Full Screen

1# Copyright (C) 2014 Claudio "nex" Guarnieri (@botherder), Accuvant, Inc. (bspengler@accuvant.com)2#3# This program is free software: you can redistribute it and/​or modify4# it under the terms of the GNU General Public License as published by5# the Free Software Foundation, either version 3 of the License, or6# (at your option) any later version.7#8# This program is distributed in the hope that it will be useful,9# but WITHOUT ANY WARRANTY; without even the implied warranty of10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the11# GNU General Public License for more details.12#13# You should have received a copy of the GNU General Public License14# along with this program. If not, see <http:/​/​www.gnu.org/​licenses/​>.15from lib.cuckoo.common.abstracts import Signature16class Unhook(Signature):17 name = "antisandbox_unhook"18 description = "Tries to unhook or modify Windows functions monitored by Cuckoo"19 severity = 320 confidence = 6021 categories = ["anti-sandbox"]22 authors = ["nex","Accuvant"]23 minimum = "1.2"24 evented = True25 filter_categories = set(["__notification__"])26 def __init__(self, *args, **kwargs):27 Signature.__init__(self, *args, **kwargs)28 self.saw_unhook = False29 self.unhook_info = set()30 def on_call(self, call, process):31 subcategory = self.check_argument_call(call,32 api="__anomaly__",33 name="Subcategory",34 pattern="unhook")35 if subcategory:36 self.saw_unhook = True37 funcname = self.get_argument(call, "FunctionName")38 if funcname != "":39 if (funcname != "SetUnhandledExceptionFilter" and funcname != "SetWindowsHookExW" and funcname != "UnhookWindowsHookEx" and40 funcname != "CoCreateInstance") or self.get_argument(call, "UnhookType") != "modification":41 self.unhook_info.add("function_name: " + funcname + ", type: " + self.get_argument(call, "UnhookType"))42 43 def on_complete(self):44 if len(self.unhook_info) > 5:45 weight = len(self.unhook_info)46 confidence = 10047 if not self.unhook_info:48 self.saw_unhook = False49 for info in self.unhook_info:50 self.data.append({"unhook" : info })...

Full Screen

Full Screen

Blogs

Check out the latest blogs from LambdaTest on this topic:

Putting Together a Testing Team

As part of one of my consulting efforts, I worked with a mid-sized company that was looking to move toward a more agile manner of developing software. As with any shift in work style, there is some bewilderment and, for some, considerable anxiety. People are being challenged to leave their comfort zones and embrace a continuously changing, dynamic working environment. And, dare I say it, testing may be the most ‘disturbed’ of the software roles in agile development.

QA Innovation &#8211; Using the senseshaping concept to discover customer needs

QA Innovation - Using the senseshaping concept to discover customer needsQA testers have a unique role and responsibility to serve the customer. Serving the customer in software testing means protecting customers from application defects, failures, and perceived failures from missing or misunderstood requirements. Testing for known requirements based on documentation or discussion is the core of the testing profession. One unique way QA testers can both differentiate themselves and be innovative occurs when senseshaping is used to improve the application user experience.

What is Selenium Grid &#038; Advantages of Selenium Grid

Manual cross browser testing is neither efficient nor scalable as it will take ages to test on all permutations & combinations of browsers, operating systems, and their versions. Like every developer, I have also gone through that ‘I can do it all phase’. But if you are stuck validating your code changes over hundreds of browsers and OS combinations then your release window is going to look even shorter than it already is. This is why automated browser testing can be pivotal for modern-day release cycles as it speeds up the entire process of cross browser compatibility.

QA&#8217;s and Unit Testing &#8211; Can QA Create Effective Unit Tests

Unit testing is typically software testing within the developer domain. As the QA role expands in DevOps, QAOps, DesignOps, or within an Agile team, QA testers often find themselves creating unit tests. QA testers may create unit tests within the code using a specified unit testing tool, or independently using a variety of methods.

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run ATX automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful