BVB Source Codes

voltron Show dereference.py Source code

Return Download voltron: download dereference.py Source code - Download voltron Source code - Type:.py
  1. import logging
  2.  
  3. import voltron
  4. from voltron.api import *
  5.  
  6. from scruffy.plugin import Plugin
  7.  
  8. log = logging.getLogger('api')
  9.  
  10. class APIDerefRequest(APIRequest):
  11.     """
  12.    API dereference pointer request.
  13.  
  14.    {
  15.        "type":         "request",
  16.        "request":      "dereference"
  17.        "data": {
  18.            "pointer":  0xffffff8012341234
  19.        }
  20.    }
  21.    """
  22.     _fields = {'pointer': True}
  23.  
  24.     @server_side
  25.     def dispatch(self):
  26.         try:
  27.             output = voltron.debugger.dereference(self.pointer)
  28.             log.debug('output: {}'.format(str(output)))
  29.             res = APIDerefResponse()
  30.             res.output = output
  31.         except NoSuchTargetException:
  32.             res = APINoSuchTargetErrorResponse()
  33.         except Exception as e:
  34.             msg = "Exception dereferencing pointer: {}".format(repr(e))
  35.             log.exception(msg)
  36.             res = APIGenericErrorResponse(msg)
  37.  
  38.         return res
  39.  
  40.  
  41. class APIDerefResponse(APISuccessResponse):
  42.     """
  43.    API dereference pointer response.
  44.  
  45.    {
  46.        "type":         "response",
  47.        "status":       "success",
  48.        "data": {
  49.            "output":   [0xffffff8055555555, "main + 0x123"]
  50.        }
  51.    }
  52.    """
  53.     _fields = {'output': True}
  54.  
  55.     output = None
  56.  
  57.  
  58. class APIDerefPlugin(APIPlugin):
  59.     request = "dereference"
  60.     request_class = APIDerefRequest
  61.     response_class = APIDerefResponse
  62.  
downloaddereference.py Source code - Download voltron Source code
Related Source Codes/Software:
IGListKit - A data-driven UICollectionView framework for build... 2017-01-11
androidmvp - MVP Android Example 2017-01-11
svelte - The magical disappearing UI framework ... 2017-01-11
kcptun - A Simple UDP Tunnel Based On KCP 2017-01-11
poisontap - Exploits locked/password protected computers over ... 2017-01-10
ecma262 - Status, process, and documents for ECMA262 ... 2017-01-11
react-native-elements - React Native Elements UI Toolkit 2017-01-11
tensorflow-zh - Google new open source ai system TensorFlow Chines... 2017-01-11
forum - Blue light (the Lantern) the official BBS 2017-01-11
socketcluster - Highly scalable realtime framework ... 2017-01-11
mongo-express - Web-based MongoDB admin interface, written with No... 2017-05-17
XCL-Charts - Android charting libraries (XCL-Charts is a free c... 2017-05-17
scrollMonitor - A simple and fast API to monitor elements as you s... 2017-05-16
XCDYouTubeKit - YouTube video player for iOS, tvOS and macOS 2017-05-16
rails-erd - Generate Entity-Relationship Diagrams for Rails ap... 2017-05-16
np - A better `npm publish` 2017-05-16
android - Smartisan open source code for full build.(repo ma... 2017-05-16
word_cloud - A little word cloud generator in Pytho 2017-05-16
mobileplayer-ios - 2017-05-16
Destroy-Windows-10-Spying - Destroy Windows Spying tool ... 2017-05-15

 Back to top