AutoGadgetFS:一款针对USB设备的安全测试工具( 二 )

帮助模式In [15]: x.help("")Currently supported methods:__________________________________________________________________________________________________________________________________________________________________Method||-->Description----------------------------------------------------------------------------------------------------------------------------MITMproxy||-->This method creates a connection to the RabbitMQ and listen on received messages on the todev queue____________________________________________________________________________________________________________________________MITMproxyRQueues||-->This method reads from the queue todev and sends the request to the device its self.____________________________________________________________________________________________________________________________SmartFuzz||-->This method is generates packets based on what it has learned from a sniff from either the host or the device____________________________________________________________________________________________________________________________chgIntrfs||-->This method allows you to change and select another interface____________________________________________________________________________________________________________________________clearqueues||-->this method clears all the queues on the rabbitMQ queues that are set up____________________________________________________________________________________________________________________________clonedev||-->This method does not need any parameters it only saves a backup of the device incase you need to share it or use it later.____________________________________________________________________________________________________________________________createctrltrsnfDB||-->creates a SQLite database containing values that were enumerated from control transfer enumeration____________________________________________________________________________________________________________________________createdb||-->create the sqlite table and columns from usblyzer captures____________________________________________________________________________________________________________________________decodePacketAscii||-->This method decodes packet bytes back to Ascii____________________________________________________________________________________________________________________________describeFuzz||-->This method allows you to describe a packet and select which bytes will be fuzzed____________________________________________________________________________________________________________________________devEnumCtrltrnsf||-->This method enumerates all possible combinations of a control transfer request____________________________________________________________________________________________________________________________devReset||-->This method Resets the device____________________________________________________________________________________________________________________________devWrite||-->To use this with a method you would write to a device make sure to run the startSniffReadThread(self,endpoint=None, pts=None, queue=None,channel=None)____________________________________________________________________________________________________________________________devctrltrnsf||-->This method allows you to send ctrl transfer requests to the target device____________________________________________________________________________________________________________________________deviceInfo||-->gets the complete info only for any usb connected to the host____________________________________________________________________________________________________________________________deviceInterfaces||-->get all interfaces and endpoints on the device____________________________________________________________________________________________________________________________devrandfuzz||-->this method allows you to create fixed or random size packets created using urandom____________________________________________________________________________________________________________________________devseqfuzz||-->This method allows you to create sequential incremented packets and send them to the device____________________________________________________________________________________________________________________________findSelect||-->This method enumerates all USB devices connected and allows you to select it as a target device as well as its endpoints____________________________________________________________________________________________________________________________help||-->AutogadgetFS Help method____________________________________________________________________________________________________________________________hostwrite||-->This method writes packets to the host either targeting a software or a driver in control of the device____________________________________________________________________________________________________________________________hstrandfuzz||-->this method allows you to create fixed or random size packets created using urandom and send them to the host queue____________________________________________________________________________________________________________________________monInterfaceChng||-->Method in charge of monitoring interfaces for changes this is called from def startMonInterfaceChng(self)____________________________________________________________________________________________________________________________newProject||-->creates a new project name if you were testing something else____________________________________________________________________________________________________________________________releasedev||-->releases the device and re-attaches the kernel driver____________________________________________________________________________________________________________________________removeGadget||-->This method removes the gadget from the raspberryPI____________________________________________________________________________________________________________________________replaymsgs||-->This method searches the USBLyzer parsed database and give you the option replay a message or all messages from host to device____________________________________________________________________________________________________________________________searchmsgs||-->This method allows you to search and select all messages for a pattern which were saved from a USBlyzer database creation____________________________________________________________________________________________________________________________setupGadgetFS||-->setup variables for gadgetFS : Linux Only, on Raspberry Pi Zero best option____________________________________________________________________________________________________________________________showMessage||-->shows messages if error or warn or info____________________________________________________________________________________________________________________________sniffdevice||-->read the communication between the device to hosts____________________________________________________________________________________________________________________________startMITMusbWifi||-->Starts a thread to monitor the USB target Device____________________________________________________________________________________________________________________________startMonInterfaceChng||-->This method Allows you to monitor a device every 10 seconds in case it suddenly changes its interface configuration.____________________________________________________________________________________________________________________________startQueuewrite||-->initiates a connection to the queue to communicate with the host____________________________________________________________________________________________________________________________startSniffReadThread ||-->This is a thread to continuously read the replies from the device and dependent on what you pass to the method either pts or queue____________________________________________________________________________________________________________________________stopMITMusbWifi||-->Stops the man in the middle thread between the host and the device____________________________________________________________________________________________________________________________stopMonInterfaceChang||-->Stops the interface monitor thread____________________________________________________________________________________________________________________________stopQueuewrite||-->stop the thread incharge of communicating with the host machine____________________________________________________________________________________________________________________________stopSniffing||-->Kills the sniffing thread strted by startSniffReadThread()____________________________________________________________________________________________________________________________usblyzerparse||-->This method will parse your xml exported from usblyzer and then import them into a database____________________________________________________________________________________________________________________________In [16]: x.help("findSelect")****[+]Help for findSelect Method:[-]Signature: findSelect(self, chgint=None)[+]findSelect Help:This method enumerates all USB devices connected and allows you to select it as a target device as well as its endpoints


推荐阅读