lunes, 31 de agosto de 2020

Secret Hack Codes For Android Mobile Phones

Secrete Hack codes for Android Mobile phones

Secret hack codes are usually hidden from users to prevent misuse and exploit. Android is a very new platform so there aren't many hack codes for Androids available. Today I will share all of the hack codes of Android cellphones that I know. I have tested these codes on my Samsung Galaxy with the Android OS version 2.2. I am sure these will work on all previous versions. 


Secret Hack Codes for Android Mobile Phones:


1. Complete Information About Your Phone 

 *#*#4636#*#*

 This code can be used to get some interesting information about your phone and battery. It shows the following 4 menus on the screen:

  • Phone information
  • Battery information (How to maximize or boost battery life in android phones)
  • Battery history
  • Usage statistics


2. Factory data reset


*#*#7780#*#*

This code can be used for a factory data reset. It'll remove the following things:

  • Google account settings stored in your phone
  • System and application data and settings
  • Downloaded applications

It will NOT remove:

  • Current system software and bundled application
  • SD card files e.g. photos, music files, etc.

Note: Once you give this code, you will get a prompt screen asking you to click on the "Reset phone" button, giving you the chance to cancel your operation.


3. Format Android Phone


  *2767*3855#

Think before you input this code. This code is used for factory formatting. It will remove all files and settings, including the internal memory storage. It will also reinstall the phone firmware.

Note: Once you give this code, there is no way to cancel the operation unless you remove the battery from the phone.


4. Phone Camera Update


*#*#34971539#*#*

This code is used to get information about phone camera. It shows following 4 menus:

  • Update camera firmware in image (Don't try this option)
  • Update camera firmware in SD card
  • Get camera firmware version
  • Get firmware update count

WARNING: NEVER use the first option. Your phone camera will stop working and you will need to take your phone to a service center to reinstall camera firmware.


5. End Call/Power

 

*#*#7594#*#*

This one is my favorite. This code can be used to change the action of the "End Call/Power" button. Be default, if you hold the button down for a long time, it shows a screen asking you to select between silent mode, airplane mode, and power off.

Using this code, you can enable this button to power off without having to select an option, saving you some time.


6. File Copy for Creating Backup


*#*#273283*255*663282*#*#*


This code opens a file copy screen where you can backup your media files e.g. images, sound, video and voice memo.


7.  Service Mode


*#*#197328640#*#*

This code can be used to enter into service mode. In service mode, you can run various tests and change settings.


8. WLAN, GPS and Bluetooth Secret Hack Codes for Android:


*#*#232339#*#* OR *#*#526#*#* OR *#*#528#*#*           – WLAN test (Use "Menu" button to start various tests)

*#*#232338#*#*                  – Shows WiFi MAC address

*#*#1472365#*#*                – GPS test

*#*#1575#*#*                      – Another GPS test

*#*#232331#*#*                  – Bluetooth test

*#*#232337#*#                    – Shows Bluetooth device address


9. Codes to get Firmware version information:


*#*#4986*2650468#*#* – PDA, Phone, H/W, RFCallDate

*#*#1234#*#* – PDA and Phone

*#*#1111#*#* – FTA SW Version

*#*#2222#*#* – FTA HW Version

*#*#44336#*#* – PDA, Phone, CSC, Build Time, Changelist number


10. Codes to launch various Factory Tests:


*#*#0283#*#* – Packet Loopback

*#*#0*#*#* – LCD test

*#*#0673#*#* OR *#*#0289#*#* – Melody test

*#*#0842#*#* – Device test (Vibration test and BackLight test)

*#*#2663#*#* – Touch screen version

*#*#2664#*#* – Touch screen test

*#*#0588#*#* – Proximity sensor test

*#*#3264#*#* – RAM version


@EVERYTHING NT

Continue reading


  1. Hacker Tools 2019
  2. Hacking Tools Software
  3. Hacking Tools
  4. Hacker Tools Linux
  5. Pentest Tools Android
  6. Hacker Tools Linux
  7. Hacking Tools And Software
  8. Hacker Tools For Ios
  9. Hack Tools
  10. Hack Tools
  11. Pentest Tools Windows
  12. Hacker Tools Software
  13. Nsa Hack Tools Download
  14. Pentest Tools For Windows
  15. Hackers Toolbox
  16. Hacking Tools And Software
  17. Hacking Tools Windows 10
  18. Bluetooth Hacking Tools Kali
  19. Hack Tools
  20. New Hacker Tools
  21. Hacker Tools Github
  22. Pentest Tools For Ubuntu
  23. Hacker
  24. Pentest Automation Tools
  25. Hacking Tools For Windows Free Download
  26. Hacking Tools Hardware
  27. Best Hacking Tools 2020
  28. Hacker Techniques Tools And Incident Handling
  29. Free Pentest Tools For Windows
  30. Easy Hack Tools
  31. Android Hack Tools Github
  32. Tools Used For Hacking
  33. Nsa Hacker Tools
  34. World No 1 Hacker Software
  35. Pentest Tools Nmap
  36. Underground Hacker Sites
  37. What Are Hacking Tools
  38. Hack Tools For Pc
  39. Tools Used For Hacking
  40. Install Pentest Tools Ubuntu
  41. Physical Pentest Tools
  42. Pentest Tools Url Fuzzer
  43. Hack Apps
  44. What Is Hacking Tools
  45. Hacker Tools List
  46. Hacking Tools Windows
  47. Hacker Tools Apk
  48. Hacking Tools Free Download
  49. Pentest Tools
  50. Hacking Tools For Mac
  51. Hacking Tools Software
  52. Hack Tools For Windows
  53. Hacker Tools 2019
  54. Pentest Tools Port Scanner
  55. Nsa Hack Tools
  56. Pentest Tools
  57. Hacker Tool Kit
  58. Hacker Tools Windows
  59. Hacking Tools For Windows
  60. Pentest Tools Windows
  61. Hacking Tools 2020
  62. Hack Tools Pc
  63. Hack Tool Apk
  64. Hack Tools Pc
  65. Hacking App
  66. Hack Tools For Windows
  67. Hacking Apps
  68. Hacker Tools Software
  69. Pentest Tools Port Scanner
  70. Pentest Tools Github
  71. Tools 4 Hack
  72. Hacker Tools Free Download
  73. Pentest Tools Download
  74. Hacking Tools Usb
  75. Hacking Tools For Windows
  76. Best Hacking Tools 2020
  77. Pentest Tools For Android
  78. Hacker Tools For Ios
  79. Pentest Tools Linux
  80. Hacker Tools Online
  81. Pentest Tools List
  82. Growth Hacker Tools
  83. Hacker Tools List
  84. Hacking Tools For Windows
  85. Hack App
  86. Pentest Tools Url Fuzzer
  87. Tools For Hacker
  88. Pentest Tools List
  89. Pentest Tools Url Fuzzer
  90. Tools Used For Hacking
  91. Free Pentest Tools For Windows
  92. Hacker Tools Free
  93. Pentest Tools Online
  94. Pentest Tools Android
  95. Pentest Automation Tools
  96. Hacking Tools Free Download
  97. Hacking Tools For Mac
  98. How To Install Pentest Tools In Ubuntu
  99. Pentest Tools For Ubuntu
  100. Hack Tools Download
  101. Pentest Tools For Windows
  102. New Hack Tools
  103. Free Pentest Tools For Windows
  104. Pentest Tools Port Scanner
  105. Hacking Tools For Games
  106. Pentest Tools For Ubuntu
  107. Tools For Hacker
  108. Pentest Tools Alternative
  109. Pentest Tools Github
  110. Hack Website Online Tool
  111. Hack Rom Tools
  112. Nsa Hack Tools
  113. Hacking Tools Windows
  114. Pentest Tools Website Vulnerability
  115. Hacking Tools For Beginners
  116. Hacker
  117. Pentest Tools Find Subdomains
  118. Hacking Tools For Windows 7
  119. Hacker Tools Github
  120. How To Hack
  121. Hacker Tools Apk Download
  122. Hacking Tools Usb
  123. Tools Used For Hacking
  124. Pentest Tools Website Vulnerability

domingo, 30 de agosto de 2020

C++ Std::String Buffer Overflow And Integer Overflow

Interators are usually implemented using signed integers like the typical "for (int i=0; ..." and in fact is the type used indexing "cstr[i]", most of methods use the signed int, int by default is signed.
Nevertheless, the "std::string::operator[]" index is size_t which is unsigned, and so does size(), and same happens with vectors.
Besides the operator[] lack of negative index control, I will explain this later.

Do the compilers doesn't warn about this?


If his code got a large input it would index a negative numer, let see g++ and clang++ warnings:



No warnings so many bugs out there...

In order to reproduce the crash we can load a big string or vector from file, for example:


I've implemented a loading function, getting the file size with tellg() and malloc to allocate the buffer, then in this case used as a string.
Let see how the compiler write asm code based on this c++ code.



So the string constructor, getting size and adding -2 is clear. Then come the operator<< to concat the strings.
Then we see the operator[] when it will crash with the negative index.
In assembly is more clear, it will call operator[] to get the value, and there will hapen the magic dereference happens. The operator[] will end up returning an invalid address that will crash at [RAX]



In gdb the operator[] is a  allq  0x555555555180 <_znst7__cxx1112basic_stringicst11char_traitsicesaiceeixem plt="">

(gdb) i r rsi
rsi            0xfffffffffffefffe  -65538


The implmementation of operator ins in those functions below:

(gdb) bt
#0  0x00007ffff7feebf3 in strcmp () from /lib64/ld-linux-x86-64.so.2
#1  0x00007ffff7fdc9a5 in check_match () from /lib64/ld-linux-x86-64.so.2
#2  0x00007ffff7fdce7b in do_lookup_x () from /lib64/ld-linux-x86-64.so.2
#3  0x00007ffff7fdd739 in _dl_lookup_symbol_x () from /lib64/ld-linux-x86-64.so.2
#4  0x00007ffff7fe1eb7 in _dl_fixup () from /lib64/ld-linux-x86-64.so.2
#5  0x00007ffff7fe88ee in _dl_runtime_resolve_xsavec () from /lib64/ld-linux-x86-64.so.2
#6  0x00005555555554b3 in main (argc=2, argv=0x7fffffffe118) at main.cpp:29

Then crashes on the MOVZX EAX, byte ptr [RAX]

Program received signal SIGSEGV, Segmentation fault.
0x00005555555554b3 in main (argc=2, argv=0x7fffffffe118) at main.cpp:29
29     cout << "penultimate byte is " << hex << s[i] << endl;
(gdb)


What about negative indexing in std::string::operator[] ?
It's exploitable!

In a C char array is known that having control of the index, we can address memory.
Let's see what happens with C++ strings:






The operator[] function call returns the address of string plus 10, and yes, we can do abitrary writes.



Note that gdb displays by default with at&t asm format wich the operands are in oposite order:


And having a string that is in the stack, controlling the index we can perform a write on the stack.



To make sure we are writing outside the string, I'm gonna do 3 writes:


 See below the command "i r rax" to view the address where the write will be performed.


The beginning of the std::string object is 0x7fffffffde50.
Write -10 writes before the string 0x7fffffffde46.
And write -100 segfaults because is writting in non paged address.



So, C++ std::string probably is not vulnerable to buffer overflow based in concatenation, but the std::string::operator[] lack of negative indexing control and this could create vulnerable and exploitable situations, some times caused by a signed used of the unsigned std::string.size()










Related posts
  1. Best Pentesting Tools 2018
  2. Hacking Tools Pc
  3. Hacker Tools Hardware
  4. Nsa Hack Tools Download
  5. Pentest Tools Tcp Port Scanner
  6. Pentest Tools List
  7. Pentest Tools Alternative
  8. Top Pentest Tools
  9. Android Hack Tools Github
  10. How To Install Pentest Tools In Ubuntu
  11. Android Hack Tools Github
  12. Nsa Hack Tools
  13. Pentest Tools For Mac
  14. Pentest Tools Online
  15. Pentest Tools List
  16. Hacker Tool Kit
  17. Wifi Hacker Tools For Windows
  18. Hacking Tools Hardware
  19. Hacking Tools
  20. Nsa Hack Tools
  21. Hacker Tool Kit
  22. Pentest Tools Tcp Port Scanner
  23. Hacking Tools For Beginners
  24. Hack Tools For Windows
  25. Free Pentest Tools For Windows
  26. Physical Pentest Tools
  27. Hack Apps
  28. Hacking Tools For Windows 7
  29. Ethical Hacker Tools
  30. Pentest Tools Open Source
  31. Hacking Tools Name
  32. Hack Rom Tools
  33. Hacker
  34. Hacker Tools 2019
  35. Tools For Hacker
  36. Hacker Search Tools
  37. Hacking Tools For Beginners
  38. Pentest Tools Port Scanner
  39. Pentest Tools Website
  40. Hacker Tools For Pc
  41. Pentest Tools For Android
  42. Hacker Hardware Tools
  43. Top Pentest Tools
  44. Free Pentest Tools For Windows
  45. Hacking Tools For Mac
  46. New Hacker Tools
  47. Pentest Tools Download
  48. Hacker Tools Software
  49. Hacking Tools Free Download
  50. Pentest Tools Review
  51. Hacking Tools Kit
  52. Hack Tools 2019
  53. Best Pentesting Tools 2018
  54. Hacking Tools Windows 10
  55. World No 1 Hacker Software
  56. Pentest Tools Apk
  57. Hacker
  58. Usb Pentest Tools
  59. Hacking Tools And Software
  60. Hacker Tools For Ios
  61. Hacking Tools Mac
  62. Tools For Hacker
  63. Android Hack Tools Github
  64. Pentest Tools Subdomain
  65. Hacking Tools Hardware
  66. Pentest Tools Windows
  67. Hacker
  68. Hack App
  69. Hack Tools Mac
  70. Pentest Tools Github
  71. Hacking Tools Windows 10
  72. World No 1 Hacker Software
  73. Pentest Tools Review
  74. Pentest Tools For Ubuntu
  75. Hacker Techniques Tools And Incident Handling
  76. Hacking Tools
  77. Pentest Tools Linux
  78. Pentest Tools Download
  79. Pentest Tools List
  80. Hacking Tools Windows 10
  81. Pentest Tools Linux
  82. Best Pentesting Tools 2018
  83. Hacking Tools Software
  84. Hacker Tools Online
  85. How To Install Pentest Tools In Ubuntu
  86. Hacking Tools Usb
  87. Android Hack Tools Github
  88. Hacker Tools For Pc
  89. Tools 4 Hack
  90. Hacker Tools Apk
  91. Hack Tools For Games
  92. Hack Tool Apk No Root
  93. Hacking Tools Pc
  94. Pentest Tools Find Subdomains
  95. Hacker Tools For Windows
  96. Hacking Tools Kit
  97. Hak5 Tools
  98. Android Hack Tools Github
  99. Wifi Hacker Tools For Windows
  100. Hacking Tools Github
  101. Hacking App
  102. World No 1 Hacker Software
  103. Hacker Tools Software
  104. How To Install Pentest Tools In Ubuntu
  105. Pentest Automation Tools
  106. Hacker Tools Apk
  107. Pentest Reporting Tools
  108. Pentest Tools For Windows
  109. Easy Hack Tools
  110. Hack Tool Apk
  111. Hacking Tools Windows 10
  112. Hack Tools For Pc
  113. Hacker Tools Free
  114. Pentest Tools Kali Linux
  115. Install Pentest Tools Ubuntu
  116. Pentest Tools Download
  117. Hacking Tools For Windows Free Download
  118. New Hacker Tools
  119. Hacking Apps
  120. Hacker Search Tools

OnionDuke Samples










File attributes

Size: 219136
MD5:  28F96A57FA5FF663926E9BAD51A1D0CB

Size: 126464
MD5:  C8EB6040FD02D77660D19057A38FF769


Size: 316928
MD5:  D1CE79089578DA2D41F1AD901F7B1014


Virustotal info

https://www.virustotal.com/en/file/366affd094cc63e2c19c5d57a6866b487889dab5d1b07c084fff94262d8a390b/analysis/
SHA256: 366affd094cc63e2c19c5d57a6866b487889dab5d1b07c084fff94262d8a390b
File name: 366affd094cc63e2c19c5d57a6866b487889dab5d1b07c084fff94262d8a390b
Detection ratio: 8 / 52
Analysis date: 2014-11-15 18:37:30 UTC ( 8 hours, 44 minutes ago ) 
Antivirus Result Update
Baidu-International Trojan.Win32.Agent.adYf 20141107
F-Secure Backdoor:W32/OnionDuke.B 20141115
Ikarus Trojan.Win32.Agent 20141115
Kaspersky Backdoor.Win32.MiniDuke.x 20141115
Norman OnionDuke.A 20141115
Sophos Troj/Ransom-ALA 20141115
Symantec Backdoor.Miniduke!gen4 20141115
Tencent Win32.Trojan.Agent.Tbsl 20141115

https://www.virustotal.com/en/file/366affd094cc63e2c19c5d57a6866b487889dab5d1b07c084fff94262d8a390b/analysis/


SHA256: 366affd094cc63e2c19c5d57a6866b487889dab5d1b07c084fff94262d8a390b
File name: 366affd094cc63e2c19c5d57a6866b487889dab5d1b07c084fff94262d8a390b
Detection ratio: 8 / 52
Antivirus Result Update
Baidu-International Trojan.Win32.Agent.adYf 20141107
F-Secure Backdoor:W32/OnionDuke.B 20141115
Ikarus Trojan.Win32.Agent 20141115
Kaspersky Backdoor.Win32.MiniDuke.x 20141115
Norman OnionDuke.A 20141115
Sophos Troj/Ransom-ALA 20141115
Symantec Backdoor.Miniduke!gen4 20141115
Tencent Win32.Trojan.Agent.Tbsl 20141115

https://www.virustotal.com/en/file/0102777ec0357655c4313419be3a15c4ca17c4f9cb4a440bfb16195239905ade/analysis/
SHA256: 0102777ec0357655c4313419be3a15c4ca17c4f9cb4a440bfb16195239905ade
File name: 0102777ec0357655c4313419be3a15c4ca17c4f9cb4a440bfb16195239905ade
Detection ratio: 19 / 55
Analysis date: 2014-11-15 18:37:25 UTC ( 8 hours, 47 minutes ago ) 
Antivirus Result Update
AVware Trojan.Win32.Generic!BT 20141115
Ad-Aware Backdoor.Generic.933739 20141115
Baidu-International Trojan.Win32.OnionDuke.BA 20141107
BitDefender Backdoor.Generic.933739 20141115
ESET-NOD32 a variant of Win32/OnionDuke.A 20141115
Emsisoft Backdoor.Generic.933739 (B) 20141115
F-Secure Backdoor:W32/OnionDuke.A 20141115
GData Backdoor.Generic.933739 20141115
Ikarus Trojan.Win32.Onionduke 20141115
Kaspersky Backdoor.Win32.MiniDuke.x 20141115
McAfee RDN/Generic BackDoor!zw 20141115
McAfee-GW-Edition BehavesLike.Win32.Trojan.fh 20141114
MicroWorld-eScan Backdoor.Generic.933739 20141115
Norman OnionDuke.B 20141115
Sophos Troj/Ransom-ANU 20141115
Symantec Backdoor.Miniduke!gen4 20141115
TrendMicro BKDR_ONIONDUKE.AD 20141115
TrendMicro-HouseCall BKDR_ONIONDUKE.AD 20141115
VIPRE Trojan.Win32.Generic!BT 20141115


Related links
  1. Pentest Tools Linux
  2. What Are Hacking Tools
  3. Hack Tool Apk
  4. Nsa Hack Tools Download
  5. Hacking Tools Github
  6. Hacker Tools For Windows
  7. Hacking Tools Hardware
  8. Hacker Tool Kit
  9. Computer Hacker
  10. Github Hacking Tools
  11. Growth Hacker Tools
  12. Hacking Tools For Windows Free Download
  13. Hacking Tools For Pc
  14. Pentest Recon Tools
  15. Nsa Hack Tools Download
  16. Pentest Tools Tcp Port Scanner
  17. Hackrf Tools
  18. Hacker Tools Apk Download
  19. Pentest Tools Apk
  20. Computer Hacker
  21. Beginner Hacker Tools
  22. Pentest Tools Apk
  23. Hack Tools For Games
  24. Hacking Tools And Software
  25. Hacking Tools For Pc
  26. Hack Tool Apk No Root
  27. Pentest Tools Linux
  28. Hacker Tools For Windows
  29. Hack Rom Tools
  30. Pentest Tools Download
  31. Hack Tools Download
  32. Tools For Hacker
  33. Hacking Tools For Kali Linux
  34. Hacking Tools Name
  35. Pentest Tools Free
  36. Top Pentest Tools
  37. New Hacker Tools
  38. Pentest Tools List
  39. Pentest Tools Review
  40. Hacking Tools 2020
  41. Tools For Hacker
  42. Easy Hack Tools
  43. Best Hacking Tools 2019
  44. Hack Tools Github
  45. Hack App
  46. Hacking Tools Mac
  47. Kik Hack Tools
  48. Hacker Tools 2020
  49. Pentest Tools List
  50. Hacking Tools Online
  51. Hacking Tools
  52. Hacking Tools For Windows
  53. Hack Tools Online
  54. Top Pentest Tools
  55. Hacker Tools Mac
  56. Hacker Search Tools
  57. Best Pentesting Tools 2018
  58. Pentest Tools Apk
  59. Best Hacking Tools 2020
  60. What Are Hacking Tools
  61. Pentest Tools Website Vulnerability
  62. Hack Tool Apk No Root
  63. Hacker Tools For Windows
  64. Hacking Tools For Beginners
  65. Termux Hacking Tools 2019
  66. Hacker Tools Software
  67. Hack Website Online Tool
  68. Hak5 Tools
  69. Game Hacking
  70. Ethical Hacker Tools
  71. Hacking Tools Download
  72. How To Install Pentest Tools In Ubuntu
  73. Hacking Tools Name
  74. Hack Website Online Tool
  75. Pentest Recon Tools
  76. Pentest Tools Apk
  77. Hacking Tools Github
  78. Hack Tools For Ubuntu
  79. Hacking Tools Mac
  80. Hacking Tools 2020
  81. Hack Tools Online
  82. Hacking Tools Free Download
  83. What Is Hacking Tools
  84. Hack Tools For Games
  85. How To Install Pentest Tools In Ubuntu
  86. Hacking Tools Windows
  87. Pentest Tools Windows
  88. Hacking Tools Mac
  89. Pentest Reporting Tools
  90. Hack Tools
  91. Hacking Tools Online
  92. Pentest Tools Find Subdomains
  93. Hack Tools For Mac
  94. Underground Hacker Sites
  95. Hacker Tools Software
  96. Nsa Hack Tools
  97. Easy Hack Tools