Skip to main content

Posts

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 ...

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.o...

Input and Output hackerrank

Input and Output     #include < cmath > #include < cstdio > #include < vector > #include < iostream > #include < algorithm > using namespace std; int main() { int a, b, c, d; cin >> a>>b>> c; d = a+b+c; cout<< d; return 0 ; }  

C++ Program for Bubble Sort

C++ Programming Code for Bubble Sort #include<iostream> using namespace std; int main() {     int a[50], n,i,j,tmp;     cout<<"enter size of array";     cin >>n;     cout<<"enter array elements";     for (i=0; i<n;i++)     {         cin>>a[i];     }     for(i=1;i<n;i++)     {         for(j=0;j<(n-i);j++)             if(a[j]>a[j+1])             {                 tmp=a[j];                 a[j]=a[j+1];                 a[j+1] =tmp;            ...

C++ Program to Add 3X3 Two Matrix using for loop

A Simple C++ program to add two Matrices   #include<iostream> using namespace std; int main() {     int a[3][3], b[3][3], ab[3][3];     int z=3, x=3;     cout<<"\nEnter elements of 1st matrix:\n";     for(int i=0; i<z; i++)     {         for(int j=0; j<x; j++)         {             cin>>a[i][j];         }     }     cout<<"\nEnter elements of 2st matrix:\n";     for(int i=0; i<z; i++)     {         for(int j=0; j<x; j++)         {             cin>>b[i][j];         }     }     //Adding Two matrices   ...

Bypassing website blocking/censorship without VPN/PROXY

FIREFOX STEPS -    1. Type  about:config on the url bar. 2. Search for network.trr, change network.trr.mode to 2 3. Search for network.security.esni.enabled and set it to true     (These steps MAY won't work if you are in a workplace and the employer has installed his own certificate on the machines and uses a ssl proxy in conjunction with the firewall)

Caesar cipher Decryption( C++)

 Caesar cipher Decryption #include <iostream> #include <string> #include <iterator> using namespace std; int main() {         string a;     string v;     int k = 0;     const int b =1;     cin >> a;     for(int j =0;j <25; j++)     {                 ++k;         for(int i =0; i<a.length(); i++)       {           v= ((a[i]+ k +65)%26 +65);           cout <<v;               }             cout << "\n";             }         }

Pointer -hackerrank (challenges writeup)

Pointer -hackerrank (challenges writeup)  Pointer https://www.hackerrank.com/challenges/c-tutorial-pointer/problem #include<iostream> using namespace std; void func(int *z,int *f) {    int aa = *z;    *z = *z + *f;    *f = aa- *f;       if(*f < 0)*f *= -1;    } int main() {     int a, b;     int *pa = &a, *pb = &b;     cin >> a>> b;     func(pa,pb);     cout <<a<<endl;     cout<< b; }

MODERN ABC+ ebook part-1 (DOWNLOAD)

for part-2 or for good quality contact at twitter- https://twitter.com/AdityaRoCk34 LINK PART 1 ----  https: //drive.google.com/file/d/1v02QrW1tyq8v_W_enu92sZdFVG-kNg0w/view?usp=sharing

pyobjc-core pip install error python setup.py egg_info" failed with error code 1 in /tmp/pip-build-io5g0t31/pyobjc-core/ [FIX]

ERROR---  sudo pip3 install pyobjc-core  Collecting pyobjc-core   Downloading https://files.pythonhosted.org/packages/7d/0f/2886aab903aa3971674b68d3fc27cdb292ea07fac2118da0463af113274a/pyobjc-core-5.0.tar.gz (790kB)     100% |████████████████████████████████| 798kB 86kB/s     Complete output from command python setup.py egg_info:     running egg_info     error: PyObjC requires macOS to build         ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-io5g0t31/pyobjc-core/ FIX----- On Linux, this is: pip3 install python3 - xlib sudo apt - get install scrot sudo apt - get install python3 - tk sudo apt - get install python3 - dev pip3 install pyautogui

tesserocr PIP ERROR ON LINUX [FIX]

FIX FOR THIS ERROR---  Collecting tesserocr   Using cached https://files.pythonhosted.org/packages/f8/6d/4e81e041f33a4419e59edcb1dbdf3c56e9393f60f5ef531381bd67a1339b/tesserocr-2.3.1.tar.gz Building wheels for collected packages: tesserocr   Running setup.py bdist_wheel for tesserocr ... error   Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-dkMND5/tesserocr/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpLxXWiTpip-wheel- --python-tag cp27:   pkg-config failed to find tesseract/lept libraries: Package tesseract was not found in the pkg-config search path.   Perhaps you should add the directory containing `tesseract.pc'   to the PKG_CONFIG_PATH environment variable   No package 'tesseract' found     Failed to extract tesseract version from executable: [...

Functions c++ - hackerrank

  https://www.hackerrank.com/challenges/c-tutorial-functions/problem #include <iostream> #include <cstdio> using namespace std; int max_of_four(int a, int b, int c, int d) {    if (a >= b &&  a>=c && a>=d)       return a;    else if(b>=a && b>=c && b>=d )       return b;    else if(c>=a&& c>=b && c>= d)       return c;    else       return d; }; int main() {    int a,b,c,d;    scanf("%d %d %d %d", &a, &b, &c, &d);     int vv = max_of_four(a,b,c,d);     printf ("%d", vv);     return 0; }

For Loop - c++ hackerrank

For Loop https://www.hackerrank.com/challenges/c-tutorial-for-loop/problem #include <iostream> using namespace std; int main() {    int a, s,i;    cin >>i;    cin>> a;    for(i; i<=a; i++)    {       if(i==1)       {          cout<< "one\n";       }       else if(i==2)       {          cout<< "two\n";       }       else if(i==3)       {          cout<< "three\n";       }       else if(i==4)       {          cout<< "four\n";    ...

Conditional Statements C++ - hackerrank

https://www.hackerrank.com/challenges/c-tutorial-conditional-if-else/problem #include <bits/stdc++.h> using namespace std; int main() {     int n;     cin >> n;         //cin.ignore(numeric_limits<streamsize>::max(), '\n');      if(n == 1)       cout << "one";    else if(n == 2){       cout << "two";    }    else if(n== 3){       cout << "three";    }    else if(n == 4){       cout << "four";    }    else if(n == 5){       cout << "five";    }    else if(n == 6){       cout << "six";    }    else if(n ==7){       cout << "seven";    }    else if(n ...