Categories
Mastering Development

How to divide the string depending on length in seqeunce in python?

>>>mymedicinesarerighthere You need to break this word down in the following way: >>>[m, ym ,edi ,cine ,sarer ,ighthe, re]

Categories
Development

Trouble with getting syscalls with own python debugger

i was trying to write a simple debugger in python3 on an 32 bit test linux system (Lubuntu) which should be able to catch all syscalls of an abitrary programm (in this case: /bin/ls). For this i used the ptrace syscall to singlestep through the process. After every step i read the registers to find […]

Categories
Development

compare two strings from different arrays, if one string contains another

I want to compare if one string (f.e. Edi) contains in another string (f.e. Edil). I wrote a script with out-string, because later I need to compare two obejcts (all users from AD with accounts from NTFSsecurity (permission for folders)). $AlleBenutzer = (“Adam”,”Edi”, “Georg”,”Kate”) $Benutzer = (“Adaml”, “Edil”, “Eval”) foreach ($u in $AlleBenutzer) {$L = […]