QT captures keyboard input and displays the input shortcut key combinations, and solves the problem that some key combinations (such as Ctrl+Shift+letters) cannot be recognized in the Linux environment

Recently I am working on a QT project, which requires identifying keyboard input keys to generate shortcut keys. There is a class QKeySequenceEdit in QT. Using this, you can directly obtain keyboard input. However, if you want to filter out the keys you do not want to recognize, you must rewrite it. ThekeyPressEvent(QKeyEvent *e) function. […]

Construct a webshell that does not contain letters and numbers

Article directory Bypass without letters and numbers Knowledge introduction topic Method 1: XOR operation bypass Method 2: Invert to bypass Filtering is not very strict Advanced bypass Use php7 features to directly bypass Bypass by not containing letters and numbers Knowledge introduction <?php echo “A”^”`”; ?> The result from the operation is! We can see […]

webshell without letters and numbers

Directory 1. XOR 1. Pre-knowledge of XOR 2. Advanced XOR 3. XOR to build a one-sentence Trojan horse 4. Use XOR to bypass regularity: Supplementary knowledge: when the underline is filtered Two, negate 1. Invert the function name to bypass the regular rule 2. Characters are reversed and spliced to write webshell 3. Self-increment 1. […]

Linux two threads print out letters, using mutexes and condition variables

Two threads print letters Suppose you create two sub-threads, the first sub-thread outputs all uppercase letters (A-Z), the second sub-thread outputs all lowercase letters (a-z), and sleeps (usleep) for 100ms each time a letter is output. code show as below: #include <stdio.h> #include <unistd.h> #include <pthread.h> #include <stdlib.h> void *fun1(void * arg) { for(int i=0;i<26;i […]