[T-Mobile LG G6 Guides, News, & Discussion] redalgex:
code:

[android@fwul lglafsploit]$ ./step1.sh

This will install TWRP.

You do NOT need to do ANYTHING!

If it fails, NO damage is done to your phone.

If the hash check fails, it will make attempts.

If after attempts, it does not get a hash match, it will abort.

NO damage has been done to your phone.

You can re-run this script as many times as you want, however,

if you are not getting a hash match, you should try a different PC,

or a different cable, or a different USB port.

Press SPACE to continue...

Flashing... this will take a while.

Size of TWRP: 28467200

Count for the dd trim: 27800

Flashing TWRP to lafbak. Please wait...

Traceback (most recent call last):

File "./partitions.py", line 459, in <module>

main()

File "./partitions.py", line 412, in main

with laf_open_disk(comm) as disk_fd:

File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__

return next(self.gen)

File "./partitions.py", line 62, in laf_open_disk

lglaf.challenge_response(comm, 2)

File "/home/android/programs/lglafsploit/lglaf.py", line 373, in challenge_response

kilo_header, kilo_response = comm.call(request_kilo)

File "/home/android/programs/lglafsploit/lglaf.py", line 260, in call

header = self.read(0x20)

File "/home/android/programs/lglafsploit/lglaf.py", line 240, in read

buff = self._read(need, timeout=timeout)

File "/home/android/programs/lglafsploit/lglaf.py", line 359, in _read

array = self.usbdev.read(self.ep_in, 2**14, timeout=timeout)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 988, in read

self.__get_timeout(timeout))

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 833, in bulk_read

timeout)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 936, in __read

_check(retval)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check

raise USBError(_strerror(ret), ret, _libusb_errno[ret])

usb.core.USBError: [Errno 5] Input/Output Error

Dumping lafbak for hash check...

Traceback (most recent call last):

File "./partitions.py", line 459, in <module>

main()

File "./partitions.py", line 409, in main

lglaf.try_hello(comm)

File "/home/android/programs/lglafsploit/lglaf.py", line 414, in try_hello

comm.call(hello_request)

File "/home/android/programs/lglafsploit/lglaf.py", line 260, in call

header = self.read(0x20)

File "/home/android/programs/lglafsploit/lglaf.py", line 240, in read

buff = self._read(need, timeout=timeout)

File "/home/android/programs/lglafsploit/lglaf.py", line 359, in _read

array = self.usbdev.read(self.ep_in, 2**14, timeout=timeout)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 988, in read

self.__get_timeout(timeout))

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 833, in bulk_read

timeout)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 936, in __read

_check(retval)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check

raise USBError(_strerror(ret), ret, _libusb_errno[ret])

usb.core.USBError: [Errno 5] Input/Output Error

Trimming trailing zeros

dd: failed to open 'h872-twrp-tmp.img': No such file or directory

stat: cannot stat 'test.img': No such file or directory

Temp file size:

sha256sum: test.img: No such file or directory

Checking hash...

TWRP hash: Sdfac26cecbf9dbffb67b410f60c0283bac1a4db33f117438c6a9e480f9eb58ae

Test dump hash: S

Hash check failed! Retrying for 5 times.

rm: cannot remove 'h872-twrp-tmp.img': No such file or directory

rm: cannot remove 'test.img': No such file or directory

Attempt 1 - Press ctrl C to break

Flashing TWRP to lafbak. Please wait...

Traceback (most recent call last):

File "./partitions.py", line 459, in <module>

main()

File "./partitions.py", line 412, in main

with laf_open_disk(comm) as disk_fd:

File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__

return next(self.gen)

File "./partitions.py", line 62, in laf_open_disk

lglaf.challenge_response(comm, 2)

File "/home/android/programs/lglafsploit/lglaf.py", line 373, in challenge_response

kilo_header, kilo_response = comm.call(request_kilo)

File "/home/android/programs/lglafsploit/lglaf.py", line 271, in call

raise RuntimeError("Unexpected response: %r" % header)

RuntimeError: Unexpected response: b'HELO\x04\x00\x00\x01\x01\x00\x00\x10\x00\x00\x80\x00\x02\x00\x00\x00\x00\x00\x00\x00\x80\xf2\x00\x00\xb7\xba\xb3\xb0'

Dumping lafbak for hash check...

Traceback (most recent call last):

File "./partitions.py", line 459, in <module>

main()

File "./partitions.py", line 409, in main

lglaf.try_hello(comm)

File "/home/android/programs/lglafsploit/lglaf.py", line 414, in try_hello

comm.call(hello_request)

File "/home/android/programs/lglafsploit/lglaf.py", line 260, in call

header = self.read(0x20)

File "/home/android/programs/lglafsploit/lglaf.py", line 240, in read

buff = self._read(need, timeout=timeout)

File "/home/android/programs/lglafsploit/lglaf.py", line 359, in _read

array = self.usbdev.read(self.ep_in, 2**14, timeout=timeout)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 988, in read

self.__get_timeout(timeout))

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 833, in bulk_read

timeout)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 936, in __read

_check(retval)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check

raise USBError(_strerror(ret), ret, _libusb_errno[ret])

usb.core.USBError: [Errno 5] Input/Output Error

Trimming trailing zeros

dd: failed to open 'h872-twrp-tmp.img': No such file or directory

stat: cannot stat 'test.img': No such file or directory

Temp file size:

sha256sum: test.img: No such file or directory

Checking hash...

TWRP hash: Sdfac26cecbf9dbffb67b410f60c0283bac1a4db33f117438c6a9e480f9eb58ae

Test dump hash: S

Hash check failed! Retrying for 5 times.

rm: cannot remove 'h872-twrp-tmp.img': No such file or directory

rm: cannot remove 'test.img': No such file or directory

Attempt 2 - Press ctrl C to break

Flashing TWRP to lafbak. Please wait...

Traceback (most recent call last):

File "./partitions.py", line 459, in <module>

main()

File "./partitions.py", line 412, in main

with laf_open_disk(comm) as disk_fd:

File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__

return next(self.gen)

File "./partitions.py", line 62, in laf_open_disk

lglaf.challenge_response(comm, 2)

File "/home/android/programs/lglafsploit/lglaf.py", line 373, in challenge_response

kilo_header, kilo_response = comm.call(request_kilo)

File "/home/android/programs/lglafsploit/lglaf.py", line 271, in call

raise RuntimeError("Unexpected response: %r" % header)

RuntimeError: Unexpected response: b'HELO\x04\x00\x00\x01\x01\x00\x00\x10\x00\x00\x80\x00\x02\x00\x00\x00\x00\x00\x00\x00\x80\xf2\x00\x00\xb7\xba\xb3\xb0'

Dumping lafbak for hash check...

Traceback (most recent call last):

File "./partitions.py", line 459, in <module>

main()

File "./partitions.py", line 409, in main

lglaf.try_hello(comm)

File "/home/android/programs/lglafsploit/lglaf.py", line 414, in try_hello

comm.call(hello_request)

File "/home/android/programs/lglafsploit/lglaf.py", line 260, in call

header = self.read(0x20)

File "/home/android/programs/lglafsploit/lglaf.py", line 240, in read

buff = self._read(need, timeout=timeout)

File "/home/android/programs/lglafsploit/lglaf.py", line 359, in _read

array = self.usbdev.read(self.ep_in, 2**14, timeout=timeout)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 988, in read

self.__get_timeout(timeout))

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 833, in bulk_read

timeout)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 936, in __read

_check(retval)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check

raise USBError(_strerror(ret), ret, _libusb_errno[ret])

usb.core.USBError: [Errno 5] Input/Output Error

Trimming trailing zeros

dd: failed to open 'h872-twrp-tmp.img': No such file or directory

stat: cannot stat 'test.img': No such file or directory

Temp file size:

sha256sum: test.img: No such file or directory

Checking hash...

TWRP hash: Sdfac26cecbf9dbffb67b410f60c0283bac1a4db33f117438c6a9e480f9eb58ae

Test dump hash: S

Hash check failed! Retrying for 5 times.

rm: cannot remove 'h872-twrp-tmp.img': No such file or directory

rm: cannot remove 'test.img': No such file or directory

Attempt 3 - Press ctrl C to break

Flashing TWRP to lafbak. Please wait...

Traceback (most recent call last):

File "./partitions.py", line 459, in <module>

main()

File "./partitions.py", line 412, in main

with laf_open_disk(comm) as disk_fd:

File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__

return next(self.gen)

File "./partitions.py", line 62, in laf_open_disk

lglaf.challenge_response(comm, 2)

File "/home/android/programs/lglafsploit/lglaf.py", line 373, in challenge_response

kilo_header, kilo_response = comm.call(request_kilo)

File "/home/android/programs/lglafsploit/lglaf.py", line 271, in call

raise RuntimeError("Unexpected response: %r" % header)

RuntimeError: Unexpected response: b'HELO\x04\x00\x00\x01\x01\x00\x00\x10\x00\x00\x80\x00\x02\x00\x00\x00\x00\x00\x00\x00\x80\xf2\x00\x00\xb7\xba\xb3\xb0'

Dumping lafbak for hash check...

Traceback (most recent call last):

File "./partitions.py", line 459, in <module>

main()

File "./partitions.py", line 409, in main

lglaf.try_hello(comm)

File "/home/android/programs/lglafsploit/lglaf.py", line 414, in try_hello

comm.call(hello_request)

File "/home/android/programs/lglafsploit/lglaf.py", line 260, in call

header = self.read(0x20)

File "/home/android/programs/lglafsploit/lglaf.py", line 240, in read

buff = self._read(need, timeout=timeout)

File "/home/android/programs/lglafsploit/lglaf.py", line 359, in _read

array = self.usbdev.read(self.ep_in, 2**14, timeout=timeout)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 988, in read

self.__get_timeout(timeout))

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 833, in bulk_read

timeout)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 936, in __read

_check(retval)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check

raise USBError(_strerror(ret), ret, _libusb_errno[ret])

usb.core.USBError: [Errno 5] Input/Output Error

Trimming trailing zeros

dd: failed to open 'h872-twrp-tmp.img': No such file or directory

stat: cannot stat 'test.img': No such file or directory

Temp file size:

sha256sum: test.img: No such file or directory

Checking hash...

TWRP hash: Sdfac26cecbf9dbffb67b410f60c0283bac1a4db33f117438c6a9e480f9eb58ae

Test dump hash: S

Hash check failed! Retrying for 5 times.

rm: cannot remove 'h872-twrp-tmp.img': No such file or directory

rm: cannot remove 'test.img': No such file or directory

Attempt 4 - Press ctrl C to break

Flashing TWRP to lafbak. Please wait...

Traceback (most recent call last):

File "./partitions.py", line 459, in <module>

main()

File "./partitions.py", line 412, in main

with laf_open_disk(comm) as disk_fd:

File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__

return next(self.gen)

File "./partitions.py", line 62, in laf_open_disk

lglaf.challenge_response(comm, 2)

File "/home/android/programs/lglafsploit/lglaf.py", line 373, in challenge_response

kilo_header, kilo_response = comm.call(request_kilo)

File "/home/android/programs/lglafsploit/lglaf.py", line 271, in call

raise RuntimeError("Unexpected response: %r" % header)

RuntimeError: Unexpected response: b'HELO\x04\x00\x00\x01\x01\x00\x00\x10\x00\x00\x80\x00\x02\x00\x00\x00\x00\x00\x00\x00\x80\xf2\x00\x00\xb7\xba\xb3\xb0'

Dumping lafbak for hash check...

Traceback (most recent call last):

File "./partitions.py", line 459, in <module>

main()

File "./partitions.py", line 409, in main

lglaf.try_hello(comm)

File "/home/android/programs/lglafsploit/lglaf.py", line 414, in try_hello

comm.call(hello_request)

File "/home/android/programs/lglafsploit/lglaf.py", line 260, in call

header = self.read(0x20)

File "/home/android/programs/lglafsploit/lglaf.py", line 240, in read

buff = self._read(need, timeout=timeout)

File "/home/android/programs/lglafsploit/lglaf.py", line 359, in _read

array = self.usbdev.read(self.ep_in, 2**14, timeout=timeout)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 988, in read

self.__get_timeout(timeout))

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 833, in bulk_read

timeout)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 936, in __read

_check(retval)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check

raise USBError(_strerror(ret), ret, _libusb_errno[ret])

usb.core.USBError: [Errno 5] Input/Output Error

Trimming trailing zeros

dd: failed to open 'h872-twrp-tmp.img': No such file or directory

stat: cannot stat 'test.img': No such file or directory

Temp file size:

sha256sum: test.img: No such file or directory

Checking hash...

TWRP hash: Sdfac26cecbf9dbffb67b410f60c0283bac1a4db33f117438c6a9e480f9eb58ae

Test dump hash: S

Hash check failed! Retrying for 5 times.

rm: cannot remove 'h872-twrp-tmp.img': No such file or directory

rm: cannot remove 'test.img': No such file or directory

Attempt 5 - Press ctrl C to break

Flashing TWRP to lafbak. Please wait...

Traceback (most recent call last):

File "./partitions.py", line 459, in <module>

main()

File "./partitions.py", line 412, in main

with laf_open_disk(comm) as disk_fd:

File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__

return next(self.gen)

File "./partitions.py", line 62, in laf_open_disk

lglaf.challenge_response(comm, 2)

File "/home/android/programs/lglafsploit/lglaf.py", line 373, in challenge_response

kilo_header, kilo_response = comm.call(request_kilo)

File "/home/android/programs/lglafsploit/lglaf.py", line 271, in call

raise RuntimeError("Unexpected response: %r" % header)

RuntimeError: Unexpected response: b'HELO\x04\x00\x00\x01\x01\x00\x00\x10\x00\x00\x80\x00\x02\x00\x00\x00\x00\x00\x00\x00\x80\xf2\x00\x00\xb7\xba\xb3\xb0'

Dumping lafbak for hash check...

Traceback (most recent call last):

File "./partitions.py", line 459, in <module>

main()

File "./partitions.py", line 409, in main

lglaf.try_hello(comm)

File "/home/android/programs/lglafsploit/lglaf.py", line 414, in try_hello

comm.call(hello_request)

File "/home/android/programs/lglafsploit/lglaf.py", line 260, in call

header = self.read(0x20)

File "/home/android/programs/lglafsploit/lglaf.py", line 240, in read

buff = self._read(need, timeout=timeout)

File "/home/android/programs/lglafsploit/lglaf.py", line 359, in _read

array = self.usbdev.read(self.ep_in, 2**14, timeout=timeout)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 988, in read

self.__get_timeout(timeout))

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 833, in bulk_read

timeout)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 936, in __read

_check(retval)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check

raise USBError(_strerror(ret), ret, _libusb_errno[ret])

usb.core.USBError: [Errno 5] Input/Output Error

Trimming trailing zeros

dd: failed to open 'h872-twrp-tmp.img': No such file or directory

stat: cannot stat 'test.img': No such file or directory

Temp file size:

sha256sum: test.img: No such file or directory

Checking hash...

TWRP hash: Sdfac26cecbf9dbffb67b410f60c0283bac1a4db33f117438c6a9e480f9eb58ae

Test dump hash: S

Hash check failed! Retrying for 5 times.

rm: cannot remove 'h872-twrp-tmp.img': No such file or directory

rm: cannot remove 'test.img': No such file or directory

Hash check failed after 5 attempts - exiting