Category Archive : Blog

nmap –sT -p- -Pn 192.168.18.132

nmap –sS -p- -Pn 192.168.0.100

nmap –sUV 192.168.0.100

nmap –sX -p- -Pn 192.168.0.100

nmap –sN -p- -Pn 192.168.0.100

nmap –script vuln 192.168.18.132

nmap –script banner 192.168.18.132

 1,602 total views,  2 views today

PS1='\[\033[0;32m\]\[\033[0m\033[0;32m\]\u\[\033[0;36m\] @
\w\[\033[0;32m\]\n$(git branch 2>/dev/null | grep "^*" | colrm 1
2)\[\033[0;32m\]??\[\033[0m\033[0;32m\] \$\[\033[0m\033[0;32m\]\[\033[0m\] '

Credit: https://gist.github.com/justintv/168835

 

 883 total views,  2 views today

This post is mainly for my own benefit since I lost track of the steps I followed to change the mysql default password in a Centos 7 environment.

I am going to assume that you can use yum to install the mysql-community sever just fine.

The default root password is actually stored in the mysql log.

Follow the steps below:

[abasu@localhost Documents]$ grep root@localhost /var/log/mysqld.log
2018-01-16T02:56:47.029538Z 1 [Note] A temporary password is generated for root@localhost: C9*=ntep#SPk
[abasu@localhost Documents]$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.7.21

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

mysql> alter user ‘root’@’localhost’ identified by ‘Passw0rd!’;
Query OK, 0 rows affected (0.10 sec)

 

 798 total views,  1 views today

Here is a starter problem for everyone. Since you will be using computer to break my secret code, I am giving you the encrypted message in many forms:

  1. Hex: 0x540x680x65 0x730x650x630x720x650x74 0x690x73 0x6f0x750x74
  2. Decimal: 084104101 115101099114101116 105115 111117116
  3. Binary: 010101000110100001100101 011100110110010101100011011100100110010101110100 0110100101110011 011011110111010101110100
  4. Base64: VGhlIHNlY3JldCBpcyBvdXQ=

Have fun solving the secret message!

 497 total views,  2 views today