zondag 20 maart 2016

Change you have to make in Windows 10 as a system administrator

ls == dir

 echo dir %1 > %systemroo*---------------------------------------------------------------------------------------------------------------t%\system32\ls.bat  

python

python -m pip install package

auto complete

 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
CompletionChar value. The default is 40 ==> 9
 PathCompletionChar ==> 9.

cmd prompt here (in the filedirectory

 save as myRegistryChanges.reg and click on the file
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Directory\shell\runas]

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="ElevatedCMD"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""

[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]

[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="ElevatedCMD"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""

[-HKEY_CLASSES_ROOT\Drive\shell\runas]

[HKEY_CLASSES_ROOT\Drive\shell\runas]
@="ElevatedCMD"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\LibraryFolder\background\shell]
@="none"

[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
@="ElevatedCMD"
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""

maandag 7 maart 2016

lsusb - t     tree
lsusb -v -d 0x1234:0xabcd

  

vrijdag 1 januari 2016

oliebollen

100 rozijnen
100 krenten
1 appel
500 gr bloem
citroen rasp
1 zakje gist
zout
450 gr melk

woensdag 11 november 2015

kivy screenmanager

from kivy.app import App
from kivy.lang import Builder
from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition

class MainScreen(Screen):
    pass

class AnotherScreen(Screen):
    pass

class ScreenManagement(ScreenManager):
    pass

presentation = Builder.load_file("test.kv")

class MainApp(App):
    def build(self):
        return presentation

MainApp().run()



ScreenManagement:
  #  transition: FadeTransition()
    MainScreen:
    AnotherScreen:

:
    name: 'main'

    Button:
        on_release: app.root.current = 'other'
        text: 'Another Screen'
        font_size: 50
            
:
    name: 'other'

    Button:
        on_release: app.root.current = 'main'
        text: 'back to the home screen'
        font_size: 50



dinsdag 10 november 2015

certificates Android

Sign an apk
java -jar out/host/linux-x86/framework/signapk.jar -w .x509.pem .pk8 app_name.apk app_name-signed.apk

How can I check that an Android apk is signed with a release and not debug cert?
$ jarsigner -verify -verbose -certs my_application.apk

.509.pem is the Certificate
.pk8 is the hash

content of a pem file
$ openssl x509 -in acs.qacafe.com.pem -text



jar -xvf ../foo.jar
cd META-INF
openssl pkcs7 -in TEST.RSA -print_certs -inform DER -out foo.cer


keytool -printcert -file ANDROID_.RSA
keytool -list -keystore my-signing-key.keystore

Touch Settings > Personal > Security > Credential storage > Trusted credentials. The trusted credentials screen has two tabs:
System displays certificate authority (CA) certificates that are permanently installed in the ROM of your phone.
User displays any CA certificates that you have installed yourself, for example in the process of installing a client certificate.

woensdag 4 november 2015

etags emacs


make a  python TAG file
Type in the current project directory:


find . -name "*.py" -print | tags -

For c code
find . -name '*.c' -exec etags -a {} \;


TAGS in the current directory.


in emacs:

loadfile tags
M-x visit-tags-table. This allows you to have different databases for different projects. To look up a definition, just type  
M-., then enter up a definition


zondag 1 november 2015

NFC hacking



links
http://korben.info/wp-content/uploads/defcon/SpeakerPresentations/Lee/DEFCON-20-Lee-NFC-Hacking.pdf