Skip to main content

Posts

Showing posts from 2019

TERMINAL mail setup for linux

root@kali:~# apt-get install bsd-mailx root@kali:~# apt install ssmtp root@kali:~# leafpad  /etc/ssmtp/ssmtp.conf PASTE BELOW TEXT AT /etc/ssmtp/ssmtp.conf # # Config file for sSMTP sendmail # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=YOUR EMAIL ID # The place where the mail goes. The actual machine name is required no # MX records are consulted. Commonly mailhosts are named mail.domain.com mailhub=smtp.gmail.com:587 AuthUser=YOUR EMAIL ID AuthPass=password UseTLS=YES UseSTARTTLS=YES # Where will the mail seem to come from? #rewriteDomain=gmail.com # The full hostname hostname=kali # Are users allowed to set their own From: address? #YES - Allow the user to specify their own From: address # NO - Use the system generated From: address FromLineOverride=NO Debug=YES root@kali:~# mail -s "asssssssss" adityashrest.shrest34@gmail.com < asd

receives 5 numbers, and prints them back in reverse order assembly yasm/nasm/fasm

This program receives 5 numbers, and prints them back in reverse order. yasm - BITS 32 global main extern exit section .data     ; 5 dwords:     keep_nums  times 5  dd (12345678h)     section .text main:     mov ecx, 5   read_one_number:     dec     ecx     call    read_hex     mov     esi,ecx     ; Calculate the address of dword number ecx:     shl     esi,2 ; multiply by 4. Every dword is 4 bytes!     add     esi,keep_nums     ; Store the number inside dword number ecx:     mov     dword [esi],eax     test    ecx,ecx     jnz     read_one_number     mov     edi,5     mov     ecx,0 ; Now we print all the numbers, in reverse order: print_one_number:     mov     esi,ecx     ; Calculate the address of dword number ecx:     shl     esi,2     add     esi,keep_nums     ; Read from dword number ecx:     mov     eax,dword [esi]     call    print_eax     inc     ecx     cmp     ecx,edi     jnz     print_one_number            push    0     ca

dup (nasm) alternative times for yasm

 yasm ------- BITS 32 global main extern exit %include    'training.s'   ;=========================================== section .data     ; 5 dwords:      keep_nums  times 5  dd (12345678h)     section .text main:     mov ecx, 5   read_one_number:     dec     ecx     call    read_hex     mov     esi,ecx     ; Calculate the address of dword number ecx:     shl     esi,2 ; multiply by 4. Every dword is 4 bytes!     add     esi,keep_nums     ; Store the number inside dword number ecx:     mov     dword [esi],eax     test    ecx,ecx     jnz     read_one_number     mov     edi,5     mov     ecx,0 ; Now we print all the numbers, in reverse order: print_one_number:     mov     esi,ecx     ; Calculate the address of dword number ecx:     shl     esi,2     add     esi,keep_nums     ; Read from dword number ecx:     mov     eax,dword [esi]     call    print_eax     inc     ecx     cmp     ecx,edi     jnz     print_one_number       

difference between att and intel (gdb)

AT&T immediate operands use a $ to denote them, whereas Intel immediate operands are undelimited. Thus, when referencing the decimal value 4 in AT&T syntax, you would use dollar 4, and in Intel syntax you would just use 4. AT&T prefaces register names with a %, while Intel does not. Thus, referencing the EAX register in AT&T syntax, you would use %eax. AT&T syntax uses the opposite order for source and destination operands. To move the decimal value 4 to the EAX register, AT&T syntax would be movl $4, %eax, whereas for Intel it would be mov eax, 4. AT&T syntax uses a separate character at the end of mnemonics to reference the data size used in the operation, whereas in Intel syntax the size is declared as a separate operand. The AT&T instruction movl $test, %eax is equivalent to mov eax, dword ptr test in Intel syntax. Long calls and jumps use a different syntax to define the segment and offset val original assembly  BITS 32 %include    'traini

Traceback (most recent call last):File "yt.py", line 73, in threader.put(Subscribe,[credentials[0],credentials[1],yt_id])File "/root/Documents/youtubebot/YouTubeShop-master/lib/multi.py", line 43, in putfor _ in xrange(self.q.qsize()): self.__t()NameError: name 'xrange' is not defined

Traceback (most recent call last):File "yt.py", line 73, in <module>threader.put(Subscribe,[credentials[0],credentials[1],yt_id])File "/root/Documents/youtubebot/YouTubeShop-master/lib/multi.py", line 43, in putfor _ in xrange(self.q.qsize()): self.__t()NameError: name 'xrange' is not defined $ pip install requests $ pip install colorama

How to setup simplenote on kali linux

Online Encapsulation overhead calculator

Encapsulation overhead calculator Encapsulation overhead calculator Parent interface MTU: Calculation mode: PDU size (substract overhead from MTU) Frame size (add overhead to payload size) Overhead: Maximum PDU size: Protocols (click protocol buttons one or more time to add): Notes PDU (Protocol Data Unit) is a general term for frames, packets, segments etc. If you want to calculate tunnel MTU, specify protocols before the encapsulated one. That is, if you want MTU for GRE over IPv4, add IPv4 and GRE. PDU value will be your MTU, whatever you encapslate into GRE must not excee

Step By Step To Install Java On Linux with Apt-Get

Introduction Having Java installed is a prerequisite for many articles and programs. This tutorial will guide you through the process of installing and managing different versions of Java on Ubuntu 12.04. Installing default JRE/JDK This is the recommended and easiest option. This will install OpenJDK 6 on Ubuntu 12.04 and earlier and on 12.10+ it will install OpenJDK 7. Installing Java with apt-get is easy. First, update the package index: sudo apt-get update Then, check if Java is not already installed: java -version If it returns "The program java can be found in the following packages", Java hasn't been installed yet, so execute the following command: sudo apt-get install default-jre This will install the Java Runtime Environment (JRE). If you instead need the Java Development Kit (JDK), which is usually needed to compile Java applications (for example Apache Ant , Apache Maven , Eclipse and IntelliJ IDEA execute the following command:

How to change the timezone on linux

 How to change the timezone run this command:     dpkg-reconfigure tzdata After that, the prompts will be gui or terminal gui mode...

NPM automatically get killed on Ubuntu [FIX]

NPM automatically get killed on Ubuntu [FIX]   sudo fallocate -l 1G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile sudo swapon --show sudo cp /etc/fstab /etc/fstab.bak echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab sudo sysctl vm.swappiness=10 echo 'vm.swappiness=10' | sudo tee -a /etc/sysctl.conf sudo sysctl vm.vfs_cache_pressure=50 echo 'vm.vfs_cache_pressure=50' | sudo tee -a /etc/sysctl.conf     version - 14.04 and 16.04:    --------------------This will create a swap file of 1GB---------------

How to convert .rpm file into .deb file (linux)

how to install rpm packages on Ubuntu, Linux Mint, kali linix, Debian etc.... Install alien and all the dependencies it needs: # apt-get install alien dpkg-dev debhelper build-essential To convert a package from rpm to Debian format: # alien packagen.rpm Finally, install your package! # dpkg -i package.deb For more info, visit: http://namhuy.net/1207/how-to-install-rpm-packages-on-ubuntu-mint-or-debian.html $ alien -h    by rockstardevil

error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

compile and install : wget http://archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng_1.2.54.orig.tar.xz tar xvf libpng_1.2.54.orig.tar.xz cd libpng-1.2.54 ./autogen.sh ./configure make -j8 sudo make install then update the links with: sudo ldconfig                                    demo root@kali:~/Documents/games/dofus-amd64/Dofus/transition# wget http://archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng_1.2.54.orig.tar.xz --2019-05-20 23:31:05-- http://archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng_1.2.54.orig.tar.xz Resolving archive.ubuntu.com (archive.ubuntu.com)... 91.189.88.161, 91.189.88.149, 91.189.88.162, ... Connecting to archive.ubuntu.com (archive.ubuntu.com)|91.189.88.161|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 571448 (558K) [application/x-xz] Saving to: ‘libpng_1.2.54.orig.tar.xz’ libpng_1.2.54.orig. 100%[===================>] 558.05K 163KB/s in 3.4s 2019-05-20 23:31:11