File: device.py

package info (click to toggle)
pwntools 4.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,508 kB
  • sloc: python: 59,870; ansic: 48,351; asm: 45,047; sh: 396; makefile: 256
file content (16 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

class Device(object):
    arch = None
    bits = None
    endian = None
    serial = None
    os = None

    def __init__(self, serial=None):
        self.serial = serial

    def __str__(self):
        return self.serial

    def __eq__(self, other):
        return self.serial == other or self.serial == str(other)