MCPcopy
hub / github.com/Gallopsled/pwntools / lastmsg

Method lastmsg

pwnlib/adb/adb.py:1176–1182  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1174 @property
1175 @context.quietfunc
1176 def lastmsg(self):
1177 root()
1178 if 'last_kmsg' in listdir('/proc'):
1179 return read('/proc/last_kmsg')
1180
1181 if 'console-ramoops' in listdir('/sys/fs/pstore/'):
1182 return read('/sys/fs/pstore/console-ramoops')
1183
1184 def enable_uart(self):
1185 """Reboots the device with kernel logging to the UART enabled."""

Callers

nothing calls this directly

Calls 3

rootFunction · 0.85
listdirFunction · 0.85
readFunction · 0.70

Tested by

no test coverage detected