This gist contains information about TOTP token storage in the myGov Code Generator app, along with instructions on how to extract tokens.
/data/user/0/au.gov.dhs.centrelink.mygovauthenticator:
├───files
│ myGov.ks
| import 'package:flutter/gestures.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
| type: entities | |
| title: Transmission | |
| show_header_toggle: false | |
| entities: | |
| - entity: switch.transmission_switch | |
| icon: 'hass:power' | |
| name: Enabled | |
| secondary_info: last-changed | |
| - entity: switch.transmission_turtle_mode | |
| icon: 'hass:turtle' |
| import 'dart:typed_data'; | |
| Uint8List padPKCS5(List<int> input) { | |
| final inputLength = input.length; | |
| final paddingValue = 8 - (inputLength % 8); | |
| final outputLength = inputLength + paddingValue; | |
| final output = Uint8List(outputLength); | |
| for (var i = 0; i < inputLength; ++i) { | |
| output[i] = input[i]; |
| const keywords = [ | |
| 'abstract', | |
| 'else', | |
| 'import', | |
| 'super', | |
| 'as', | |
| 'enum', | |
| 'in', | |
| 'switch', | |
| 'assert', |
| import 'package:rxdart/streams.dart'; | |
| import 'package:rxdart/subjects.dart'; | |
| extension StreamUtils<T> on Stream<T> { | |
| ReplayStream<T> replay() { | |
| final subject = ReplaySubject<T>(); | |
| pipe(subject); | |
| return subject; | |
| } | |
| } |
| import 'dart:math'; | |
| /// Thanks to https://www.reddit.com/r/ProgrammerHumor/comments/m9r3vz/efficiency/ for the inspiration | |
| void main() { | |
| final random = Random(); | |
| final stopwatch = Stopwatch()..start(); | |
| int x; | |
| do { |
| import 'package:meta/meta.dart'; | |
| @immutable | |
| class $NAME$State { | |
| const $NAME$State(); | |
| const $NAME$State.initial() : this(); | |
| $NAME$State copyWith() => $NAME$State(); | |
| import 'package:flutter/widgets.dart'; | |
| abstract class ValueAnimation<T> extends Animation<T> | |
| with | |
| AnimationEagerListenerMixin, | |
| AnimationLocalListenersMixin, | |
| AnimationLocalStatusListenersMixin { | |
| T _value; | |
| @override |
This gist contains information about TOTP token storage in the myGov Code Generator app, along with instructions on how to extract tokens.
/data/user/0/au.gov.dhs.centrelink.mygovauthenticator:
├───files
│ myGov.ks