Search This Blog

Saturday, November 25, 2017

View Settings/secure/global data from Android

i was looking for a way to look into the settings.db or other secure db that exist in android , on non rooted device.
i find out this command to View the data :

adb shell content
e.g. - to see all global settings
adb shell content query --uri content://settings/global

adb shell content query --uri content://settings/system
adb shell content query --uri content://settings/secure


there is also a tool - have a look at  adb-export

enjoy
Yaniv Tzanany

Sunday, October 22, 2017

QnA Maker - the easy way to create a BOT

Build, train and publish a simple question and answer bot based on FAQ URLs, structured documents or editorial content in minutes.
QnA Maker:



great video tutorial









Saturday, October 21, 2017

ngrok - secure tunnels to localhost

ngrok - secure introspectable tunnels to localhost:


to work with your local IIS EXPRESS under visual studio use this:

ngrok http -host-header="localhost:58821" 58821

where 58821 is your port number

more details - how to use ngrok with windows and visual studio to test webhooks

Friday, October 6, 2017

Google Speech API

Great service from google to transcript sound into text.
an easy way to use curl command below.

open command shell (cmd on windows)
set your google  API_KEY

set API_KEY=xxxxxxxxxxxx-xxxxxxxxxx

request.json file should contains such data
{
  "config": {
      "encoding":"FLAC",
      "sampleRateHertz": 16000,
      "languageCode": "en-US",
      "enableWordTimeOffsets": false
  },
  "audio": {
      "uri":"gs://cloud-samples-tests/speech/brooklyn.flac"
  }
}
run the command to get response

curl -s -X POST -H "Content-Type: application/json" --data-binary @request.json "https://speech.googleapis.com/v1/speech:recognize?key=%API_KEY%"

for long file (above 1 minute )use such command
curl -s -X POST -H "Content-Type: application/json" --data-binary @request.json "https://speech.googleapis.com/v1/speech:longrunningrecognize?key=%API_KEY%"

you will get response such as
{
  "name": "9111777455024812345"
}

use the name value to get result of the long process

curl -s -X GET  "https://speech.googleapis.com/v1/operations/9111777455024812345?key=%API_KEY%"


more info :
https://cloud.google.com/speech/docs/getting-started
https://codelabs.developers.google.com/codelabs/cloud-speech-intro/index.html#0


Friday, September 29, 2017

Android library - that need to check

i get into those libraries , i suggest to check them (maybe there are better)




https://www.acrobits.net/products/corporate/sdk




https://www.intercom.com/



Tuesday, September 26, 2017

Finding Memory Leaks Using the CRT Library

big like !!

for debug purpose

Finding Memory Leaks Using the CRT Library:





syntax sample !!



_CrtMemState s1,s2,s3;

_CrtMemCheckpoint(&s1);



//to do - add your code here



_CrtMemCheckpoint(&s2);

if (_CrtMemDifference(&s3, &s1, &s2))

_CrtMemDumpStatistics(&s3);

Wednesday, July 19, 2017

My Google Interview Question

i add a chance to start interview process via google as Sales Engineer for GCP.
here are some question i have been asked:


  • 3 products you want to change - (my answer ,  cloud  ,  gmail ,  chrome)
  • 50,000 are using your (Freemium ) free service  - 10% conversion rate  how to increase conversion rate?   (my answer ,     give a service from vip , analyze results ..etc)
  • china - google want a data center - recommend to buy or hired , where why ? etc (my answer government will give you - to follow the rules, buy , cold place next to border)
  • open source - is it good or not ? and why ? 
  • build like youtube system 
  • no sql db such as mongodb - what benefit? 
  • how would you convinced CIO to choose gcp instead of aws?
  • how you publish new like youtube version - zero down time 

some tech question as well , good luck to all
Yaniv tzanany

Sunday, June 25, 2017

Vysor puts your Android on your desktop

Vysor: "Vysor puts your Android on your desktop"




Saturday, May 13, 2017

Memory Debugger for Windows, Linux, Mac, and Android

GitHub - DynamoRIO/drmemory: Memory Debugger for Windows, Linux, Mac, and Android: "Dr. Memory is a memory monitoring tool capable of identifying memory-related programming errors such as accesses of uninitialized memory, accesses to unaddressable memory (including outside of allocated heap units and heap underflow and overflow), accesses to freed memory, double frees, memory leaks, and (on Windows) handle leaks, GDI API usage errors, and accesses to un-reserved thread local storage slots."




Monday, April 24, 2017

Wednesday, April 19, 2017

Collecting User-Mode Dumps (Windows)

Collecting User-Mode Dumps (Windows):

analyze process dump file via windbg --- major command for first

!analyze -v

good tutorial at 



Sunday, March 26, 2017

Network performence tools

iperf3: A TCP, UDP, and SCTP network bandwidth measurement tool
iperf3 - samples http://fasterdata.es.net/performance-testing/network-troubleshooting-tools/iperf-and-iperf3/


NTttcp Utility: Profile and Measure Windows Networking Performance


List of network-troubleshooting-tools

DiskBenchmark  - i am using ActiveMQ product , i find out that there is a utility inside it called
DiskBenchmark.

i managed to run it this way - you cna run it on linux too , its java based
java -cp "C:\Program Files\ActiveMQ.5.6\apache-activemq-5.8.0\lib\activemq-kahadb-store-5.8.0.jar"  org.apache.activemq.store.kahadb.disk.util.DiskBenchmark

Wednesday, March 15, 2017

Windows Debugging and Troubleshooting

great session  from you-tube

https://youtu.be/2rGS5fYGtJ4

some commands :
g = go/continue
r - regisers
db - display RAM bytes
dc - display as dword
~ - thread
k = stack
~* - for each thread run the next commnd  = e.g ~*k - show stacks for all threads
lm - list module
!peb  - get some info about the dump process such as command line , env settinsg








Monday, March 13, 2017

Find your Memory Leak C++

Using Performance Monitor to Find a User-Mode Memory Leak - Windows 10 hardware dev:


chasing-static-memory-leaks

i like the UMDH command to analyze memory, without the need to recompile application.

https://support.citrix.com/article/CTX120596


the command i used e.g.
umdh.exe -pn:xxx.exe -f:FirstDump.txt
umdh.exe -pn:xxx.exe -f:SecondDump.txt
umdh.exe -d -v -l  FirstDump.txt SecondDump.txt -f:Result.txt
umdh.exe -d -v -l SecondDump.txt ThirdDump.txt  -f:Result2.txt

gflags.exe  -i xxx.exe +ust

gflags.exe  -i xxx.exe -ust
dont forget 
delete all registry - gflags.exe /i xxx.exe ffffffff



Thursday, February 16, 2017

visual studio - Attaching the debugger to a process C++

In case you need to attached debugger into your debug program.
the next easy trick - will do it for you - if you will start your program with F1.
without F1 - it will not wait for  a debugger
very helpful !!

#ifdef _DEBUG
if ( ::GetAsyncKeyState( VK_F1 ) )
{
    while ( !::IsDebuggerPresent() )
        ::Sleep( 100 );
    ::DebugBreak();
}
#endif

Monday, January 30, 2017

canarytokens.net

trap for hacks canarytokens.net:

the google for finding open stuff (iot , routers..) https://www.shodan.io/

port scanning pentest-tools.com


carmaa/inception: Inception is a physical memory manipulation and hacking tool