tag:blogger.com,1999:blog-63530836386811297652024-02-07T12:07:34.538+05:30Hack The Sec-Leading Resource Of Linux TutorialHack The Sec-Leading Resource of Linux Tutorial,Linux Tips And Tricks,Linux Server,Linux Exploit,Shell scripting,linux books,unix,bash scripting.Sarkari-JOBhttp://www.blogger.com/profile/07703466142666802829noreply@blogger.comBlogger345125tag:blogger.com,1999:blog-6353083638681129765.post-36290783201667458512023-05-24T02:18:00.007+05:302023-05-24T02:19:33.185+05:30How to Install Jitsi Meet on Ubuntu 22.04<p> <b style="font-size: x-large; text-align: center;"><u> How to Install Jitsi Meet on Ubuntu 22.04</u></b></p><p><span style="font-family: georgia; font-size: medium;">Jitsi is a collection of free and open-source multiplatform voice (VoIP), video conferencing and instant messaging applications for the Web platform, Windows, Linux, macOS, iOS and Android. The Jitsi project began with the Jitsi Desktop (previously known as SIP Communicator). With the growth of WebRTC, the project team focus shifted to the Jitsi Videobridge for allowing web-based multi-party video calling. Later the team added Jitsi Meet, a full video conferencing application that includes web, Android, and iOS clients. Jitsi also operates meet.jit.si, a version of Jitsi Meet hosted by Jitsi for free community use. Other projects include: Jigasi, lib-jitsi-meet, Jidesha, and Jits</span></p><p><b><u><span style="font-family: georgia; font-size: medium;">Prerequisites</span></u></b></p><p><span style="font-family: georgia; font-size: medium;">Ubuntu 22.04 server installed on your system.<br />Valid domain name pointed to your server IP.<br />A root user or a user with sudo privileges.</span></p><p><span style="font-family: georgia; font-size: medium;">First, you will need to update all your system packages to the latest version. You can update all the packages using the following command.</span></p><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# </code><span style="color: #f8f8f2; font-family: Consolas, Monaco, Andale Mono, monospace;"><span style="font-size: 14.7456px;">apt update -y</span></span></pre><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; text-decoration-line: none; word-spacing: normal;">root@hackthesec</a><span style="color: #f8f8f2; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; word-spacing: normal;"> ~]# </span><span style="color: #f8f8f2; font-family: Consolas, Monaco, Andale Mono, monospace;"><span style="font-size: 14.7456px;">apt upgrade -y</span></span><span style="font-family: Times New Roman;"><span style="white-space: normal;"></span></span></pre></div><div><span style="font-family: georgia; font-size: medium;">After updating all the packages, install all the required dependencies using the following command.</span></div><div><br /></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# </code><span style="color: #f8f8f2; font-family: Consolas, Monaco, Andale Mono, monospace;"><span style="font-size: 14.7456px;">apt install curl gnupg2 wget -y</span></span></pre></div><div><span style="font-family: georgia; font-size: medium;">Once all the packages are installed, download and import the Jitsi Meet GPG key with the following command.</span></div><div><span style="font-family: georgia; font-size: medium;"><br /></span></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# </code><span style="color: #f8f8f2; font-family: Consolas, Monaco, Andale Mono, monospace;"><span style="font-size: 14.7456px;">curl https://download.jitsi.org/jitsi-key.gpg.key -o jitsi-key.gpg.key
gpg --output /usr/share/keyrings/jitsi-key.gpg --dearmor jitsi-key.gpg.key</span></span></pre></div><div><span style="font-family: georgia; font-size: medium;">Next, create a source list file for Jitsi using the following command and edit it with any editor in our case we are using nano.</span></div><div><br /></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# </code><span style="color: #f8f8f2; font-family: Consolas, Monaco, Andale Mono, monospace;"><span style="font-size: 14.7456px;">nano /etc/apt/sources.list.d/jitsi-stable.list</span></span></pre></div><div><span style="font-family: georgia; font-size: medium;">Add the Jitsi Meet repository as shown below.</span></div><div><br /></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# </code><span style="color: #f8f8f2; font-family: Consolas, Monaco, Andale Mono, monospace;"><span style="font-size: 14.7456px;">deb [signed-by=/usr/share/keyrings/jitsi-key.gpg] https://download.jitsi.org stable/</span></span></pre></div><div><div><span style="font-family: georgia; font-size: medium;">Press Ctrl+O to save the changes, then Ctrl+X to exit nano.</span></div><div><span style="font-family: georgia; font-size: medium;"><br /></span></div><div><span style="font-family: georgia; font-size: medium;">Next, you will also need to import the Prosody GPG key. You can download and import it with the following command.</span></div></div><div><br /></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# </code><span style="color: #f8f8f2; font-family: Consolas, Monaco, Andale Mono, monospace;"><span style="font-size: 14.7456px;">curl https://prosody.im/files/prosody-debian-packages.key -o prosody-debian-packages.key
gpg --output /usr/share/keyrings/prosody-keyring.gpg --dearmor prosody-debian-packages.key</span></span></pre></div><div><div><span style="font-family: georgia; font-size: medium;">Then, create a sources list file for Prosody with the following command edit it with any editor in our case we are using nano.</span></div><div><span style="font-family: georgia; font-size: medium;"><br /></span></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# nano /etc/apt/sources.list.d/prosody.list</code></pre></div></div><div><span style="font-family: georgia; font-size: medium;">Add the following line.</span></div><div><span style="color: #f8f8f2; font-family: Consolas, Monaco, Andale Mono, monospace;"><span style="font-size: 14.7456px;"><br /></span></span></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# deb [signed-by=/usr/share/keyrings/prosody-keyring.gpg] http://packages.prosody.im/debian jammy main</code></pre></div><div><span style="font-family: georgia; font-size: medium;">Press Ctrl+O to save the changes, then Ctrl+X to exit nano.</span></div><div><span style="font-family: georgia; font-size: medium;"><br /></span></div><div><b><u><span style="color: #2b00fe; font-family: georgia; font-size: large;">Install Jitsi Meet</span></u></b></div><div><br /></div><div><span style="font-family: georgia; font-size: medium;">Now, you install the Jitsi Meet package by running the following command.</span></div><div><br /></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# apt install jitsi-meet -y</code></pre></div><div><span style="font-family: georgia; font-size: medium;">During the Jitsi Meet installation, you will be asked to provide your domain name as shown below.</span></div><div><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwTRxSqx-04Hpkmj51u47d27U1NUvi2cQNgrVUkQyyIespiYXfgRn-PqGRjBsjPeK2y0fio55a63THWkcTDnfe-lHLgAyK4KlC6HSUW_V0oXInY6emoTd_5AisWTWYUfqO6PSg6LFsxKYB0xVsvSasHrP6dXLK9rgsr9oKUqtBZ-0AfqcwO9QPj5eq/s1322/hackthesec_1.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="515" data-original-width="1322" height="249" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwTRxSqx-04Hpkmj51u47d27U1NUvi2cQNgrVUkQyyIespiYXfgRn-PqGRjBsjPeK2y0fio55a63THWkcTDnfe-lHLgAyK4KlC6HSUW_V0oXInY6emoTd_5AisWTWYUfqO6PSg6LFsxKYB0xVsvSasHrP6dXLK9rgsr9oKUqtBZ-0AfqcwO9QPj5eq/w640-h249/hackthesec_1.png" width="640" /></a></div><br /><div><span style="font-family: georgia; font-size: medium;">Provide your valid domain name and press the OK button. You will be asked to select the SSL certificate as shown below.</span></div><div><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDPuAXBKQd8AwUgRxBO0ZQekz-KetI4iMmf1of6QkSemFQ4Pp0D8dgiodgjr_WilfxgVWmcm6joXNNAh4DdxHko-RHBci5cc1_zinz_VjHA5NIhXOHXwD9DA6EI4B1afBGF1I013MoQ-JizPZxLrENpyftDKNZcTdErMPN_AY21VtgfFvYtsVqnYZl/s1320/hackthesec_2.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="517" data-original-width="1320" height="250" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDPuAXBKQd8AwUgRxBO0ZQekz-KetI4iMmf1of6QkSemFQ4Pp0D8dgiodgjr_WilfxgVWmcm6joXNNAh4DdxHko-RHBci5cc1_zinz_VjHA5NIhXOHXwD9DA6EI4B1afBGF1I013MoQ-JizPZxLrENpyftDKNZcTdErMPN_AY21VtgfFvYtsVqnYZl/w640-h250/hackthesec_2.png" width="640" /></a></div><div><br /></div><div><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkQ3n3FFy6ZV_XWNq6wTNzz2R6ZMM022oxsmSDV3aa9pvryMnRE2NogZYI8vl7nHUVY2u6hSbnW-zWnEqfUuVrpyaJSwMl5Q3f3bNkj47QKt8T0T6LfCasitDZFar_I_MNJyvzIzc-biKVhxcSY_C9k3apWPm8_36cwgy5kd2r-sJhpFARn3728IpP/s1322/hackthesec_3.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="520" data-original-width="1322" height="252" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkQ3n3FFy6ZV_XWNq6wTNzz2R6ZMM022oxsmSDV3aa9pvryMnRE2NogZYI8vl7nHUVY2u6hSbnW-zWnEqfUuVrpyaJSwMl5Q3f3bNkj47QKt8T0T6LfCasitDZFar_I_MNJyvzIzc-biKVhxcSY_C9k3apWPm8_36cwgy5kd2r-sJhpFARn3728IpP/w640-h252/hackthesec_3.png" width="640" /></a></div><div><br /></div><span style="font-family: georgia; font-size: medium;">Select the Let’s Encrypt SSL and click on the Ok button. You will be asked to provide your email address as shown below.</span><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKndTi6ARejPFM0MSWYSjGS-0Bz70ci0zYkF03Gbf2-PXMv7AmOl0nX8tND9B8A7av-1zUwiOpIg33yVNF962kga8EuBuM3iUzvfleLrNIKtCdzx9kYBUsvq5AtPO5Yo6n30MU_InIVfaIGmFlKTOM4WT9oyxofIBc_Dnq0ntwBvPx5BZBAVXaLedY/s1327/hackthesec_4.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="518" data-original-width="1327" height="250" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKndTi6ARejPFM0MSWYSjGS-0Bz70ci0zYkF03Gbf2-PXMv7AmOl0nX8tND9B8A7av-1zUwiOpIg33yVNF962kga8EuBuM3iUzvfleLrNIKtCdzx9kYBUsvq5AtPO5Yo6n30MU_InIVfaIGmFlKTOM4WT9oyxofIBc_Dnq0ntwBvPx5BZBAVXaLedY/w640-h250/hackthesec_4.png" width="640" /></a></div><br /><div><br /><div><span style="font-family: georgia; font-size: medium;">Provide your email address and press the Ok button. You will be asked to enable dial in support as shown below.</span></div><div><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYPCRIk_15N2w6nTtmfXF3eS_9a8JQp1CVShapODnstaOu8rKwTklZ72yl3JZpecTCxAcnjYtKJnzBw2KRmbBd98srikVIvgHqjOQoTGSHV0AiXdYLggTglXGVtnf0Bq2AHqItiwLuXQQlsO387tlgK_avDqFyVl3NIu__32J-ERC9PnTjF5ld-8C/s1327/hackthesec_5.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="518" data-original-width="1327" height="250" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxYPCRIk_15N2w6nTtmfXF3eS_9a8JQp1CVShapODnstaOu8rKwTklZ72yl3JZpecTCxAcnjYtKJnzBw2KRmbBd98srikVIvgHqjOQoTGSHV0AiXdYLggTglXGVtnf0Bq2AHqItiwLuXQQlsO387tlgK_avDqFyVl3NIu__32J-ERC9PnTjF5ld-8C/w640-h250/hackthesec_5.png" width="640" /></a></div><br /><div><br /></div><div><div><span style="font-family: georgia; font-size: medium;">Click on the No button to finish the installation.</span></div><div><span style="font-family: georgia; font-size: medium;"><br /></span></div></div><div><b><u><span style="color: #2b00fe; font-family: georgia; font-size: medium;">Enable Authentication on Jitsi Meet</span></u></b></div><div><span style="font-family: georgia; font-size: medium;"><br /></span></div><div><div><span style="font-family: georgia; font-size: medium;">By default, anyone can access the Jitsi Meet and create conference rooms. For security reasons, it is a good idea to secure the Jisti Meet with password authentication.</span></div><div><span style="font-family: georgia; font-size: medium;"><br /></span></div><div><span style="font-family: georgia; font-size: medium;">To enable the password authentication, edit the Jisti Meet configuration file. We are using nano editor to edit the file - /etc/prosody/conf.avail/jitsi.hackthesec.co.in.cfg.lua</span></div></div><div><span style="font-family: georgia; font-size: medium;"><br /></span></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# nano /etc/prosody/conf.avail/jitsi.hackthesec.co.in.cfg.lua</code></pre></div><div><span style="font-family: georgia; font-size: medium;">Change the following line:</span></div><div><br /></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">authentication = "internal_plain"</code></pre></div><div><span style="font-family: georgia; font-size: medium;">Next, add the following lines at the end of the file.</span></div><div><br /></div><div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="color: #f8f8f2; font-family: Consolas, Monaco, Andale Mono, monospace;"><span style="font-size: 14.7456px;">VirtualHost "guest.meet.hackthesec.co.in"
authentication = "anonymous"
c2s_require_encryption = false
modules_enabled = {
"bosh";
"ping";
"pubsub";
"speakerstats";
"turncredentials";
"conference_duration";
}</span></span>
</pre></div><div><span style="font-family: georgia; font-size: medium;">Press Ctrl+O to save the changes, then Ctrl+X to exit nano.</span></div><div></div></div><div><br /></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# nano /etc/jitsi/meet/jitsi.hackthesec.co.in-config.js</code></pre></div><div><span style="font-family: georgia; font-size: medium;">Change the following line.</span></div><div><br /></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">anonymousdomain: 'guest.jitsi.hackthesec.co.in',</code></pre></div><div><span style="font-family: georgia; font-size: medium;">Press Ctrl+O to save the changes, then Ctrl+X to exit nano. Next, create another configuration file.</span><br /><br /></div></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# </code><span style="color: #f8f8f2; font-family: Consolas, Monaco, Andale Mono, monospace;"><span style="font-size: 14.7456px;">nano /etc/jitsi/jicofo/sip-communicator.properties</span></span></pre></div><div><span style="font-family: georgia; font-size: medium;">Add the following line.</span></div><div><br /></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">org.jitsi.jicofo.auth.URL=XMPP:jitsi.hackthesec.co.in</code></pre></div><div><span style="font-family: georgia; font-size: medium;">Press Ctrl+O to save the changes, then Ctrl+X to exit nano then create a user for Jitsi Meet with the following command.</span></div><div><br /></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">prosodyctl register user jitsi.hackthesec.co.in yourpassword</code></pre></div><div><span style="font-family: georgia; font-size: medium;">You will see the below output into the terminal</span></div><div><br /></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="color: #f8f8f2; font-family: Consolas, Monaco, Andale Mono, monospace;"><span style="font-size: 14.7456px;">general warn Lua 5.1 has several issues and support is being phased out, consider upgrading</span></span></pre></div><div><span style="font-family: georgia; font-size: medium;">Now restart the Jitsi Meet services to apply the configuration.</span></div><div><br /></div><div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# systemctl restart prosody.service jicofo.service jitsi-videobridge2.service</code></pre></div><div><span style="color: red; font-family: georgia; font-size: large;"><u>Access Jitsi Meet Web UI</u></span></div><div><span style="font-family: georgia;"><br /></span></div><div><span style="font-family: georgia; font-size: medium;">Jitsi Meet is installed now and secured with password based authentication. You can now access the Jitsi Meet using the URL <a href="https://meet.hackthesec.co.in">https://meet.hackthesec.co.in</a>. You should see the following screen.</span></div><div><span style="font-family: georgia;"><br /></span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH-cAjNmhb0wcDHoJw51QqYuNOUIFIlUL_KZog8xvOqHy4b0XuJ6cNQ9gUvhn2l3UEhY7aZINKesQtNGpndCLBZLyHXHnuPDFFNvGpMMjOV-BLpXicJRw0WguerWdSSf6yrgO7rkbTJXcVRnu4gESRhfB6LonM8YvAPBoIqQf9o5pXld2wJMDMs79F/s1696/hackthesec_6.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="927" data-original-width="1696" height="350" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH-cAjNmhb0wcDHoJw51QqYuNOUIFIlUL_KZog8xvOqHy4b0XuJ6cNQ9gUvhn2l3UEhY7aZINKesQtNGpndCLBZLyHXHnuPDFFNvGpMMjOV-BLpXicJRw0WguerWdSSf6yrgO7rkbTJXcVRnu4gESRhfB6LonM8YvAPBoIqQf9o5pXld2wJMDMs79F/w640-h350/hackthesec_6.png" width="640" /></a></div><br /><div>@hackthesecurity</div>Rajhttp://www.blogger.com/profile/02793413996647910802noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-51691918819898381432023-05-24T00:49:00.009+05:302023-05-24T02:14:29.709+05:30Setting Up a Port Forwarding Using Uncomplicated Firewall(UFW)<p style="text-align: center;"><span style="font-family: arial; font-size: large;"><b><u><br />Setting Up a Port Forwarding Using Uncomplicated Firewall(UFW)</u></b></span></p><p><span style="font-family: georgia; font-size: medium;">The Linux kernel in Ubuntu provides a packet filtering system called netfilter, and the traditional interface for manipulating netfilter are the iptables suite of commands. iptables provide a complete firewall solution that is both highly configurable and highly flexible.</span></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnwJqO5t-cjYlTKJwDUOWpBE6hpcStrXARypGodCji4qUFUgtg2ocsVUHZGm_VaZJARKMRjmnlgIDhOUHWEO5wTG0-oclNxRCZpvAiHMjuATmAULsaXKwqEUTKSxNrB7g385tyZmzbc_ZT/s577/firewall_www.hackthesec.co.in.jpg" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="359" data-original-width="577" height="199" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnwJqO5t-cjYlTKJwDUOWpBE6hpcStrXARypGodCji4qUFUgtg2ocsVUHZGm_VaZJARKMRjmnlgIDhOUHWEO5wTG0-oclNxRCZpvAiHMjuATmAULsaXKwqEUTKSxNrB7g385tyZmzbc_ZT/s320/firewall_www.hackthesec.co.in.jpg" width="320" /></a></div><span style="font-family: georgia; font-size: medium;"><br /></span><p></p><p><span style="font-family: georgia; font-size: medium;">Becoming proficient in iptables takes time, and getting started with netfilter firewalling using only iptables can be a daunting task. As a result, many frontends for iptables have been created over the years, each trying to achieve a different result and targeting a different audience.</span></p><p></p><p><span style="font-family: georgia; font-size: medium;">The Uncomplicated Firewall (ufw) is a frontend for iptables and is particularly well-suited for host-based firewalls. ufw provides a framework for managing netfilter, as well as a command-line interface for manipulating the firewall. ufw aims to provide an easy to use interface for people unfamiliar with firewall concepts, while at the same time simplifies complicated iptables commands to help an administrator who knows what he or she is doing. ufw is an upstream for other distributions and graphical frontends.</span></p><p><span style="color: #2b00fe; font-family: georgia; font-size: medium;"><b><u>Setting Up a Port Forward</u></b></span></p><p><span style="font-family: georgia; font-size: medium;">We are going to forward incoming traffic on the port 8000 to 8081</span></p><p><span style="font-family: georgia; font-size: medium;"><b>Enabling UFW:</b> If not already enabled, start by enabling UFW. Run the following command in the terminal:</span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# sudo ufw enable</code></pre><p><span style="font-family: georgia;"><span style="font-size: medium;">Open the UFW configuration file: To set up port forwarding, you must edit the UFW configuration file, <b>located at /etc/default/ufw</b>.</span><span style="font-size: large;"> </span></span></p><p><span style="font-family: georgia; font-size: medium;">We mostly proffered Nano editor </span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# sudo nano /etc/default/ufw</code></pre><p><span style="font-family: georgia; font-size: medium;">Enable packet forwarding: In the UFW configuration file, find the line that says </span></p><p><span style="font-family: georgia; font-size: medium;"><b>DEFAULT_FORWARD_POLICY="DROP" </b></span></p><p><span style="font-family: georgia; font-size: medium;">Change DROP to ACCEPT so it looks like this: </span></p><p><span style="font-family: georgia; font-size: medium;"><b>DEFAULT_FORWARD_POLICY="ACCEPT" </b></span></p><p><span style="font-family: georgia; font-size: medium;">This change allows UFW to forward packets, which is necessary for port forwarding.</span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# DEFAULT_FORWARD_POLICY="ACCEPT"</code></pre><p><span style="font-family: verdana; font-size: medium;"></span></p><p><span style="color: #0a0a0a; font-family: georgia;"><span style="font-size: 17px;">Press <b>Ctrl+O</b> to save the changes, then <b>Ctrl+X </b>to exit nano.</span></span></p><p><span style="color: #0a0a0a; font-size: 17px;"><span style="font-family: georgia;"><b>Modify UFW’s before rules:</b> UFW uses a set of "<b>before rules</b>" that are executed before the standard rules. These before rules can be used to set up port forwarding. </span></span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# sudo nano /etc/ufw/before.rules </code></pre><p><span style="font-family: georgia; font-size: medium;">Add the following lines at the end of the file, replacing <your-ip> with the IP address of the machine where the packets will be forwarded:</span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="color: #f8f8f2; font-family: Consolas, Monaco, Andale Mono, monospace;"><span style="font-size: 14.7456px;"># NAT table rules
*nat
:POSTROUTING ACCEPT [0:0]
# Forward traffic from port 8000 to port 8081.
-A PREROUTING -p tcp --dport 8000 -j DNAT --to-destination <your-ip>:8081
# Don’t masquerade local traffic.
-A POSTROUTING -s 192.168.1.0/24 -j MASQUERADE
COMMIT</span></span></pre><p><span style="font-family: georgia;"><span style="color: #0a0a0a; font-size: 17px;">Press </span><b style="color: #0a0a0a; font-size: 17px;">Ctrl+O</b><span style="color: #0a0a0a; font-size: 17px;"> to save the changes, then </span><b style="color: #0a0a0a; font-size: 17px;">Ctrl+X </b><span style="color: #0a0a0a; font-size: 17px;">to exit nano.</span></span></p><p><span style="font-family: georgia; font-size: medium;">Restart UFW: Finally, for the changes to take effects</span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class="language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# sudo ufw disable
[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none; word-spacing: normal;">root@hackthesec</a><span style="word-spacing: normal;"> ~]# </span>sudo ufw enable </code></pre><p><span style="font-family: verdana; font-size: medium;"><br /></span></p><p><span style="font-family: georgia; font-size: medium;">@hackthesecurity</span></p>Sarkari-job.comhttp://www.blogger.com/profile/01796991448891824956noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-52183023187151784062023-05-23T01:37:00.004+05:302023-05-23T01:39:35.522+05:30How To Install phpMyAdmin on Ubuntu 22.04<p style="text-align: center;"><b><u><span style="font-family: verdana; font-size: large;"> How To Install phpMyAdmin on Ubuntu 22.04</span></u></b></p><p style="text-align: left;"><span style="font-family: verdana; font-size: large;">PhpMyAdmin is a free and open source administration tool for MySQL and MariaDB. It's an excellent tool for browsing, editing, creating, and dropping tables, as well as modifying columns and data. You don't need to login into execute any query from the MySQL command line. As a portable web application written primarily in PHP, it has become one of the most popular MySQL administration tools, especially for web hosting services.</span></p><p><span style="color: #2b00fe; font-family: verdana; font-size: large;"><b>Step 1 – Install Apache and PHP</b></span></p><p><span style="font-family: verdana; font-size: large;">We are assuming you already have installed the MySQL server on Ubuntu system if you haven't then <a href="https://www.hackthesec.co.in/2023/05/how-to-install-mysql-server-on-ubuntu.html" target="_blank">install from here </a>So just install the other required packages to run and access phpMyAdmin.</span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="font-family: verdana; font-size: large;"><code class="language-markup" style="box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# </code>sudo apt install apache2 wget unzip</span></pre><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="font-family: verdana; font-size: large;"><code class="language-markup" style="box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# </code>sudo apt install php php-zip php-json php-mbstring php-mysql </span></pre><p><span style="font-family: verdana; font-size: large;">Once the installation is finished, enable and start the Apache web server.</span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="font-family: verdana; font-size: large;"><code class="language-markup" style="box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# </code>sudo systemctl enable apache2 </span></pre><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="font-family: verdana; font-size: large;"><code class="language-markup" style="box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# </code>sudo systemctl start apache2 </span></pre><div><span style="font-family: verdana; font-size: large;">Step 2 – Install phpMyAdmin on Ubuntu 22.04</span></div><p><span style="font-family: verdana; font-size: large;">You can quickly install the phpMyAdmin from the default Ubuntu repositories. But they contain an older version of phpMyAdmin. you can install the older using this command <b>apt install phpMyAdmin</b>, but to install the latest version, you need to download it from the official website.</span></p><p><span style="font-family: verdana; font-size: large;">Download the latest phpMyAdmin archive from the <a href="https://www.phpmyadmin.net/downloads/" target="_blank">official download page</a>.</span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="font-family: verdana; font-size: large;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none;">root@hackthesec</a> ~]# wget https://files.phpmyadmin.net/phpMyAdmin/5.2.0/phpMyAdmin-5.2.0-all-languages.zip
[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none; word-spacing: normal;">root@hackthesec</a><span style="word-spacing: normal;"> ~]# </span>unzip phpMyAdmin-5.2.0-all-languages.zip
[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none; word-spacing: normal;">root@hackthesec</a><span style="word-spacing: normal;"> ~]# </span>sudo mv phpMyAdmin-5.2.0-all-languages /usr/share/phpmyadmin
</code><code class="language-markup" style="box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; white-space: normal; word-break: normal;">
</code></span></pre><div><div><span style="font-family: verdana; font-size: large;">Next, create tmp directory and set the proper permissions. This is a necessary step to make it work properly.</span></div></div><div><span style="font-family: verdana; font-size: large;"><br /></span></div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="font-family: verdana; font-size: large;"><code class="language-markup" style="box-sizing: border-box; color: #f8f8f2; direction: ltr; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none; word-spacing: normal;">root@hackthesec</a><span style="word-spacing: normal;"> ~]# </span></code><span style="color: #f8f8f2;"><span>sudo mkdir /usr/share/phpmyadmin/tmp
</span></span><span style="color: white;">[</span><a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none; word-spacing: normal;">root@hackthesec</a><span style="color: #f8f8f2; word-spacing: normal;"> ~]# </span><span style="color: #f8f8f2;"><span>sudo chown -R www-data:www-data /usr/share/phpmyadmin
</span></span><span style="color: white;">[</span><a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none; word-spacing: normal;">root@hackthesec</a><span style="color: #f8f8f2; word-spacing: normal;"> ~]#</span><span style="color: #f8f8f2;"><span>sudo chmod 777 /usr/share/phpmyadmin/tmp</span></span></span></pre><div><div><b><span style="color: #2b00fe; font-family: verdana; font-size: large;">Step 3 – Configure phpMyAdmin</span></b></div><div><span style="font-family: verdana; font-size: large;"><br /></span></div><div><span style="font-family: verdana; font-size: large;">Now, you need to configure the webserver to serve phpMyAdmin on the network. Create an Apache configuration file for phpMyAdmin and edit it in a text editor:</span></div></div><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="font-family: verdana; font-size: large;"><span style="color: white;">[</span><a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none; word-spacing: normal;">root@hackthesec</a><span style="color: #f8f8f2; word-spacing: normal;"> ~]# sudo </span><span style="color: #f8f8f2;"><span>nano /etc/apache2/conf-available/phpmyadmin.conf</span></span></span></pre><p><span style="font-family: verdana; font-size: large;">add the below content to the file.</span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="color: white; font-family: verdana; font-size: large;">Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin/>
AddDefaultCharset UTF-8
<IfModule mod_authz_core.c>
<RequireAny>
Require all granted
</RequireAny>
</IfModule>
</Directory>
<Directory /usr/share/phpmyadmin/setup/>
<IfModule mod_authz_core.c>
<RequireAny>
Require all granted
</RequireAny>
</IfModule>
</Directory></span></pre><p><span style="font-family: verdana; font-size: large;">Save and exit after that reload or restart the apache2 once using below command also you have to enable the newly created config file </span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="font-family: verdana; font-size: large;"><span style="color: white;">[</span><a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none; word-spacing: normal;">root@hackthesec</a><span style="color: #f8f8f2; word-spacing: normal;"> ~]# </span><span style="color: #f8f8f2;"><span>sudo a2enconf phpmyadmin
</span></span><span style="color: white;">[</span><a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none; word-spacing: normal;">root@hackthesec</a><span style="color: #f8f8f2; word-spacing: normal;"> ~]# </span><span style="color: #f8f8f2;"><span>sudo systemctl restart apache2</span></span></span></pre><p><span style="font-family: verdana; font-size: large;">Step 4 – Adjusting FirewallD</span></p><p><span style="font-family: verdana; font-size: large;">The systems with enabled firewalls need to allow HTTP service from the firewall. Run the below commands to open a port for the webserver in the firewall.</span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="font-family: verdana; font-size: large;"><span style="color: white;">[</span><a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none; word-spacing: normal;">root@hackthesec</a><span style="color: #f8f8f2; word-spacing: normal;"> ~]# </span><span style="color: #f8f8f2;"><span>sudo firewall-cmd --permanent --add-service=http</span></span></span></pre><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="font-family: verdana; font-size: large;"><span style="color: white;">[</span><a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none; word-spacing: normal;">root@hackthesec</a><span style="color: #f8f8f2; word-spacing: normal;"> ~]# </span><span style="color: #f8f8f2;"><span>sudo firewall-cmd --reload </span></span></span></pre><p><span style="font-family: verdana; font-size: large;">Step 5 – Create a MySQL Database and User</span></p><p><span style="font-family: verdana; font-size: large;">Connect to the MySQL server running on your system.</span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="font-family: verdana; font-size: large;"><span style="color: white;">[</span><a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none; word-spacing: normal;">root@hackthesec</a><span style="color: #f8f8f2; word-spacing: normal;"> ~]# mysql</span></span></pre><p><span style="font-family: verdana; font-size: large;"> If you already setup the root password for mysql then you have to use </span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="font-family: verdana; font-size: large;"><span style="color: white;">[</span><a class="token email-link" href="https://www.hackthesec.co.in/2023/02/root@hackthesec" style="background-color: transparent; box-sizing: border-box; color: #007abe; text-decoration-line: none; word-spacing: normal;">root@hackthesec</a><span style="color: #f8f8f2; word-spacing: normal;"> ~]# mysql -uroot -p</span></span></pre><p><span style="font-family: verdana; font-size: large;">Execute the following MySQL queries one by one to create a database and user. Also, assign the privileges to the user on the database. </span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="color: white; font-family: verdana; font-size: large;">mysql> CREATE DATABASE hackthesec;
Query OK, 1 row affected (0.01 sec)
mysql> CREATE USER 'hackthesec'@'localhost' IDENTIFIED BY 'Strong@password';
Query OK, 0 rows affected (0.01 sec)
mysql> GRANT ALL ON hackthesec.* TO 'hackthesec'@'localhost';
Query OK, 0 rows affected (0.01 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)</span></pre><p><span style="font-family: verdana; font-size: large;">Step 6 – Access phpMyAdmin</span></p><p><span style="font-family: verdana; font-size: large;"></span></p><p><span style="font-family: verdana; font-size: large;">All done. You have finished the setup with the phpMyAdmin on the Ubuntu Linux system. Now access phpMyAdmin with the server IP address or domain name.</span></p><pre class="language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; direction: ltr; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><span style="color: white; font-family: verdana; font-size: large;">http://your-server-ip-domain/phpmyadmin
</span></pre><div><span style="font-family: verdana; font-size: large;"><br /></span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNCpdbB4bEgUSF6aVH3Z9gWiTv9-Hq3fwF6NC8IVFj53JubxJK6MiF5hyphenhyphen7V9Ty5f3s8IUof1Rm0Xf2kp1feQ0P4TGrRcv1bl6tWXgMl5kFoTRwNYIs-OMsF4FaDZndJTeLyOtm2pGUba2f/s508/login_phpmyadmin_www.hackthesec.co.in.png" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: verdana; font-size: large;"><img border="0" data-original-height="508" data-original-width="483" height="315" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNCpdbB4bEgUSF6aVH3Z9gWiTv9-Hq3fwF6NC8IVFj53JubxJK6MiF5hyphenhyphen7V9Ty5f3s8IUof1Rm0Xf2kp1feQ0P4TGrRcv1bl6tWXgMl5kFoTRwNYIs-OMsF4FaDZndJTeLyOtm2pGUba2f/w450-h315/login_phpmyadmin_www.hackthesec.co.in.png" width="450" /></span></a></div><div class="separator" style="clear: both; text-align: left;"><span style="font-family: verdana; font-size: large;">@hackthesecurity</span></div>Sarkari-job.comhttp://www.blogger.com/profile/01796991448891824956noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-47268216880321057432023-05-23T01:36:00.005+05:302023-05-23T01:40:13.362+05:30How To Install MySQL Server on Ubuntu 22.04<p style="text-align: center;"><span style="color: #2b00fe; font-family: verdana; font-size: large;"><b><u>How To Install MySQL Server on Ubuntu 22.04</u></b></span></p><p><span style="font-family: verdana; font-size: large;">MySQL is an open-source relational database management system (RDBMS).Its name is a combination of "My", the name of co-founder Michael Widenius's daughter My, and "SQL", the acronym for Structured Query Language. A relational database organizes data into one or more data tables in which data may be related to each other; these relations help structure the data. SQL is a language programmers use to create, modify and extract data from the relational database, as well as control user access to the database. In addition to relational databases and SQL, an RDBMS like MySQL works with an operating system to implement a relational database in a computer's storage system, manages users, allows for network access and facilitates testing database integrity and creation of backups.</span></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqb_IjkqiXKg6rDmYejq7XSHARNEO7FQeNRUS_wOIn21jrjNbbAU7E6G9eRLRdYqi_Rde4_MExFxTI7vEQLKUepAv77VJY1ZcxLbpmQ-UaCqNfiVGecOeUXAnJxJOQqO-mHBETDm6S0oRb/s698/mysql-hackthesec.png" style="margin-left: 1em; margin-right: 1em;"><span style="font-size: large;"><img border="0" data-original-height="400" data-original-width="698" height="366" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqb_IjkqiXKg6rDmYejq7XSHARNEO7FQeNRUS_wOIn21jrjNbbAU7E6G9eRLRdYqi_Rde4_MExFxTI7vEQLKUepAv77VJY1ZcxLbpmQ-UaCqNfiVGecOeUXAnJxJOQqO-mHBETDm6S0oRb/w640-h366/mysql-hackthesec.png" width="640" /></span></a></div><span style="font-size: large;"><br /><span style="font-family: verdana;"><br /></span></span><p></p><p><span style="color: #2b00fe; font-family: verdana; font-size: large;"><b>Step 1 – Installing MySQL on Ubuntu 22.04</b></span></p><p><span style="font-family: verdana; font-size: large;">The default Ubuntu repositories contain MySQL 8.0. Which can be installed directly using the package manager without adding third-party PPA.</span></p><p><span style="font-family: verdana; font-size: large;">To install the available MySQL server version, execute the following command.</span></p><pre style="background: none 0px 0px repeat scroll rgb(60, 60, 60); border-radius: 4px; border: 1px solid rgb(229, 229, 229); margin-bottom: 20px; outline: 0px; overflow: auto; padding: 20px; vertical-align: baseline;"><span style="font-family: verdana; font-size: large;"><span style="color: #333333;"><span style="color: white; line-height: 15.6px;">[root@hackthesec]# </span></span><span style="color: white;">apt-get install mysql-server</span></span></pre><p><span style="font-family: verdana; font-size: large;">Press 'y' for any confirmation asked by the installer.</span></p><p><span style="font-family: verdana; font-size: large;">Once the installation is finished, you can secure the MySQL server by executing the following command.</span></p><pre style="background: none 0px 0px repeat scroll rgb(60, 60, 60); border-radius: 4px; border: 1px solid rgb(229, 229, 229); margin-bottom: 20px; outline: 0px; overflow: auto; padding: 20px; vertical-align: baseline;"><span style="font-family: verdana; font-size: large;"><span style="color: #333333;"><span style="color: white; line-height: 15.6px;">[root@hackthesec]# </span></span><span style="color: white;">sudo mysql_secure_installation</span></span></pre><p><span style="font-family: verdana; font-size: large;">You will go through a wizard of questions to secure the MySQL server. Follow the onscreen instructions below:</span></p><pre style="background: none 0px 0px repeat scroll rgb(60, 60, 60); border-radius: 4px; border: 1px solid rgb(229, 229, 229); color: #333333; margin-bottom: 20px; outline: 0px; overflow: auto; padding: 20px; vertical-align: baseline;"><span style="color: white; line-height: 15.6px;"><span style="font-family: verdana; font-size: large;">[root@hackthesec]#</span></span></pre><p><span style="font-family: verdana; font-size: large;">Press ‘y’ to enable validate password plugin. This will allow you to set a strict password policy for user accounts.</span></p><pre style="background: none 0px 0px repeat scroll rgb(60, 60, 60); border-radius: 4px; border: 1px solid rgb(229, 229, 229); margin-bottom: 20px; outline: 0px; overflow: auto; padding: 20px; vertical-align: baseline;"><span style="color: white; font-family: verdana; font-size: large;"><span style="line-height: 15.6px;">[root@hackthesec]# </span>VALIDATE PASSWORD COMPONENT can be used to test passwords</span><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">and improve security. It checks the strength of password</span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">and allows the users to set only those passwords which are</span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">secure enough. Would you like to setup VALIDATE PASSWORD component?</span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;"><br /></span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">Press y|Y for Yes, any other key for No: y</span></p><span style="color: #333333;"><span style="color: white; line-height: 15.6px;"><span style="font-family: verdana; font-size: large;">
</span></span></span></pre><p><span style="font-family: verdana; font-size: large;">Chose the password complexity level. Read the all 3 options and choose one:</span></p><pre style="background: none 0px 0px repeat scroll rgb(60, 60, 60); border-radius: 4px; border: 1px solid rgb(229, 229, 229); margin-bottom: 20px; outline: 0px; overflow: auto; padding: 20px; vertical-align: baseline;"><span style="color: white; font-family: verdana;"><span style="font-size: large; line-height: 15.6px;">[root@hackthesec]# LOW Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary file
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 1 </span></span></pre><p><span style="font-family: verdana; font-size: large;">Enter a new password and re-enter it. Make sure it matches the complexity level as described above.</span></p><pre style="background: none 0px 0px repeat scroll rgb(60, 60, 60); border-radius: 4px; border: 1px solid rgb(229, 229, 229); margin-bottom: 20px; outline: 0px; overflow: auto; padding: 20px; vertical-align: baseline;"><span style="color: white; font-family: verdana;"><span style="font-size: large; line-height: 15.6px;">[root@hackthesec]#
</span></span><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">New password: *************</span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">Re-enter new password: *************</span></p><span style="color: white; font-family: verdana; font-size: large;">Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y</span></pre><p><span style="color: #2b00fe; font-family: verdana; font-size: large;"><b>Step 2 – Connect to MySQL Server</b></span></p><p><span style="font-family: verdana; font-size: large;">Remember that the above password set for the root accounts is used for remote users only. To log in from the same system, just type mysql on terminal.</span></p><pre style="background: none 0px 0px repeat scroll rgb(60, 60, 60); border-radius: 4px; border: 1px solid rgb(229, 229, 229); color: #333333; margin-bottom: 20px; outline: 0px; overflow: auto; padding: 20px; vertical-align: baseline;"><span style="color: white; line-height: 15.6px;"><span style="font-family: verdana; font-size: large;">[root@hackthesec]# sudo mysql</span></span></pre><pre style="background: none 0px 0px repeat scroll rgb(60, 60, 60); border-radius: 4px; border: 1px solid rgb(229, 229, 229); margin-bottom: 20px; outline: 0px; overflow: auto; padding: 20px; vertical-align: baseline;"><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">Welcome to the MySQL monitor. Commands end with ; or \g.</span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">Your MySQL connection id is 14</span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">Server version: 8.0.28-0ubuntu4 (Ubuntu)</span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;"><br /></span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">Copyright (c) 2000, 2022, Oracle and/or its affiliates.</span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;"><br /></span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">Oracle is a registered trademark of Oracle Corporation and/or its</span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">affiliates. Other names may be trademarks of their respective</span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">owners.</span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;"><br /></span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.</span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;"><br /></span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">mysql></span></p><span style="color: #333333;"><span style="color: white; line-height: 15.6px;"><span style="font-family: verdana; font-size: large;">
</span></span></span></pre><p><span style="color: #2b00fe; font-family: verdana; font-size: large;"><b>Step 3 – Creating Database and Users</b></span></p><p><span style="font-family: verdana; font-size: large;">Here is few example queries to create database and users in MySQL server.</span></p><pre style="background: none 0px 0px repeat scroll rgb(60, 60, 60); border-radius: 4px; border: 1px solid rgb(229, 229, 229); margin-bottom: 20px; outline: 0px; overflow: auto; padding: 20px; vertical-align: baseline;"><span style="color: #333333;"><span style="color: white; line-height: 15.6px;"><span style="font-family: verdana; font-size: large;">[root@hackthesec]#
</span></span></span><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">Create a database named ‘hackthesec’.</span></p><p style="white-space: normal;"><span style="font-family: verdana; font-size: large;"><span style="color: white;">CREATE DATABASE </span><span style="color: white;">hackthesec</span><span style="color: white;">; </span></span></p><p style="white-space: normal;"><span style="font-family: verdana; font-size: large;"><span style="color: white;">Next, create a user named ‘</span><span style="color: white;">hackthesec</span><span style="color: white;">’ accessible from ‘localhost’ only.</span></span></p><p style="white-space: normal;"><span style="font-family: verdana; font-size: large;"><span style="color: white;">CREATE USER '</span><span style="color: white;">hackthesec</span><span style="color: white;">'@'localhost' IDENTIFIED BY 'Secure321'; </span></span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">Grant permissions on database to user.</span></p><p style="white-space: normal;"><span style="font-family: verdana; font-size: large;"><span style="color: white;">GRANT ALL ON mydb.* to '</span><span style="color: white;">hackthesec</span><span style="color: white;">'@'localhost'; </span></span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">Apply the permission changes at runtime.</span></p><p style="white-space: normal;"><span style="color: white; font-family: verdana; font-size: large;">FLUSH PRIVILEGES; </span></p></pre><p><span style="font-family: verdana; font-size: large;"><br /></span></p><p><span style="color: #2b00fe; font-family: verdana; font-size: large;"><b>Step 4 – Manage MySQL Service</b></span></p><p><span style="font-family: verdana; font-size: large;">To check the database server status.</span></p><pre style="background: none 0px 0px repeat scroll rgb(60, 60, 60); border-radius: 4px; border: 1px solid rgb(229, 229, 229); margin-bottom: 20px; outline: 0px; overflow: auto; padding: 20px; vertical-align: baseline;"><span style="font-family: verdana; font-size: large;"><span style="color: #333333;"><span style="color: white; line-height: 15.6px;">[root@hackthesec]# </span></span><span style="color: white;">sudo systemctl status mysql</span></span></pre><p><span style="font-family: verdana; font-size: large;">Use below command to start MySQL server.</span></p><pre style="background: none 0px 0px repeat scroll rgb(60, 60, 60); border-radius: 4px; border: 1px solid rgb(229, 229, 229); margin-bottom: 20px; outline: 0px; overflow: auto; padding: 20px; vertical-align: baseline;"><span style="font-family: verdana; font-size: large;"><span style="color: #333333;"><span style="color: white; line-height: 15.6px;">[root@hackthesec]# </span></span><span style="color: white;">sudo systemctl start mysql</span></span></pre><p><span style="font-family: verdana; font-size: large;">To stop MySQL server:</span></p><pre style="background: none 0px 0px repeat scroll rgb(60, 60, 60); border-radius: 4px; border: 1px solid rgb(229, 229, 229); margin-bottom: 20px; outline: 0px; overflow: auto; padding: 20px; vertical-align: baseline;"><span style="font-family: verdana; font-size: large;"><span style="color: #333333;"><span style="color: white; line-height: 15.6px;">[root@hackthesec]# </span></span><span style="color: white;">sudo systemctl stop mysql</span></span></pre><p><span style="font-family: verdana; font-size: large;">Restart MySQL database server, type:</span></p><pre style="background: none 0px 0px repeat scroll rgb(60, 60, 60); border-radius: 4px; border: 1px solid rgb(229, 229, 229); margin-bottom: 20px; outline: 0px; overflow: auto; padding: 20px; vertical-align: baseline;"><span style="font-family: verdana; font-size: large;"><span style="color: #333333;"><span style="color: white; line-height: 15.6px;">[root@hackthesec]# </span></span><span style="color: white;">sudo systemctl restart mysql</span></span></pre><p><span style="font-size: large;"><br /></span></p><p><span style="font-family: verdana; font-size: large;">@hackthesecurity</span></p>Sarkari-job.comhttp://www.blogger.com/profile/01796991448891824956noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-32204363224658134092023-03-16T22:09:00.006+05:302023-03-16T22:13:21.424+05:30vDDoS Proxy Protection<p> <span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="background-color: white; color: #24292f; font-size: 16px;">Welcome to vDDoS, a HTTP(S) DDoS Protection Reverse Proxy.</span></p><p dir="auto" style="background-color: white; box-sizing: border-box; margin-bottom: 16px; margin-top: 0px;"></p><ul><li><span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="color: #24292f;">Homepage: <a href="http://vddos.voduy.com/">http://vddos.voduy.com</a></span></li><li><span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="color: #24292f;">Discussion/Community: <a href="https://groups.google.com/g/voduydotcom?label=vddos-proxy-protection">https://groups.google.com/g/voduydotcom</a></span></li><li><span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="color: #24292f;">Github: <a href="https://github.com/duy13/vDDoS-Protection">https://github.com/duy13/vDDoS-Protection</a></span></li><li><span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="color: #24292f;">SourceForge: <a href="https://sourceforge.net/projects/vddos-protection">https://sourceforge.net/projects/vddos-protection</a></span></li><li><span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="color: #24292f;">Youtube Playlist: <a href="https://link.voduy.com/vddos-youtube">https://link.voduy.com/vddos-youtube</a></span></li><li><span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="color: #24292f;">Thanks to Nginx, Inc: <a href="https://github.com/nginx/nginx">https://github.com/nginx/nginx</a></span></li><li><span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="color: #24292f;">Thanks to Alibaba/Tengine: <a href="https://github.com/alibaba/tengine">https://github.com/alibaba/tengine</a></span></li><li><span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="color: #24292f;">Thanks to Kyprizel testcookie: <a href="https://github.com/kyprizel/testcookie-nginx-module">https://github.com/kyprizel/testcookie-nginx-module</a></span></li><li><span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="color: #24292f;">Thanks to NBS System naxsi: <a href="https://github.com/nbs-system/naxsi">https://github.com/nbs-system/naxsi</a></span></li></ul><p></p><div class="vddos-layer4-cloudflare-api" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnEj1BmnqEraaoVnt0cmRy1axqm9hVbMOaKqYGv6yrW77iBjbJ1VSeLwttTnBIxGpgDrvw7nCr9kSAPMx_j09ZY-TpLDg39cSZFJEQLK63HlEUineo5JwuyHL9WT4CzwdrQIWmmMMMNE-h/s2500/vddos-layer4-cloudflare-api.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="500" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnEj1BmnqEraaoVnt0cmRy1axqm9hVbMOaKqYGv6yrW77iBjbJ1VSeLwttTnBIxGpgDrvw7nCr9kSAPMx_j09ZY-TpLDg39cSZFJEQLK63HlEUineo5JwuyHL9WT4CzwdrQIWmmMMMNE-h/s2500/vddos-layer4-cloudflare-api.png" /></a></div><br /><div style="text-align: center;"><iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/VsGCeZcAtCw?autoplay=1&mute=1" title="YouTube video player" width="560"></iframe></div><div></div><h2 dir="auto" style="background-color: white; border-bottom: 1px solid var(--color-border-muted); box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.25; margin-bottom: 16px; margin-top: 24px; padding-bottom: 0.3em;"><a aria-hidden="true" class="anchor" href="https://vddos.voduy.com/#system-requirement" id="user-content-system-requirement" style="background-color: transparent; box-sizing: border-box; float: left; line-height: 1; margin-left: -20px; padding-right: 4px; text-decoration-line: none;"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a>System Requirement</h2><ul dir="auto" style="background-color: white; box-sizing: border-box; margin-bottom: 16px; margin-top: 0px; padding-left: 2em;"><li style="box-sizing: border-box;"><span face="-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji" style="color: #24292f;"><b>CentOS/CloudLinux/AlmaLinux/RockyLinux/RedHat:</b><br /><pre style="background-color: var(--color-canvas-subtle); border-radius: 6px; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13.6px; line-height: 1.45; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code style="background: transparent; border-radius: 6px; border: 0px; box-sizing: border-box; display: inline; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;">yum -y install epel-release ; yum -y install wget zip unzip tar curl && \
yum -y install nano net-tools curl wget gc gcc gcc-c++ pcre-devel zlib-devel make wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel gperftools gperftools-devel perl-ExtUtils-Embed && \
yum -y install screen htop iotop iptraf nano net-tools gcc automake libffi-devel zlib zlib-devel gcc gcc-c++ autoconf apr-util-devel gc gcc gcc-c++ pcre-devel zlib-devel make wget openssl openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel gperftools gperftools-devel perl-ExtUtils-Embed && \
yum -y install gnutls-utils sshpass rsync && \
yum -y install bind-utils sysstat bc tar curl wget gc gcc gcc-c++ pcre-devel zlib-devel make wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel gperftools gperftools-devel perl-ExtUtils-Embed gcc automake autoconf apr-util-devel gc gcc gcc-c++ pcre-devel zlib-devel make wget openssl openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel gperftools gperftools-devel perl-ExtUtils-Embed perl perl-devel perl-ExtUtils-Embed libxslt libxslt-devel libxml2 libxml2-devel gd gd-devel GeoIP GeoIP-devel gperftools-devel wget yum-utils make gcc openssl-devel bzip2-devel libffi-devel zlib-devel screen htop iotop iptraf nano net-tools gcc automake libffi-devel zlib zlib-devel gcc gcc-c++ autoconf apr-util-devel gc </code></pre></span></li><li style="box-sizing: border-box;"><span face="-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji" style="color: #24292f;"><b>Ubuntu/Debian:<br /><pre style="background-color: var(--color-canvas-subtle); border-radius: 6px; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13.6px; font-weight: 400; line-height: 1.45; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code style="background: transparent; border-radius: 6px; border: 0px; box-sizing: border-box; display: inline; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;">apt update; apt -y install wget zip unzip tar curl ca-certificates && \
apt install -y perl libperl-dev libgd3 libgd-dev libgeoip1 libgeoip-dev geoip-bin libxml2 libxml2-dev libxslt1.1 libxslt1-dev && \
apt-get -y install build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl-dev libgd-dev libxml2 libxml2-dev uuid-dev && \
apt -y install curl wget build-essential checkinstall && \
apt -y install net-tools sshpass rsync sysstat bc dnsutils && \
apt -y install libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev</code></pre><br /></b></span></li><li style="box-sizing: border-box;"><span face="-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji" style="color: #24292f;"><b>(CentOS 7 need install this following package too, if you use it):</b><br /><pre style="background-color: var(--color-canvas-subtle); border-radius: 6px; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13.6px; line-height: 1.45; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code style="background: transparent; border-radius: 6px; border: 0px; box-sizing: border-box; display: inline; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;">yum -y install libatomic_ops-devel </code></pre></span></li><li style="box-sizing: border-box;"><span face="-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji" style="color: #24292f;"><b><b>(Ubuntu need install this following package too, if you use it):</b><br /><pre style="background-color: var(--color-canvas-subtle); border-radius: 6px; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13.6px; font-weight: 400; line-height: 1.45; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code style="background: transparent; border-radius: 6px; border: 0px; box-sizing: border-box; display: inline; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;">apt -y install libreadline-gplv2-dev</code></pre></b></span></li></ul><h2 dir="auto" style="background-color: white; border-bottom: 1px solid var(--color-border-muted); box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.25; margin-bottom: 16px; margin-top: 24px; padding-bottom: 0.3em;"><a aria-hidden="true" class="anchor" href="https://vddos.voduy.com/#install" id="user-content-install" style="background-color: transparent; box-sizing: border-box; float: left; line-height: 1; margin-left: -20px; padding-right: 4px; text-decoration-line: none;"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a>Install</h2><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">Install vDDoS Proxy Protection <span style="box-sizing: border-box; font-weight: 600;">Latest Version</span>:</p><div class="snippet-clipboard-content position-relative overflow-auto" style="background-color: white; box-sizing: border-box; overflow: auto; position: relative;"><pre style="background-color: var(--color-canvas-subtle); border-radius: 6px; box-sizing: border-box; line-height: 1.45; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code style="background: transparent; border-radius: 6px; border: 0px; box-sizing: border-box; display: inline; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;"><span face="ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace" style="color: #24292f;"><span style="font-size: 13.6px;">wget <a class="vglnk" href="https://files.voduy.com/vDDoS-Proxy-Protection/latest.sh" rel="nofollow">https://files.voduy.com/vDDoS-Proxy-Protection/latest.sh</a> ; chmod 700 latest.sh ; bash latest.sh
</span></span></code></pre></div><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">OR:</p><div class="snippet-clipboard-content position-relative overflow-auto" style="background-color: white; box-sizing: border-box; overflow: auto; position: relative;"><pre style="background-color: var(--color-canvas-subtle); border-radius: 6px; box-sizing: border-box; line-height: 1.45; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code style="background: transparent; border-radius: 6px; border: 0px; box-sizing: border-box; display: inline; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;"><span face="ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace" style="color: #24292f;"><span style="font-size: 13.6px;">latest_version=2.3.3
wget <a class="vglnk" href="https://files.voduy.com/vDDoS-Proxy-Protection/vddos-$latest_version.tar.gz" rel="nofollow">https://files.voduy.com/vDDoS-Proxy-Protection/vddos-$latest_version.tar.gz</a>
tar xvf vddos-$latest_version.tar.gz
chmod 700 *.sh
./install.sh
<br /></span></span></code></pre><pre style="background-color: var(--color-canvas-subtle); border-radius: 6px; box-sizing: border-box; line-height: 1.45; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code style="background: transparent; border-radius: 6px; border: 0px; box-sizing: border-box; display: inline; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;"><span face="ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace" style="color: #24292f;"><span style="font-size: 13.6px;">
1. MASTER
2. SLAVE
3. REMOVE ALL
0. Exit
________________________________________________________
Enter your choice [1, 2, 3 or 0]:
</span></span></code></pre></div><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">OR:</p><div class="snippet-clipboard-content position-relative overflow-auto" style="background-color: white; box-sizing: border-box; overflow: auto; position: relative;"><pre style="background-color: var(--color-canvas-subtle); border-radius: 6px; box-sizing: border-box; line-height: 1.45; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code style="background: transparent; border-radius: 6px; border: 0px; box-sizing: border-box; display: inline; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;"><span face="ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace" style="color: #24292f;"><span style="font-size: 13.6px;">./install.sh master #(master/slave)
</span></span></code></pre></div><div class="vddos-logo" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv0HZuUijuRrHIMoJr-x_HQy3m4Fa0hdl8TPn0Ps6H9t9IePT1FbkYEvUdTQy0F5WWf-m1p0wy-Ma4ozGd27meTZqjzZgoxUT3Vdr_yiQ2Vbi7xS2dVnUrV8mRTj0gtIMJ9DzTW49jytgX/s2500/vddos-master-slave.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="700" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv0HZuUijuRrHIMoJr-x_HQy3m4Fa0hdl8TPn0Ps6H9t9IePT1FbkYEvUdTQy0F5WWf-m1p0wy-Ma4ozGd27meTZqjzZgoxUT3Vdr_yiQ2Vbi7xS2dVnUrV8mRTj0gtIMJ9DzTW49jytgX/s2500/vddos-master-slave.png" /></a></div><br /><h2 dir="auto" style="background-color: white; border-bottom: 1px solid var(--color-border-muted); box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.25; margin-bottom: 16px; margin-top: 24px; padding-bottom: 0.3em;"><a aria-hidden="true" class="anchor" href="https://vddos.voduy.com/#using" id="user-content-using" style="background-color: transparent; box-sizing: border-box; float: left; line-height: 1; margin-left: -20px; padding-right: 4px; text-decoration-line: none;"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a>Using</h2><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">Example Edit website.conf:</p><div class="snippet-clipboard-content position-relative overflow-auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; overflow: auto; position: relative;"><pre style="background-color: var(--color-canvas-subtle); border-radius: 6px; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13.6px; line-height: 1.45; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code style="background: transparent; border-radius: 6px; border: 0px; box-sizing: border-box; display: inline; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;"># nano /vddos/conf.d/website.conf
# Website Listen Backend Cache Security SSL-Prikey SSL-CRTkey
default <a class="vglnk" href="http://0.0.0.0/" rel="nofollow">http://0.0.0.0:80</a> <a class="vglnk" href="http://127.0.0.1:8080/" rel="nofollow">http://127.0.0.1:8080</a> no 200 no no
<a class="vglnk" href="http://your-domain.com/" rel="nofollow">your-domain.com</a> <a class="vglnk" href="http://0.0.0.0/" rel="nofollow">http://0.0.0.0:80</a> <a class="vglnk" href="http://127.0.0.1:8080/" rel="nofollow">http://127.0.0.1:8080</a> no 200 no no
default <a class="vglnk" href="https://0.0.0.0/" rel="nofollow">https://0.0.0.0:443</a> <a class="vglnk" href="https://127.0.0.1:8443/" rel="nofollow">https://127.0.0.1:8443</a> no 307 /vddos/ssl/your-domain.com.pri /vddos/ssl/your-domain.com.crt
<a class="vglnk" href="http://your-domain.com/" rel="nofollow">your-domain.com</a> <a class="vglnk" href="https://0.0.0.0/" rel="nofollow">https://0.0.0.0:443</a> <a class="vglnk" href="https://127.0.0.1:8443/" rel="nofollow">https://127.0.0.1:8443</a> no 307 /vddos/ssl/your-domain.com.pri /vddos/ssl/your-domain.com.crt
<a class="vglnk" href="http://your-domain.com/" rel="nofollow">your-domain.com</a> <a class="vglnk" href="https://0.0.0.0:4343/" rel="nofollow">https://0.0.0.0:4343</a> <a class="vglnk" href="https://103.28.249.200/" rel="nofollow">https://103.28.249.200:443</a> yes click /vddos/ssl/your-domain.com.pri /vddos/ssl/your-domain.com.crt
</code></pre></div><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">Save config website.conf</p><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">Restart vDDoS:</p><div class="snippet-clipboard-content position-relative overflow-auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; overflow: auto; position: relative;"><pre style="background-color: var(--color-canvas-subtle); border-radius: 6px; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13.6px; line-height: 1.45; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code style="background: transparent; border-radius: 6px; border: 0px; box-sizing: border-box; display: inline; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;">vddos restart</code></pre></div><div class="which-attack-tools-vddos-proxy-can-block" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3zcBVSFZtx9LoNfkHe804QXCZfcTQQOphYEolSmL-exS5KZCbXN48AMtPISQCSgaXS_YTM-Qqq5hjoKc07Qg9CyEOO8L5tn7-uQbOsUiZXCVWqQopzp7P4lrsM4yIejUJ3zcqlZTCnjJy/s2500/which-attack-tools-vddos-proxy-can-block.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3zcBVSFZtx9LoNfkHe804QXCZfcTQQOphYEolSmL-exS5KZCbXN48AMtPISQCSgaXS_YTM-Qqq5hjoKc07Qg9CyEOO8L5tn7-uQbOsUiZXCVWqQopzp7P4lrsM4yIejUJ3zcqlZTCnjJy/s2500/which-attack-tools-vddos-proxy-can-block.png" /></a></div><br /><h2 dir="auto" style="background-color: white; border-bottom: 1px solid var(--color-border-muted); box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.25; margin-bottom: 16px; margin-top: 24px; padding-bottom: 0.3em;"><a aria-hidden="true" class="anchor" href="https://vddos.voduy.com/#explain-config" id="user-content-explain-config" style="background-color: transparent; box-sizing: border-box; float: left; line-height: 1; margin-left: -20px; padding-right: 4px; text-decoration-line: none;"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a>Explain Config:</h2><div class="snippet-clipboard-content position-relative overflow-auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; overflow: auto; position: relative;"><pre style="background-color: var(--color-canvas-subtle); border-radius: 6px; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13.6px; line-height: 1.45; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code style="background: transparent; border-radius: 6px; border: 0px; box-sizing: border-box; display: inline; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;">nano /vddos/conf.d/website.conf
</code></pre></div><h2 dir="auto" style="background-color: white; border-bottom: 1px solid var(--color-border-muted); box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.25; margin-bottom: 16px; margin-top: 24px; padding-bottom: 0.3em;"><a aria-hidden="true" class="anchor" href="https://vddos.voduy.com/#website" id="user-content-website" style="background-color: transparent; box-sizing: border-box; float: left; line-height: 1; margin-left: -20px; padding-right: 4px; text-decoration-line: none;"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a>Website:</h2><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;"><span style="box-sizing: border-box; font-weight: 600;">variable:</span> <em style="box-sizing: border-box;">default, <a class="vglnk" href="http://your-domain.com/" rel="nofollow">your-domain.com</a>, <a href="http://www.your-domain.com/" rel="nofollow" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">www.your-domain.com</a></em></p><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">Sets domain name listen. Note: only one default on one port listen Example:</p><div class="snippet-clipboard-content position-relative overflow-auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; overflow: auto; position: relative;"><pre style="background-color: var(--color-canvas-subtle); border-radius: 6px; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13.6px; line-height: 1.45; margin-bottom: 16px; margin-top: 0px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code style="background: transparent; border-radius: 6px; border: 0px; box-sizing: border-box; display: inline; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;"># Website Listen Backend Cache Security SSL-Prikey SSL-CRTkey
default <a class="vglnk" href="http://0.0.0.0/" rel="nofollow">http://0.0.0.0:80</a> <a class="vglnk" href="http://127.0.0.1:8080/" rel="nofollow">http://127.0.0.1:8080</a> no 200 no no
default <a class="vglnk" href="https://0.0.0.0/" rel="nofollow">https://0.0.0.0:443</a> <a class="vglnk" href="https://127.0.0.1:8443/" rel="nofollow">https://127.0.0.1:8443</a> no 200 /vddos/ssl/your-domain.com.pri /vddos/ssl/your-domain.com.crt
</code></pre></div><h2 dir="auto" style="background-color: white; border-bottom: 1px solid var(--color-border-muted); box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.25; margin-bottom: 16px; margin-top: 24px; padding-bottom: 0.3em;"><a aria-hidden="true" class="anchor" href="https://vddos.voduy.com/#listen" id="user-content-listen" style="background-color: transparent; box-sizing: border-box; float: left; line-height: 1; margin-left: -20px; padding-right: 4px; text-decoration-line: none;"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a>Listen:</h2><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;"><span style="box-sizing: border-box; font-weight: 600;">variable:</span> <em style="box-sizing: border-box;"><a href="http://0.0.0.0/" rel="nofollow" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">http://0.0.0.0:80</a>, <a href="https://0.0.0.0/" rel="nofollow" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">https://0.0.0.0:443</a>, <a href="http://123.234.012.321/" rel="nofollow" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">http://123.234.012.321:80</a>, <a class="vglnk" href="https://[::]/" rel="nofollow">https://[::]:443</a></em></p><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">Sets IP & Port listen.</p><h2 dir="auto" style="background-color: white; border-bottom: 1px solid var(--color-border-muted); box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.25; margin-bottom: 16px; margin-top: 24px; padding-bottom: 0.3em;"><a aria-hidden="true" class="anchor" href="https://vddos.voduy.com/#backend" id="user-content-backend" style="background-color: transparent; box-sizing: border-box; float: left; line-height: 1; margin-left: -20px; padding-right: 4px; text-decoration-line: none;"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a>Backend:</h2><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;"><span style="box-sizing: border-box; font-weight: 600;">variable:</span> <em style="box-sizing: border-box;"><a href="http://123.234.012.321/" rel="nofollow" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">http://123.234.012.321:80</a>, <a href="https://123.234.012.321/" rel="nofollow" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">https://123.234.012.321:443</a>, <a href="http://127.0.0.1:8080/" rel="nofollow" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">http://127.0.0.1:8080</a>, <a class="vglnk" href="https://[::1]:8443/" rel="nofollow">https://[::1]:8443</a></em></p><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">Sets Real IP & Port Backend Service.</p><h2 dir="auto" style="background-color: white; border-bottom: 1px solid var(--color-border-muted); box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.25; margin-bottom: 16px; margin-top: 24px; padding-bottom: 0.3em;"><a aria-hidden="true" class="anchor" href="https://vddos.voduy.com/#cache" id="user-content-cache" style="background-color: transparent; box-sizing: border-box; float: left; line-height: 1; margin-left: -20px; padding-right: 4px; text-decoration-line: none;"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a>Cache:</h2><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;"><span style="box-sizing: border-box; font-weight: 600;">variable:</span> <em style="box-sizing: border-box;">no, yes</em></p><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">Sets proxy cache website on vDDoS.</p><h2 dir="auto" style="background-color: white; border-bottom: 1px solid var(--color-border-muted); box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.25; margin-bottom: 16px; margin-top: 24px; padding-bottom: 0.3em;"><a aria-hidden="true" class="anchor" href="https://vddos.voduy.com/#security" id="user-content-security" style="background-color: transparent; box-sizing: border-box; float: left; line-height: 1; margin-left: -20px; padding-right: 4px; text-decoration-line: none;"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a>Security:</h2><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;"><span style="box-sizing: border-box; font-weight: 600;">variable:</span> <em style="box-sizing: border-box;">no, 307, 200, click, 5s, high, captcha, hcaptcha</em></p><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">Sets a valid for Security Level Protection. Note: no < 307 < 200 < click < 5s < high < captcha < hcaptcha</p><h2 dir="auto" style="background-color: white; border-bottom: 1px solid var(--color-border-muted); box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.25; margin-bottom: 16px; margin-top: 24px; padding-bottom: 0.3em;"><a aria-hidden="true" class="anchor" href="https://vddos.voduy.com/#ssl-prikey" id="user-content-ssl-prikey" style="background-color: transparent; box-sizing: border-box; float: left; line-height: 1; margin-left: -20px; padding-right: 4px; text-decoration-line: none;"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a> SSL-Prikey:</h2><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;"><span style="box-sizing: border-box; font-weight: 600;">variable:</span> <em style="box-sizing: border-box;">/location/ssl/key/of/your/private/key/privkey.pem</em></p><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">Sets SSL Private key website for vDDoS. Note: Option need for HTTPS Listen.</p><h2 dir="auto" style="background-color: white; border-bottom: 1px solid var(--color-border-muted); box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; line-height: 1.25; margin-bottom: 16px; margin-top: 24px; padding-bottom: 0.3em;"><a aria-hidden="true" class="anchor" href="https://vddos.voduy.com/#ssl-crtkey" id="user-content-ssl-crtkey" style="background-color: transparent; box-sizing: border-box; float: left; line-height: 1; margin-left: -20px; padding-right: 4px; text-decoration-line: none;"><svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z" fill-rule="evenodd"></path></svg></a> SSL-CRTkey:</h2><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;"><span style="box-sizing: border-box; font-weight: 600;">variable:</span> <em style="box-sizing: border-box;">/location/ssl/key/of/your/public/key/cert.pem</em></p><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">Sets SSL Public key website for vDDoS. Note: Option need for HTTPS Listen.</p><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">3rd Plugin:</p><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">vddos-sensor-plugin: <a href="https://github.com/ertugrulturan/vddos-sensor-plugin" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">https://github.com/ertugrulturan/vddos-sensor-plugin</a></p><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;"><br /></p><div class="donate-member-docs" style="clear: both;">Refer - https://vddos.voduy.com/</div>Rajhttp://www.blogger.com/profile/02793413996647910802noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-31179201737556695362023-02-18T19:54:00.005+05:302023-02-18T19:54:54.588+05:30Configure Postfix SMTP Relay (Smart Host) on CentOS 8<p><span style="font-size: x-large;"><u><b>Configure Postfix SMTP Relay (Smart Host) on CentOS 8</b></u></span></p><p><span style="font-size: x-large;"><u><b><br /></b></u></span></p><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;"><span style="box-sizing: border-box; font-weight: bolder;">Postfix</span> is a Mail Transport Agent (MTA), which can be easily configured as a private relay host, passing mail to other mail servers. Unlike Sendmail, Postfix is considered a very secure MTA, offering a high level of flexibility and ease of administration.<br style="box-sizing: border-box;" />In this article, I am configuring Postfix on CentOS 8 as SMTP smart host (relay host) using SASL authentication to send out mail.<br style="box-sizing: border-box;" /><span id="more-5177" style="box-sizing: border-box;"></span><br /><span style="font-weight: bolder;">1. Install Postfix</span></p><blockquote style="border: none; margin: 0 0 0 40px; padding: 0px;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgExCIgNV6dSQHUBuJSk7cnAf8X8jYG1wuC6oSMjlXn1enx_vc-wDCcb_coF_D3hCLkPHYGoXdQXiGHgFztfmQ7QuWBhMi26j_bg6vXcEFldqhLIv6e_TuiCOQi-eTeZq5VDeJsZ74-GVyJ_A18TzThvzbTHtBzIqLHcyomSTExNZtzcOzq7FxywZS3SQ/s1200/hackthesec.co.in_postfix.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="840" data-original-width="1200" height="224" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgExCIgNV6dSQHUBuJSk7cnAf8X8jYG1wuC6oSMjlXn1enx_vc-wDCcb_coF_D3hCLkPHYGoXdQXiGHgFztfmQ7QuWBhMi26j_bg6vXcEFldqhLIv6e_TuiCOQi-eTeZq5VDeJsZ74-GVyJ_A18TzThvzbTHtBzIqLHcyomSTExNZtzcOzq7FxywZS3SQ/s320/hackthesec.co.in_postfix.png" width="320" /></a></blockquote><div class="separator" style="clear: both; text-align: left;"><span style="background-color: white; color: #666666; font-family: Rubik, sans-serif; font-size: 16px;">Postfix should be preinstalled on CentOS 8 by default. If for some reason you don’t have the service installed, use the below command to install the relevant package:</span></div><div class="separator" style="clear: both; text-align: left;"><span style="background-color: white; color: #666666; font-family: Rubik, sans-serif; font-size: 16px;"><br /></span></div><pre class=" language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class=" language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="root@hackthesec" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">root@hackthesec</a> ~]# dnf install postfix</code></pre><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;"><span style="box-sizing: border-box; font-weight: bolder;">2. Install SASL plugin</span></p><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;">Package <span style="box-sizing: border-box; font-weight: bolder;">cyrus-sasl-plain</span> contains the Cyrus SASL plugins which support PLAIN and LOGIN authentication.</p><pre class=" language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class=" language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="root@hackthesec" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">root@hackthesec</a> ~]# dnf install cyrus-sasl-plain</code></pre><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;"><span style="box-sizing: border-box; font-weight: bolder;">3. Edit the configuration file</span></p><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;">I am configuring the service to act as SMTP smart host, sending the mail to hackthesec mail server, which is my ISP mail server, using SASL authentication (login and password).</p><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;">Edit <span style="box-sizing: border-box; font-weight: bolder;">/etc/postfix/main.cf</span> configuration file and update the below relevant lines:</p><pre class=" language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class=" language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">...
meta_directory = /etc/postfix
myhostname = chronos
mydomain = hackthesec.co.in
local_transport = error: this is a null client
myorigin = $myhostname.$mydomain
# list of trusted network addresses, that can relay through this MTA
mynetworks = 127.0.0.0/8 [::1]/128
relayhost = [hackthesec.co.in]
disable_dns_lookups = yes
# SASL authentication
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:</code>admin@hackthesec.co.in:mypassword</pre><pre class=" language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class=" language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">smtp_sasl_security_options = noanonymous
smtp_tls_security_level = encrypt
...</code></pre><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;"><span style="box-sizing: border-box; font-weight: bolder;">4. Test the configuration</span></p><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;">Test the configuration for any obvious errors. If the configuration is correct, the below command should not give any output:</p><pre class=" language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class=" language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="root@hackthesec" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">root@hackthesec</a> ~]# postfix check</code></pre><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;"><span style="box-sizing: border-box; font-weight: bolder;">5. Start and enable Postfix service</span></p><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;">Launch and enable Postfix daemon:</p><pre class=" language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class=" language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="root@hackthesec" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">root@hackthesec</a> ~]# systemctl start postfix
[<a class="token email-link" href="root@hackthesec" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">root@hackthesec</a> ~]# systemctl enable postfix</code></pre><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;"><span style="box-sizing: border-box; font-weight: bolder;">6. Test the e-mail delivery</span></p><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;">Verify the configuration by sending the test e-mail from the command line.<br style="box-sizing: border-box;" />Prepare test e-mail body:</p><pre class=" language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class=" language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="root@hackthesec" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">root@hackthesec</a> ~]# echo "Subject: Mail Delivery Test" > /tmp/mail.txt
[<a class="token email-link" href="root@hackthesec" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">root@hackthesec</a> ~]# echo "This is the example e-mail body" >> /tmp/mail.txt</code></pre><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;">Send the test e-mail using sendmail script with increased verbosity:</p><pre class=" language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class=" language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="root@hackthesec" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">root@hackthesec</a> ~]# sendmail -v admin@hackthesec.co.in < /tmp/mail.txt</code></pre><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;">Monitor the system journal to check if the e-mail was successfully relayed to the mail server:</p><pre class=" language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class=" language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="root@hackthesec" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">root@hackthesec</a> ~]# journalctl -u postfix<br /></code></pre><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;">Last but not least – check the recipient’s Inbox (or SPAM box), the test e-mail should be delivered successfully.</p><p style="background-color: white; box-sizing: border-box; color: #666666; font-family: Rubik, sans-serif; font-size: 16px; margin-bottom: 1rem; margin-top: 0px;">If for some reason the e-mail has not arrived yet, you can display mail queue on your relay host:</p><pre class=" language-markup" style="background: rgb(39, 40, 34); border-radius: 0.3em; box-sizing: border-box; color: #f8f8f2; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 15.36px; hyphens: none; line-height: 1.2; margin-bottom: 20px; margin-top: 0px; max-width: 100%; overflow: auto; padding: 10px; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal;"><code class=" language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;">[<a class="token email-link" href="root@hackthesec" style="background-color: transparent; box-sizing: border-box; text-decoration-line: none;">root@hackthesec</a> ~]# mailq</code></pre><div><code class=" language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;"><br /></code></div><div><code class=" language-markup" style="box-sizing: border-box; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", monospace; font-size: 14.7456px; hyphens: none; line-height: 1.2; tab-size: 4; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; word-break: normal; word-spacing: normal;"><br /></code></div>Rajhttp://www.blogger.com/profile/02793413996647910802noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-67172508874225432762023-02-16T17:45:00.005+05:302023-02-16T17:45:56.579+05:30COPY PUTTY (SSH) SESSIONS TO NEW OR OTHER COMPUTER<p> <b><u><span style="font-size: large;">COPY PUTTY (SSH) SESSIONS TO NEW/OTHER COMPUTER</span></u></b></p><p><span face="Lato, sans-serif" style="color: #2b2b2b; font-size: 16px;"><br /></span></p><p><span face="Lato, sans-serif" style="color: #2b2b2b; font-size: 16px;">I’m a huge fan of putty – available for download at:</span><span face="Lato, sans-serif" style="color: #2b2b2b; font-size: 16px;"> </span><a href="https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html" style="border: 0px; color: #24890d; font-family: inherit; font-size: 16px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Download PuTTY: latest release (0.78) (greenend.org.uk)</a></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiw6DmAPtJ_KtkLaWWcNiyFLTjlTgHEIc21VnBrMUjL4BZtlyMXXsjeMU7lBX91pK0N-blwlF02TCDRhaXA2kdojQFqOetYjidlc-nMYXzFoU0oEdkVFLeucqFLMuaSfVlD0vEDBxPMAyvMiUsAvzqiBgxZB5pLGhr-TZEhRWzMV5rTqYtpkVz92M/s1200/PuTTY_Icon_upstream.svg.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="1200" data-original-width="1200" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiw6DmAPtJ_KtkLaWWcNiyFLTjlTgHEIc21VnBrMUjL4BZtlyMXXsjeMU7lBX91pK0N-blwlF02TCDRhaXA2kdojQFqOetYjidlc-nMYXzFoU0oEdkVFLeucqFLMuaSfVlD0vEDBxPMAyvMiUsAvzqiBgxZB5pLGhr-TZEhRWzMV5rTqYtpkVz92M/w212-h212/PuTTY_Icon_upstream.svg.png" width="212" /></a></div><br /><p><br /></p><p style="border: 0px; color: #2b2b2b; font-family: Lato, sans-serif; font-size: 16px; margin: 0px 0px 24px; outline: 0px; padding: 0px; vertical-align: baseline;">Over time, I tend to accumulate a large number of saved “sessions” that I find it useful to either move to a new computer, or save/backup. He</p><p style="border: 0px; color: #2b2b2b; font-family: Lato, sans-serif; font-size: 16px; margin: 0px 0px 24px; outline: 0px; padding: 0px; vertical-align: baseline;"><code style="border: 0px; font-family: monospace, serif; font-size: 15px; font-style: inherit; font-weight: inherit; hyphens: none; line-height: 1.6; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">regedit /ea c:\Users\mark\dropbox\_mark\puttycopy.reg HKEY_CURRENT_USER\Software\SimonTatham\PuTTY</code></p><p style="border: 0px; color: #2b2b2b; font-family: Lato, sans-serif; font-size: 16px; margin: 0px 0px 24px; outline: 0px; padding: 0px; vertical-align: baseline;">Copied that puttycopy.reg to the new drive/computer.</p><p style="border: 0px; color: #2b2b2b; font-family: Lato, sans-serif; font-size: 16px; margin: 0px 0px 24px; outline: 0px; padding: 0px; vertical-align: baseline;">To add the saved sessions, just double clicked on that .reg file on the new computer.</p>Rajhttp://www.blogger.com/profile/02793413996647910802noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-91960074542495302422020-06-30T14:52:00.000+05:302020-06-30T14:52:16.860+05:30How to Enable exec() in PHP-FPM?<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #0b5394; font-family: verdana, geneva, sans-serif; font-size: large;"><b><u>How to Enable exec() in PHP-FPM?</u></b></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Sometimes the exec() function is not working after turning on the PHP-FPM and in php configuration file we could not find any disable functions. If we turned off the PHP-FPM the exec function is working again. If you are facing such issues, please follow the below steps.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">First, you need to verify the PHP-FPM is enabled on the domain that facing the issue. Please follow the steps.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">1) Login to WHM.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">2) Navigate to MultiPHP Manager to check whether the domain is using PHP-FPM or not.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">3) From that page, you can verify that the domain is using PHP-FPM.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfWqCwz5B8T5Cv_s0Os8aS6S8Hfze3b2pDQxZ-KSWoUHdr8-K2ZUCmebBq7yz1g2ZxS5oFP-IkhveBvoivs6hbvFA5E4t04HJTcecYbb3x3BFul9y-diEmz6p0_P5RFfg6_TSfM4v6bwep/s1600/Function_Enable_CPANEL_hackthesec.co.in.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="612" data-original-width="1068" height="227" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfWqCwz5B8T5Cv_s0Os8aS6S8Hfze3b2pDQxZ-KSWoUHdr8-K2ZUCmebBq7yz1g2ZxS5oFP-IkhveBvoivs6hbvFA5E4t04HJTcecYbb3x3BFul9y-diEmz6p0_P5RFfg6_TSfM4v6bwep/s400/Function_Enable_CPANEL_hackthesec.co.in.png" width="400" /></a></span></div>
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Now you have verified that PHP-FPM is on the server. So you need to follow the steps to enable exec() in PHP-FPM.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">1) Login to server via SSH.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">2) Check the PHP version of the server using the below command.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">#php -v</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">3) Then open the PHP-FPM configuration file.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">vi /opt/cpanel/ea-php70/root/etc/php-fpm.d/blah.domain.tld.conf</span></span></pre>
<div>
<span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;"><br /></span></span></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">4) Then you will find the exec() function in the disabled function list.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">php_admin_value[disable_functions] = passthru,shell_exec,system</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">5) Remove that from the above line.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">6) Then restart PHP-FPM using the below command.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">/scripts/restartsrv_apache_php_fpm</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Now exec() should works.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><u><b>* You can also do the same by following below steps.</b></u></span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">1) Create the /var/cpanel/ApachePHPFPM directory using the below command:</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">mkdir /var/cpanel/ApachePHPFPM</span></span></pre>
<div>
<span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;"><br /></span></span></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">2) Create the /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml file</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">touch /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">3) Open the file /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml using your text editor (e.g. vi, nano) :</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">vi /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">add the function that you want to disable.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">php_admin_value_disable_functions : passthru,system</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">In this example, "passthru,system" are left as disabled functions. No other lines exist before or after this entry in this file.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">4) Regenerate the PHP-FPM configuration files via:</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">/scripts/php_fpm_config –rebuild</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">Now exec() should works.</span><br />
<br />
<br />
<b><u>Thanks</u></b><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br /></div>
Rajhttp://www.blogger.com/profile/02793413996647910802noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-30675540066126160822019-01-02T17:33:00.000+05:302019-01-02T17:41:54.596+05:30How to Install oVirt on CentOS 7<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">oVirt is an open-source distributed virtualization solution, designed to manage your entire enterprise infrastructure. oVirt uses the trusted KVM hypervisor and is built upon several other community projects, including libvirt, Gluster, PatternFly, and Ansible. It was founded by Red Hat as a community project on which Red Hat Enterprise Virtualization is based. It allows centralized management of virtual machines, compute, storage and networking resources, from an easy-to-use web-based front-end with platform independent access. KVM on x86-64 and PPC architecture are the only hypervisors supported, but there is an ongoing effort to support ARM architecture in the future releases. .</span></span><br />
<br />
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">For more about </span></span><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">oVirt - https://en.wikipedia.org/wiki/OVirt</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUmaYcnufdZ74HLER1yvih8QP3cAzLo327L5b1AR0gS0nlgaiJsH3s7rzY7KPd0o0yuKzcEArIMRVHweF0TtOxIb01TYZMmmrEMNz3XzWePl5TTouAvELaaijP_IVFJlP5Kx5h0gb2fos_/s1600/OVirt-logo-highres.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="200" data-original-width="450" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUmaYcnufdZ74HLER1yvih8QP3cAzLo327L5b1AR0gS0nlgaiJsH3s7rzY7KPd0o0yuKzcEArIMRVHweF0TtOxIb01TYZMmmrEMNz3XzWePl5TTouAvELaaijP_IVFJlP5Kx5h0gb2fos_/s1600/OVirt-logo-highres.png" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b>oVirt Engine Packages Installation Process</b><br />===========================</span></span></div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">First, add the oVirt repository on your Centos 7 using below command. </span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release42.rpm</span></span></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvY6CRUPsDN1G1CjYjs1AGTNfQQOhv4781aaZascTh4TyZMibZIvHxtiNg5IXxU3m-C7vryrHI1A89SxcoSKdgWYkcMiNfrVTIGaK0iHP23ZCt3fqlw0MQq4tCzD2otHUa7HIJTP2pUGYj/s1600/oVirt_repo_hackthesec.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="495" data-original-width="797" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvY6CRUPsDN1G1CjYjs1AGTNfQQOhv4781aaZascTh4TyZMibZIvHxtiNg5IXxU3m-C7vryrHI1A89SxcoSKdgWYkcMiNfrVTIGaK0iHP23ZCt3fqlw0MQq4tCzD2otHUa7HIJTP2pUGYj/s1600/oVirt_repo_hackthesec.png" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Now update your centos 7 packages using below command.</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">yum update -y</span></span></pre>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Now, Run the following command to install the ovirt-engine package and dependencies.</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">yum install ovirt-engine -y</span></span></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikRgxvS2fMhi7JVoX3P-NAUnxY5OOgoO2G3gmk23HeZGPUH82y6j_hyphenhyphenHTYoKV5BymScffam9gS09PDY9jbchpwgBAHDug7K7yUTYQcwPp7NVEngG0Bp8LN_6UNJhAwcDzj8f9UoA9-bh2l/s1600/oVirt_install_hackthesec.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="502" data-original-width="801" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikRgxvS2fMhi7JVoX3P-NAUnxY5OOgoO2G3gmk23HeZGPUH82y6j_hyphenhyphenHTYoKV5BymScffam9gS09PDY9jbchpwgBAHDug7K7yUTYQcwPp7NVEngG0Bp8LN_6UNJhAwcDzj8f9UoA9-bh2l/s1600/oVirt_install_hackthesec.png" /></a></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><u><b>Configuring oVirt</b></u></span></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">After complete installation run the <span style="color: red;">engine-setup</span> command for configuration the oVirt Engine. </span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">engine-setup</span></span></pre>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"> Pres Enter to configure the engine:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">[root@hackthesec ~]# engine-setup
[ <span style="color: lime;">INFO </span>] Stage: Initializing
[ <span style="color: lime;">INFO </span>] Stage: Environment setup
Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf', '/etc/ovirt-engine-setup.conf.d/10-packaging.conf']
Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20190102113015-mptgj3.log
Version: otopi-1.7.8 (otopi-1.7.8-1.el7)
[ <span style="color: lime;">INFO </span>] Stage: Environment packages setup
[ <span style="color: lime;">INFO </span>] Stage: Programs detection
[ <span style="color: lime;">INFO </span>] Stage: Environment setup
[ <span style="color: lime;">INFO </span>] Stage: Environment customization
--== PRODUCT OPTIONS ==--
Configure Engine on this host (Yes, No) [Yes]: yes
Configure ovirt-provider-ovn (Yes, No) [Yes]: yes
Configure Image I/O Proxy on this host (Yes, No) [Yes]: yes
Configure WebSocket Proxy on this host (Yes, No) [Yes]: yes
* Please note * : Data Warehouse is required for the engine.
If you choose to not configure it on this host, you have to configure
it on a remote host, and then configure the engine on this host so
that it can access the database of the remote Data Warehouse host.
Configure Data Warehouse on this host (Yes, No) [Yes]: yes
Configure VM Console Proxy on this host (Yes, No) [Yes]: yes
--== PACKAGES ==--
[ <span style="color: lime;">INFO </span>] Checking for product updates...
[ <span style="color: lime;">INFO </span>] No product updates found
--== NETWORK CONFIGURATION ==--
Host fully qualified DNS name of this server [hackthesec]:
[WARNING] Host name hackthesec has no domain suffix
[WARNING] Failed to resolve hackthesec using DNS, it can be resolved only locally
[WARNING] Host name hackthesec has no domain suffix
[WARNING] Host name hackthesec has no domain suffix
[WARNING] Host name hackthesec has no domain suffix
--== DATABASE CONFIGURATION ==--
Where is the DWH database located? (Local, Remote) [Local]:
Setup can configure the local postgresql server automatically for the DWH to run. This may conflict with existing applications.
Would you like Setup to automatically configure postgresql and create DWH database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
Where is the Engine database located? (Local, Remote) [Local]:
Setup can configure the local postgresql server automatically for the engine to run. This may conflict with existing applications.
Would you like Setup to automatically configure postgresql and create Engine database, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
--== OVIRT ENGINE CONFIGURATION ==--
Engine admin password:
Confirm engine admin password:
[WARNING] Password is weak: it is too short
Use weak password? (Yes, No) [No]: yes
Application mode (Virt, Gluster, Both) [Both]: Both
Use default credentials (admin@internal) for ovirt-provider-ovn (Yes, No) [Yes]: yes
--== STORAGE CONFIGURATION ==--
Default SAN wipe after delete (Yes, No) [No]: No
--== PKI CONFIGURATION ==--
Organization name for certificate [Test]:
--== APACHE CONFIGURATION ==--
Setup can configure the default page of the web server to present the application home page. This may conflict with existing applications.
Do you wish to set the application as the default page of the web server? (Yes, No) [Yes]: yes
Setup can configure apache to use SSL using a certificate issued from the internal CA.
Do you wish Setup to configure that, or prefer to perform that manually? (Automatic, Manual) [Automatic]:
--== SYSTEM CONFIGURATION ==--
--== MISC CONFIGURATION ==--
Please choose Data Warehouse sampling scale:
(1) Basic
(2) Full
(1, 2)[1]: 1
--== END OF CONFIGURATION ==--
[ <span style="color: lime;">INFO </span>] Stage: Setup validation
[WARNING] Warning: Not enough memory is available on the host. Minimum requirement is 4096MB, and 16384MB is recommended.
Do you want Setup to continue, with amount of memory less than recommended? (Yes, No) [No]: yes
--== CONFIGURATION PREVIEW ==--
Application mode : both
Default SAN wipe after delete : False
Update Firewall : False
Host FQDN : hackthesec
Configure local Engine database : True
Set application as default page : True
Configure Apache SSL : True
Engine database secured connection : False
Engine database user name : engine
Engine database name : engine
Engine database host : localhost
Engine database port : 5432
Engine database host name validation : False
Engine installation : True
PKI organization : Test
Set up ovirt-provider-ovn : True
Configure WebSocket Proxy : True
DWH installation : True
DWH database host : localhost
DWH database port : 5432
Configure local DWH database : True
Configure Image I/O Proxy : True
Configure VMConsole Proxy : True
Please confirm installation settings (OK, Cancel) [OK]: OK
[ <span style="color: lime;">INFO </span>] Stage: Transaction setup
[ <span style="color: lime;">INFO </span>] Stopping engine service
[ <span style="color: lime;">INFO </span>] Stopping ovirt-fence-kdump-listener service
[ <span style="color: lime;">INFO </span>] Stopping dwh service
[ <span style="color: lime;">INFO </span>] Stopping Image I/O Proxy service
[ <span style="color: lime;">INFO </span>] Stopping vmconsole-proxy service
[ <span style="color: lime;">INFO </span>] Stopping websocket-proxy service
[ <span style="color: lime;">INFO </span>] Stage: Misc configuration
[ <span style="color: lime;">INFO </span>] Stage: Package installation
[ <span style="color: lime;">INFO </span>] Stage: Misc configuration
[ <span style="color: lime;">INFO </span>] Upgrading CA
[ <span style="color: lime;">INFO </span>] Initializing PostgreSQL
[ <span style="color: lime;">INFO </span>] Creating PostgreSQL 'engine' database
[ <span style="color: lime;">INFO </span>] Configuring PostgreSQL
[ <span style="color: lime;">INFO </span>] Creating PostgreSQL 'ovirt_engine_history' database
[ <span style="color: lime;">INFO </span>] Configuring PostgreSQL
[ <span style="color: lime;">INFO </span>] Creating CA
[ <span style="color: lime;">INFO </span>] Creating/refreshing DWH database schema
[ <span style="color: lime;">INFO </span>] Configuring Image I/O Proxy
[ <span style="color: lime;">INFO </span>] Setting up ovirt-vmconsole proxy helper PKI artifacts
[ <span style="color: lime;">INFO </span>] Setting up ovirt-vmconsole SSH PKI artifacts
[ <span style="color: lime;">INFO </span>] Configuring WebSocket Proxy
[ <span style="color: lime;">INFO </span>] Creating/refreshing Engine database schema
[ <span style="color: lime;">INFO </span>] Creating/refreshing Engine 'internal' domain database schema
[ <span style="color: lime;">INFO </span>] Creating default mac pool range
[ <span style="color: lime;">INFO </span>] Adding default OVN provider to database
[ <span style="color: lime;">INFO </span>] Adding OVN provider secret to database
[ <span style="color: lime;">INFO </span>] Setting a password for internal user admin
[ <span style="color: lime;">INFO </span>] Generating post install configuration file '/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf'
[ <span style="color: lime;">INFO </span>] Stage: Transaction commit
[ <span style="color: lime;">INFO </span>] Stage: Closing up
[ <span style="color: lime;">INFO </span>] Starting engine service
[ <span style="color: lime;">INFO </span>] Starting dwh service
[ <span style="color: lime;">INFO </span>] Restarting ovirt-vmconsole proxy service
--== SUMMARY ==--
[ <span style="color: lime;">INFO </span>] Restarting httpd
In order to configure firewalld, copy the files from
/etc/ovirt-engine/firewalld to /etc/firewalld/services
and execute the following commands:
firewall-cmd --permanent --add-service ovirt-postgres
firewall-cmd --permanent --add-service ovirt-https
firewall-cmd --permanent --add-service ovn-central-firewall-service
firewall-cmd --permanent --add-service ovirt-fence-kdump-listener
firewall-cmd --permanent --add-service ovirt-imageio-proxy
firewall-cmd --permanent --add-service ovirt-websocket-proxy
firewall-cmd --permanent --add-service ovirt-http
firewall-cmd --permanent --add-service ovirt-vmconsole-proxy
firewall-cmd --permanent --add-service ovirt-provider-ovn
firewall-cmd --reload
The following network ports should be opened:
tcp:2222
tcp:35357
tcp:443
tcp:5432
tcp:54323
tcp:6100
tcp:6641
tcp:6642
tcp:80
tcp:9696
udp:7410
An example of the required configuration for iptables can be found at:
/etc/ovirt-engine/iptables.example
Please use the user 'admin@internal' and password specified in order to login
Web access is enabled at:
http://hackthesec:80/ovirt-engine
https://hackthesec:443/ovirt-engine
Internal CA 18:E6:C2:E8:91:62:B1:66:96:6A:89:0F:2E:E7:BF:01:10:C8:D61
SSH fingerprint: SHA256:sMTFaRt94ic/+LT3ASGtj4Fla3qK7zSNSEXbvgkzObI
[WARNING] Warning: Not enough memory is available on the host. Minimum requirement is 4096MB, and 16384MB is recommended.
--== END OF SUMMARY ==--
[ <span style="color: lime;">INFO </span>] Stage: Clean up
Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20190102113015-mptgj3.log
[ <span style="color: lime;">INFO </span>] Generating answer file '/var/lib/ovirt-engine/setup/answers/20190102113350-setup.conf'
[ <span style="color: lime;">INFO </span>] Stage: Pre-termination
[ <span style="color: lime;">INFO </span>] Stage: Termination
[ <span style="color: lime;">INFO </span>] Execution of setup completed successfully
[root@hackthesec ~]#
</span></span></pre>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><u><b>Configure firewall </b></u></span></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">For access the oVirt web based management interface you have to open HTTP and HTTPS ports using below commands.</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">[root@hackthesec ~]# firewall-cmd --add-service=http --permanent</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">[root@hackthesec ~]# firewall-cmd --add-service=https --permanent</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">[root@hackthesec ~]# firewall-cmd --reload </span></span></pre>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><u><b>Now You Can Access oVirt Management Interface</b></u><br /><br />using your Ip address - https://192.168.1.1<br />or<br />https://ovirt.hackthesec.co.in</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb4fnxpyOJ3YWtRQjx4pUhTFCiv_eWrgaS7QYkOlEGl8m6CnI1L5bwPeBzpq2lYwSDLj-nm94V-xNVvio36lkMUAOZMZkX8VqBu_O8GtOYRPVzNQksjDOtd4_hog0ZDJXMGmlQVhDESglL/s1600/adminportal_dashboard.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="762" data-original-width="1600" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb4fnxpyOJ3YWtRQjx4pUhTFCiv_eWrgaS7QYkOlEGl8m6CnI1L5bwPeBzpq2lYwSDLj-nm94V-xNVvio36lkMUAOZMZkX8VqBu_O8GtOYRPVzNQksjDOtd4_hog0ZDJXMGmlQVhDESglL/s1600/adminportal_dashboard.png" /></a></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Thanks,<br />Hack The Sec</span></span></div>
</div>
Rajhttp://www.blogger.com/profile/02793413996647910802noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-54153306129738085062018-05-24T11:44:00.000+05:302018-05-24T11:47:36.834+05:30How to Monitor Server Logs in Real-Time with "Log.io"<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px; font-style: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"></span><br />
<div style="background-color: white; orphans: 2; text-align: center; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; widows: 2;">
<span style="background-color: transparent; text-align: left;"><span style="color: #3d85c6; font-family: "verdana" , "geneva" , sans-serif; font-size: medium;"><b><u>Monitor Server Logs in Real-Time with "Log.io"</u></b></span></span></div>
<div style="background-color: white; orphans: 2; text-align: center; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; widows: 2;">
<span style="background-color: transparent; text-align: left;"><span style="color: #3d85c6; font-family: "verdana" , "geneva" , sans-serif; font-size: medium;"><b><u><br /></u></b></span></span></div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Log.io is a small application build on Node.js and Socket.io for monitoring real time Linux server logs through web interface.</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><u>On RHEL/CentOS 7</u></span></span><br />
<br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Install Epel repositories using the following command.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">yum install http://fedora.mirrors.telekom.ro/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><u>On RHEL/CentOS 6</u></span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">--------------------- On RHEL/CentOS 6.x - 32 Bit ---------------------
yum install http://fedora.mirrors.telekom.ro/pub/epel/6/i386/epel-release-6-8.noarch.rpm</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">--------------------- On RHEL/CentOS 6.x - 64 Bit ---------------------
yum install http://fedora.mirrors.telekom.ro/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">After added the Epel repositories you can do a system upgrade by using following command line.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">yum update</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u>Now Install Node.js and NPM</u></b></span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><a href="https://www.hackthesec.co.in/search/label/Node.Js">Node.js</a> is an open-source, cross-platform JavaScript run-time environment that executes <a href="https://www.hackthesec.co.in/search/label/Java">JavaScript </a>code server-side. Historically, JavaScript was used primarily for client-side scripting, in which scripts written in JavaScript are embedded in a webpage's HTML and run client-side by a JavaScript engine in the user's web browser. Node.js lets developers use JavaScript for server-side scripting—running scripts server-side to produce dynamic web page content before the page is sent to the user's web browser. Consequently, Node.js represents a "<a href="https://www.hackthesec.co.in/search/label/Java">JavaScript </a>everywhere" paradigm, unifying web application development around a single programming language, rather than different languages for server side and client side scripts.now install the nodejs using following command line.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">curl --silent --location https://rpm.nodesource.com/setup_5.x | bash -
yum install -y nodejs</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u>Install and Configure Log.io Application</u></b></span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Log.io application must be installed through NPM by specifying a valid local system user ( example - root) i recommend install this application through root user. now install the application using following command.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">npm install -g log.io --user "root"</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">after the completed installation the application will create a folder which is hidden the folder name is "Log.io" in centos 7 the folder path is below</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">cd /root/.log.io
ls</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">after that you will see three file</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">harvester.conf, log_server.conf, web_server.conf </span></span></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuP1qRoNyiMnsgPnB-Ow6c5I1pgSS7YbymMqLT9Wj7uLnpBPeeEM8TDIfY81JpkCPL2ZaAu-rTcQ576SeX0QmR4eD8Qht30I1bvvCa7ujwrTOm3Kol2z99Ez0ubbbawS7nslknCIE5WL6Y/s1600/Log-io-hackthesec.co.in.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="227" data-original-width="620" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuP1qRoNyiMnsgPnB-Ow6c5I1pgSS7YbymMqLT9Wj7uLnpBPeeEM8TDIfY81JpkCPL2ZaAu-rTcQ576SeX0QmR4eD8Qht30I1bvvCa7ujwrTOm3Kol2z99Ez0ubbbawS7nslknCIE5WL6Y/s1600/Log-io-hackthesec.co.in.jpg" /></a></div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Now it's time to configure Log.io to monitor local log files in real time.</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">- The harvester file is for watches the changes in specified local log files declared in its configuration and send new log to the server. - </span></span><b style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">harvester.conf</b><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">First open the </span><b style="font-size: 15px;">harvester.conf</b><span style="font-size: 15px;"> file, by default you will see have some setting the monitor Apache log </span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">nano harvester.conf</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">my harvester.conf file below</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">exports.config = {
nodeName: "application_server",
logStreams: {
apache: [
"/var/log/httpd/access_log",
"/var/log/httpd/error_log"
],
SecureLog: [
"/var/log/secure"
],
MySqlLog: [
"/var/log/mysqld.log"
]
},
server: {
host: '0.0.0.0',
port: 28777
}
}</span></span>
</pre>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Note - if you don't want to send the harvester output to a remote Log.io server then open harvester.conf </span></span><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;">file and replace 0.0.0.0 address with lookback address(127.0.0.1)</span></div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">log_server.conf - This configuration is for tell the server on which ip address it should listen.By default it listens on all ip interfaces you can modify the ip address by using the following command </span></span></div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;">my log_server.conf file below</span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">nano log_server.conf</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">exports.config = {
host: '0.0.0.0',
port: 28777
}</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b>web_server.conf</b> - This configuration file is for web interface. by default the web portal is accessible on port 28778(all interface). Also using this file you can increase the security by using HTTP authentication,securing the web interface with SSL, disallow logs from specific ip address and restricting the web interface access to the specific ip. </span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;">my </span><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">web_server.conf file below</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">nano web_server.conf</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"> exports.config = {
host: '0.0.0.0',
port: 28778,
/*
// Enable HTTP Basic Authentication
auth: {
user: "hackthesec",
pass: "1234346"
},
*/
/*
// Enable HTTPS/SSL
ssl: {
key: '/path/to/privatekey.pem',
cert: '/path/to/certificate.pem'
},
*/
/*
// Restrict access to websocket (socket.io)
// Uses socket.io 'origins' syntax
restrictSocket: '*:*',
*/
/*
// Restrict access to http server (express)
restrictHTTP: [
"192.168.29.39",
"10.0.*"
]
*/
}</span></span>
</pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja29JCqUHeUn2NHEHOZPAz59BnbBqvH3fk7jLffTc6NfIrsZ2eXbW6k6odmEELRQnzsSYyYHmTCJgLLGpaJvJaVseDE2kx86B840v4Hpx8zI_xT6YAkttZmW3ntQSp1X3-Qn_juaETMJmb/s1600/web_server_hackthesec.co.in.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="638" data-original-width="772" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEja29JCqUHeUn2NHEHOZPAz59BnbBqvH3fk7jLffTc6NfIrsZ2eXbW6k6odmEELRQnzsSYyYHmTCJgLLGpaJvJaVseDE2kx86B840v4Hpx8zI_xT6YAkttZmW3ntQSp1X3-Qn_juaETMJmb/s1600/web_server_hackthesec.co.in.png" /></a></div>
<div>
<br /></div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Allow web interface and socket.io in the firewall for receiving the logs from the harvester.</span></span></div>
<div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">firewall-cmd --add-port=28778/tcp --permanent
firewall-cmd --add-port=28777/tcp --permanent
firewall-cmd --reload</span></span></pre>
</div>
<div>
<span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"><br /></span></span></div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Start Log.io Application using following command line </span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">------ First start server in background ----
log.io-server &</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">--- Start log harvester in background -----
log.io-harvester & </span></span></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRldk28y5_z1TiM28OKiNFnAcKxevfA2ntXReBPpbCg6bg4NIXAgA2qujEtdylCIxukUPN72GkGaxgalxkIKU-2UFF9D3p6UKpnmhcQ4D2OrvioPhymeb_WW3ykaQtfrSA-uQyXmzAGIWW/s1600/Start-Log-io_hackthesec.co.in.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="241" data-original-width="447" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRldk28y5_z1TiM28OKiNFnAcKxevfA2ntXReBPpbCg6bg4NIXAgA2qujEtdylCIxukUPN72GkGaxgalxkIKU-2UFF9D3p6UKpnmhcQ4D2OrvioPhymeb_WW3ykaQtfrSA-uQyXmzAGIWW/s1600/Start-Log-io_hackthesec.co.in.jpg" /></a></div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">After the server has been started open your browser and hit enter with your ip and the </span></span><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;">declared </span><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"> port</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">example - http://192.168.2.253:28778</span></span></pre>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBdovh_DU52bpmFN5i3ZAgRhx0sHrL3a1TimO9sLlJnCodSv0oAXXg4lhB_kStNf-kJCGmpbgMXHf-Q7KaG8P-ljSgpUteKiK-t6RoFeJa614ZivaHhUJFU8uPxy12Hx2NMCJ3YTwpoBHk/s1600/screen_detail.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="435" data-original-width="960" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBdovh_DU52bpmFN5i3ZAgRhx0sHrL3a1TimO9sLlJnCodSv0oAXXg4lhB_kStNf-kJCGmpbgMXHf-Q7KaG8P-ljSgpUteKiK-t6RoFeJa614ZivaHhUJFU8uPxy12Hx2NMCJ3YTwpoBHk/s1600/screen_detail.jpg" /></a></div>
<br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">To stop Log.io application run the following command.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">pkill node</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Log.io = https://github.com/NarrativeScience/Log.io</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">http://logio.org/</span></span></div>
Rajhttp://www.blogger.com/profile/02793413996647910802noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-43948863491998621622018-04-03T20:13:00.000+05:302018-04-03T20:13:22.291+05:30How to install Kali Linux on the Windows<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span style="color: #3d85c6; font-family: verdana, geneva, sans-serif; font-size: large;">Kali-Linux On Windows</span></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">No, really…this isn't clickbait. For the past few weeks, we’ve been working with the Microsoft WSL team to get Kali Linux introduced into the Microsoft App Store as an official WSL distribution and today we’re happy to </span><a href="https://blogs.msdn.microsoft.com/commandline/2018/03/05/kali-linux-for-wsl/" style="font-family: verdana, geneva, sans-serif; font-size: 15px;">announce </a><span style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">the availability of the "Kali Linux" Windows application. For Windows 10 users, this means you can simply enable WSL, </span><a href="https://www.microsoft.com/en-us/store/p/kali-linux/9pkr34tncv07" style="font-family: verdana, geneva, sans-serif; font-size: 15px;">search for Kali</a><span style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;"> in the Windows store, and install it with a single click. This is especially exciting news for penetration testers and security professionals who have limited toolsets due to enterprise compliance standards.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9xYpiTa8ZfnbBhjjAIX2qo6e8J8vN6eyKuLPIJahICG9MD3BTioT5QLiO0lmreER2-0sfWQOXQP1r8q4D61DUBU4FGK0FUOky-6d6Qdc2qv9TzcVfb6-32Qb54egR3IK-VQtRW41GVdI/s1600/kali-windows-app-2018-hackthesec.co.in.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="284" data-original-width="798" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9xYpiTa8ZfnbBhjjAIX2qo6e8J8vN6eyKuLPIJahICG9MD3BTioT5QLiO0lmreER2-0sfWQOXQP1r8q4D61DUBU4FGK0FUOky-6d6Qdc2qv9TzcVfb6-32Qb54egR3IK-VQtRW41GVdI/s1600/kali-windows-app-2018-hackthesec.co.in.png" /></a></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">While running Kali on Windows has a few drawbacks to running it natively (such as the lack of raw socket support), it does bring in some very interesting possibilities, such as extending your security toolkit to include a whole bunch of command line tools that are present in Kali. We will update our blog with more news and updates regarding the development of this app as it’s released.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">We’d like to take this opportunity to thank the WSL team at Microsoft, and specifically @tara_msft and @benhillis for all the assistance and guidance with which this feat would not be possible. We hope you enjoy WSL’d Kali on Windows 10!</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">And now, a quick guide on getting Kali installed from the Microsoft App Store:</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #3d85c6; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><u><b>Getting Kali Linux Installed on WSL</b></u></span></span><br />
<span style="color: blue; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><u><b><br /></b></u></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Here’s a quick description of the setup and installation process. For an easier copy / paste operation, these are the basic steps taken:</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">1. Update your Windows 10 machine. Open an administrative PowerShell window and install the Windows Subsystem with this one-liner. A reboot will be required once finished.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux</span></span></pre>
<div>
<span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;"><br /></span></span></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">2. Once rebooted, open the Windows App store and search for the "Kali Linux" application, or alternatively click here to go there directly. Install the app and enjoy Kali!</span></span><br />
<span style="color: #3d85c6; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b><u>Updating Kali Linux on WSL</u></b></span></span><br />
<span style="color: #3d85c6; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b><u><br /></u></b></span></span>
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Updating Kali Linux on WSL is no different from any other instance of Kali:</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">apt-get update
apt-get dist-upgrade</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Here’s a quick video of the process:</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<div class="w-video ratio_16x9" style="background-color: #111111; box-sizing: border-box; color: #666666; font-family: "Open Sans", sans-serif; font-size: 14px;">
<div class="w-video-h" style="box-sizing: border-box; height: 0px; overflow: hidden; padding-bottom: 448.875px; position: relative;">
<iframe allowfullscreen="" mozallowfullscreen="" src="https://player.vimeo.com/video/258822932?portrait=0&color=00adef" style="border-style: none; border-width: initial; box-sizing: border-box; height: 448.875px; left: 0px; max-width: 100%; position: absolute; top: 0px; width: 798px;" webkitallowfullscreen=""></iframe></div>
</div>
<div class="vc_empty_space" style="background-color: white; box-sizing: border-box; color: #666666; font-family: "Open Sans", sans-serif; font-size: 14px; height: 32px;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;"><br /></span></div>
<div class="vc_empty_space" style="background-color: white; box-sizing: border-box; height: 32px;">
<span style="color: #0b5394; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b><u>Installing Penetration Testing tools on Kali</u></b></span></span><span style="color: #666666; font-family: Open Sans, sans-serif;"><span class="vc_empty_space_inner" style="box-sizing: border-box; font-size: 14px;"></span></span></div>
<div class="vc_empty_space" style="background-color: white; box-sizing: border-box; height: 32px;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Installing tools from the Kali Linux repository is usually done via apt commands. For example, to install the Metasploit Framework, you can simply:</span></span></div>
<div class="vc_empty_space" style="background-color: white; box-sizing: border-box; height: 32px;">
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">apt-get update
apt-get install metasploit-framework</span></span></pre>
</div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b>Note:</b> Some Kali tools are identified by antivirus software as malware. One way to deal with this situation is to allow antivirus exceptions on the directory in which the Kali chroot resides in. The following video walks you through this process:</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<div class="w-video ratio_16x9" style="background-color: #111111; box-sizing: border-box; color: #666666; font-family: "Open Sans", sans-serif; font-size: 14px;">
<div class="w-video-h" style="box-sizing: border-box; height: 0px; overflow: hidden; padding-bottom: 448.875px; position: relative;">
<iframe allowfullscreen="" mozallowfullscreen="" src="https://player.vimeo.com/video/258892544?portrait=0&color=00adef" style="border-style: none; border-width: initial; box-sizing: border-box; height: 448.875px; left: 0px; max-width: 100%; position: absolute; top: 0px; width: 798px;" webkitallowfullscreen=""></iframe></div>
</div>
<div class="vc_empty_space" style="background-color: white; box-sizing: border-box; color: #666666; font-family: "Open Sans", sans-serif; font-size: 14px; height: 32px;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;"><br /></span></div>
<div class="vc_empty_space" style="background-color: white; box-sizing: border-box; height: 32px;">
<b><u><span style="color: #0b5394;"><span style="font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Recovering from a failed Kali WSL instance</span></span><span style="font-family: Open Sans, sans-serif;"><span class="vc_empty_space_inner" style="box-sizing: border-box; font-size: 14px;"></span></span></span></u></b></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Sometimes, you can inadvertently kill your Kali WSL instance, due to an overzealous command, an unintentional action, or even due to Kali or WSL bugs. If this happens, here is a quick recovery guide to get back on top of things. Note: this process will wipe your Kali WSL chroot, and re-extract a new copy. Any changes made to the filesystem will be gone, and reset to default.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<div class="w-video ratio_16x9" style="background-color: #111111; box-sizing: border-box; color: #666666; font-family: "Open Sans", sans-serif; font-size: 14px;">
<div class="w-video-h" style="box-sizing: border-box; height: 0px; overflow: hidden; padding-bottom: 448.875px; position: relative;">
<iframe allowfullscreen="" mozallowfullscreen="" src="https://player.vimeo.com/video/258835347?portrait=0&color=00adef" style="border-style: none; border-width: initial; box-sizing: border-box; height: 448.875px; left: 0px; max-width: 100%; position: absolute; top: 0px; width: 798px;" webkitallowfullscreen=""></iframe></div>
</div>
<div class="vc_empty_space" style="background-color: white; box-sizing: border-box; color: #666666; font-family: "Open Sans", sans-serif; font-size: 14px; height: 32px;">
<span class="vc_empty_space_inner" style="box-sizing: border-box;"><br /></span></div>
<span style="color: #3d85c6; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b><u>Food for thought</u></b></span></span><br />
<span style="color: #3d85c6; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b><u><br /></u></b></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">The availability of the Kali Linux platform and toolset on Windows 10 brings with it many exciting possibilities which we havent even begun to grasp – here’s one example that got us scratching our heads. While not officially supported by WSL yet, we’ve tested running a desktop manager such as XFCE on WSL’d Kali…and it seems to work quite well:</span></span><br />
<br />
<div class="w-video ratio_16x9" style="background-color: #111111; box-sizing: border-box; color: #666666; font-family: "Open Sans", sans-serif; font-size: 14px;">
<div class="w-video-h" style="box-sizing: border-box; height: 0px; overflow: hidden; padding-bottom: 448.875px; position: relative;">
<iframe allowfullscreen="" mozallowfullscreen="" src="https://player.vimeo.com/video/255052199?portrait=0&color=00adef" style="border-style: none; border-width: initial; box-sizing: border-box; height: 448.875px; left: 0px; max-width: 100%; position: absolute; top: 0px; width: 798px;" webkitallowfullscreen=""></iframe></div>
</div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">Main Source - </span><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><a href="https://www.kali.org/news/kali-linux-in-the-windows-app-store/">https://www.kali.org/news/kali-linux-in-the-windows-app-store/</a></span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
Sarkari-JOBhttp://www.blogger.com/profile/07703466142666802829noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-9522719034293120922018-04-03T19:45:00.000+05:302018-04-03T19:45:11.622+05:30How to find files containing specific text in Linux<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span style="color: #0b5394; font-family: verdana, geneva, sans-serif; font-size: large;"><u>Find files containing specific text in Linux</u></span></div>
<span style="color: #0b5394; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><u><br /></u></span></span>
<span style="color: #0b5394; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><u>Find files containing specific text using grep command</u></span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">grep is a command-line utility for searching plain-text data sets for lines that match a regular expression. Its name comes from the ed command g/re/p (globally search a regular expression and print), which has the same effect: doing a global search with the regular expression and printing all matching lines. Grep was originally developed for the Unix operating system, but later available for all Unix-like systems.</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmSfa5gfpg7IHq5mo4T7SHu_Cl3baveLg-xsoRu3kxODgKyT2LN2J7nwZThgySbn7tR5rogvXIbYnjg4nDea8sLQazM9oEpGHniruu0_fTDG58SasIVf0NZWEmjyQ9w9UtlcmquEhNQRA/s1600/find-command-in-linux-hackthesec.co.in.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="256" data-original-width="512" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmSfa5gfpg7IHq5mo4T7SHu_Cl3baveLg-xsoRu3kxODgKyT2LN2J7nwZThgySbn7tR5rogvXIbYnjg4nDea8sLQazM9oEpGHniruu0_fTDG58SasIVf0NZWEmjyQ9w9UtlcmquEhNQRA/s1600/find-command-in-linux-hackthesec.co.in.png" /></a></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #0b5394; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><u><b>grep command syntax</b></u></span></span><br />
<br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">grep "text string to search” directory-path</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">grep [option] "text string to search” directory-path</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">grep -r "text string to search” directory-path</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">grep -r -H "text string to search” directory-path</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">egrep -R "word-1|word-2” directory-path</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">egrep -w -R "word-1|word-2” directory-path</span></span></pre>
<div>
<span style="color: #0b5394; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><u>Find files containing specific text using grep command examples</u></span></span></div>
<div>
<span style="border: 0px none; box-sizing: border-box; color: #993300; list-style: none; margin: 0px; outline: none; padding: 0px;"><span style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;"><br /></span></span></div>
<div>
<span style="border: 0px none; box-sizing: border-box; font-size: 15px; list-style: none; margin: 0px; outline: none; padding: 0px;"><span style="color: #333333; font-family: verdana, geneva, sans-serif;">In this example, we will search for 'PULSEAUDIO_SYSTEM_START' in all configuration files located in /etc directory.</span></span></div>
<div>
<span style="border: 0px none; box-sizing: border-box; font-size: 15px; list-style: none; margin: 0px; outline: none; padding: 0px;"><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><br /></span></span></div>
<div>
<span style="border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;"><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Now there's a small problem, depending on your Linux distro, Find command Syntax can be slightly different.</span></span></span></div>
<div>
<span style="border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;"><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></span></div>
<div>
<span style="border: 0px none; box-sizing: border-box; font-size: 15px; list-style: none; margin: 0px; outline: none; padding: 0px;"><span style="color: #333333; font-family: verdana, geneva, sans-serif;">*If you know the exact location and directory you're after, then use</span></span></div>
<div>
<span style="border: 0px none; box-sizing: border-box; list-style: none; margin: 0px; outline: none; padding: 0px;"><pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">root@hackthesec:~# grep "PULSEAUDIO_SYSTEM_START" /etc/default/pulseaudio
PULSEAUDIO_SYSTEM_START=1</span></span><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px; white-space: normal;">
</span></span></pre>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">*If you know the exact directory with the files containing that specific text, then use</span></span></div>
<div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">root@hackthesec:~# grep "PULSEAUDIO_SYSTEM_START" /etc/default/*
grep: /etc/default/kdm.d: Is a directory
/etc/default/pulseaudio:PULSEAUDIO_SYSTEM_START=1
root@hackthesec:~#</span></span><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px; white-space: normal;">
</span></span></pre>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">If you don't know the exact location of the file that contains the specific text you’re looking for, then you need to search all sub-directories recursively.</span></span></div>
<div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">root@hackthesec:~# grep -r "PULSEAUDIO_SYSTEM_START" /etc/default/*
/etc/default/pulseaudio:PULSEAUDIO_SYSTEM_START=1
root@hackthesec:~#</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">root@hackthesec:~# grep -R "PULSEAUDIO_SYSTEM_START" /etc/default/*
/etc/default/pulseaudio:PULSEAUDIO_SYSTEM_START=1
root@hackthesec:~#</span></span></pre>
</div>
<div>
<span style="font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><span style="color: #333333;">Now what if you are searching through a massive file and there might be many outputs similar to what you’re looking for.. you might want to use </span><span style="color: red;">--col</span><span style="color: #333333;"> flag to color code your output which searching files containing specific strings.</span></span></span></div>
<div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">root@hackthesec:~# grep --col 'usb 1-1.4' /var/log/messages
Apr 4 09:14:25 kali kernel: [1191164.780496] usb 1-1.4: new low-speed USB device number 21 using ehci-pci
root@hackthesec:~#</span></span></pre>
</div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Now I want to display all files with colorer output with containing specific text and instead of showing the whole content of the files</span></span></div>
<div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">root@hackthesec:~# grep --col -r 'Linux version 3.14-kali1' /var/log/* | cut -d: -f1
/var/log/dmesg
/var/log/dmesg.0
/var/log/installer/syslog
root@hackthesec:~#</span></span></pre>
</div>
<div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">When you're using grep, depending on the commands used and permission you have on the system, you might see any of the following errors.</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<span style="color: #351c75; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">* Input/output error</span></span></div>
<div>
<span style="color: #351c75; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">* recursive directory loop</span></span></div>
<div>
<span style="color: #351c75; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">* No such file or directory</span></span></div>
<div>
<span style="color: #351c75; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">* No such device or address</span></span></div>
<div>
<span style="color: #351c75; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">* Permission denied</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<span style="font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><span style="color: #333333;">If you want to hide all errors or warning message spamming your output window(specifically useful when you're trying to use grep on a script) generated by the grep command, </span><span style="color: red;">append 2>/dev/null</span><span style="color: #333333;"> to grep command. This will send and hide unwanted output to </span><span style="color: red;">/dev/null</span><span style="color: #333333;"> device:</span></span></span></div>
</div>
<div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">root@hackthesec:~# grep -R "PULSEAUDIO_SYSTEM_START" /etc/* 2>/dev/null
/etc/default/pulseaudio:PULSEAUDIO_SYSTEM_START=1
/etc/init.d/pulseaudio:PULSEAUDIO_SYSTEM_START=0
/etc/init.d/pulseaudio:if [ "$PULSEAUDIO_SYSTEM_START" != "1" ]; then
/etc/rc0.d/K01pulseaudio:PULSEAUDIO_SYSTEM_START=0
/etc/rc0.d/K01pulseaudio:if [ "$PULSEAUDIO_SYSTEM_START" != "1" ]; then
/etc/rc1.d/K01pulseaudio:PULSEAUDIO_SYSTEM_START=0
/etc/rc1.d/K01pulseaudio:if [ "$PULSEAUDIO_SYSTEM_START" != "1" ]; then
/etc/rc2.d/S20pulseaudio:PULSEAUDIO_SYSTEM_START=0
/etc/rc2.d/S20pulseaudio:if [ "$PULSEAUDIO_SYSTEM_START" != "1" ]; then
/etc/rc3.d/S20pulseaudio:PULSEAUDIO_SYSTEM_START=0
/etc/rc3.d/S20pulseaudio:if [ "$PULSEAUDIO_SYSTEM_START" != "1" ]; then
/etc/rc4.d/S20pulseaudio:PULSEAUDIO_SYSTEM_START=0
/etc/rc4.d/S20pulseaudio:if [ "$PULSEAUDIO_SYSTEM_START" != "1" ]; then
/etc/rc5.d/S20pulseaudio:PULSEAUDIO_SYSTEM_START=0
/etc/rc5.d/S20pulseaudio:if [ "$PULSEAUDIO_SYSTEM_START" != "1" ]; then
/etc/rc6.d/K01pulseaudio:PULSEAUDIO_SYSTEM_START=0
/etc/rc6.d/K01pulseaudio:if [ "$PULSEAUDIO_SYSTEM_START" != "1" ]; then
root@hackthesec:~#</span></span></pre>
</div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><div>
What if you're not sure about the case of the text you're after? You can use -i to ignore case.</div>
<div>
<br /></div>
<div>
Below example shows the difference between -i flag. First command didn’t find the text, second command did as we used -i flag to ignore case.</div>
</span></span></div>
<div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">root@hackthesec:~# grep -r "pulseaudio_system_start" /etc/default/*
root@hackthesec:~#
root@hackthesec:~# grep -i -r "pulseaudio_system_start" /etc/default/*
/etc/default/pulseaudio:PULSEAUDIO_SYSTEM_START=1
root@hackthesec:~#</span></span></pre>
</div>
<div>
<span style="font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><span style="color: #333333;">I always prefer using grep command </span><span style="color: red;">with -r and --col flag in Debian Linux as -r complains less about permissions</span><span style="color: #333333;">, files, directory etc. and of course some color helps on the eyes when you’re browsing through many lines.</span></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdmES88qRq5q2S7T9eloxwGBj7Q_4TNKpHoxJrzaHNO5JFpsQd52ekNYQtKsk03EFGlHDRp9evGLye66Gs1H1pIHZBXSl4SbjLqVkCmN9OA-3D7lHu4C3YOmEHVFiqwADcA4237wkbdVk/s1600/How-to-find-files-containing-specific-text-in-Linux-hackthesec.co.in.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="199" data-original-width="656" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdmES88qRq5q2S7T9eloxwGBj7Q_4TNKpHoxJrzaHNO5JFpsQd52ekNYQtKsk03EFGlHDRp9evGLye66Gs1H1pIHZBXSl4SbjLqVkCmN9OA-3D7lHu4C3YOmEHVFiqwADcA4237wkbdVk/s1600/How-to-find-files-containing-specific-text-in-Linux-hackthesec.co.in.png" /></a></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;"><br /></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;"><br /></span></div>
<div>
<a href="http://www.hackthesec.co.in/">HackTheSec</a></div>
</div>
</span></div>
</div>
Sarkari-JOBhttp://www.blogger.com/profile/07703466142666802829noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-52968638179063018112018-02-20T13:16:00.001+05:302018-02-20T13:18:48.350+05:30Cryptmount – A Utility to Create Encrypted Filesystems in Linux<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">cryptmount is a utility for GNU/Linux operating systems which allows an ordinary user to mount an encrypted filing system without requiring superuser privileges. It is aimed at Linux systems using the 2.6 kernel series or later.</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://cryptmount.sourceforge.net/crypt-img.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://cryptmount.sourceforge.net/crypt-img.png" data-original-height="482" data-original-width="700" /></a></div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u>Technical background</u></b></span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">There are currently two main approaches to using encrypted filesystems within the linux kernel:</span></span><br />
<br />
<ul style="text-align: left;">
<li><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">the cryptoloop device driver;</span></span></li>
<li><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">the device-mapper system, using the dm-crypt target.</span></span></li>
</ul>
<br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">The (older) cryptoloop system has grown in parallel with the loopback device-driver of 2.4 kernel series, but has now been superseded by the device-mapper capabilities of the 2.6 kernel series. The newer devmapper system offers a <a href="http://docs.linux.com/article.pl?sid=04/06/07/2036205&tid=72&tid=14&tid=35">cleaner organization</a> of encryption and device-access, and superior performance has <a href="http://deb.riseup.net/storage/encryption/dmcrypt">been noted</a>. Alternative user-space tools which allow individual files to be encrypted are also widely available, but allow some information about file sizes & organization to be exposed.</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">With the older cryptoloop system, it was possible to describe all the details of an encrypted filesystem within /etc/fstab so that it could be configured completely by 'mount'. This meant that it was particularly easy to give any user permission to mount those encrypted filesystems simply by providing the 'user' option within /etc/fstab.</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">With the newer device-mapper infrastructure, there are more stages involved in mounting an encrypted filing system, and neither does 'mount' currently allow this nor does the syntax of /etc/fstab lend itself to describing all the necessary filesystem parameters. This is especially so if the filesystem is stored in an ordinary file, which would require separate configuration of a loopback device and a devmapper target before the filesystem could be accessed.</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">cryptmount was written to make it as easy for ordinary users to access encrypted filesystems on-demand using the newer devmapper mechansism as it was to use the older, now deprecated, cryptoloop methods. This offers the following advantages:</span></span><br />
<br />
<ul style="text-align: left;">
<li><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">access to improved functionality in the kernel</span></span></li>
<li><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">transparent support for filesystems stored on either raw disk partitions or loopback files</span></span></li>
<li><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"></span></li>
<li style="font-size: 15px;"><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;">separate encryption of filesystem access keys, allowing access passwords to be changed without re-encrypting the entire filesystem</span></li>
<li><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">storing multiple encrypted filesystems within a single disk partition, using a designated subset of blocks for each</span></span></li>
<li><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">rarely used filesystems do not need to be mounted at system startup</span></span></li>
<li><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">un-mounting of each filesystem is locked so that this can only be performed by the user that mounted it, or the superuser</span></span></li>
<li><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">encrypted filesystems compatible with cryptsetup</span></span></li>
<li><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">encrypted access-keys can be chosen to be compatible with openssl, or managed via libgcrypt, or (for 2.0 release-series) built-in SHA1/Blowfish ciphers</span></span></li>
<li><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">support for encrypted swap partitions (superuser only)</span></span></li>
<li><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">support for setting up encrypted filesystems or crypto-swap at system boot-up</span></span></li>
</ul>
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><u><span style="color: #0b5394;"><b>Install and Configure Cryptmount in Linux</b></span></u></span></span><br />
<br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">On Debian/Ubuntu distributions, you can install Cryptmount using the following command line</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">sudo apt install cryptmount</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">On RHEL/CentOS/Fedora distributions,install it from source. First start installing the required package(s) to successfully build and use cryptmount.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">yum install device-mapper-devel</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">yum groupinstall "Development tools"</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Then download the latest Cryptmount source files.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">wget https://downloads.sourceforge.net/project/cryptmount/cryptmount/cryptmount-5.2/cryptmount-5.2.4.tar.gz
tar -xzf cryptmount-5.2.4.tar.gz
cd cryptmount-5.2.4
./configure
make
make instal</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">After installation go for setup using bellow command line</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">cryptmount-setup</span></span></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4_bf_zluIl3w2Tpa7Kj-r9HtLoen_02EXBU0bh0fZCpA9sXzYivNF0EIGcs7tNx4I95ID2E9k3NkajvFnLo8BGvbCj5ovWxGdVFnPo6EqmrnqtPihRHc-53-IqMBlBufcKWY8yQPfXWmF/s1600/crypt.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="729" data-original-width="872" height="534" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4_bf_zluIl3w2Tpa7Kj-r9HtLoen_02EXBU0bh0fZCpA9sXzYivNF0EIGcs7tNx4I95ID2E9k3NkajvFnLo8BGvbCj5ovWxGdVFnPo6EqmrnqtPihRHc-53-IqMBlBufcKWY8yQPfXWmF/s640/crypt.png" width="640" /></a></div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Once the new encrypted filesystem is created, you can access it as follows (enter the name you specified for your target – hackthesec), you will be prompted to enter the password for the target.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">cryptmount hackthesec
cd /home/crypt</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">To unmount the target run cd command to get out of the encrypted filesystem, then use the -u switch to unmount as shown.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">cryptmount -u hackthesec</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">For more information you can use bellow command or you can visit cryptmount website </span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">man cryptmount
man cmtab </span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">Website - <a href="http://cryptmount.sourceforge.net/">http://cryptmount.sourceforge.net/</a></span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #990000; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u>Troubleshooting in my case</u></b></span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">After installation i just received a error message from my ubuntu box</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">"Taking backup of cryptmount master config-file (@ETCDIR@/cmtab.bckp-setup)...mv: cannot stat '@ETCDIR@/cmtab': No such file or directory"</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">for this error just follow bellow commands </span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">root@new:~# which cryptmount-setup
/usr/sbin/cryptmount-setup
</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">root@new:~# vi /usr/sbin/cryptmount-setup</span></span></pre>
<div>
<br /></div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">and</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Changed from: </span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">CM_CFGDIR="@ETCDIR@" </span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Changed to: </span></span><br />
<span style="font-size: 15px;"><span style="color: #333333; font-family: verdana, geneva, sans-serif;"></span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">CM_CFGDIR="/etc/cryptmount" </span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl2TwF9Wwl7nDpTkNEiFGAiPXW-CHo-qnTXW_GHzY9KFg-J7h3DYLDB9UWEwpKukmywnK7Aq5BguCnHgZ5DbkStwhDSdk162w3-GjzuSkqQvoQEIBAjnUaeCpcuIMra1s6zJsh-TM-Nefg/s1600/cryptchange.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="424" data-original-width="723" height="374" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgl2TwF9Wwl7nDpTkNEiFGAiPXW-CHo-qnTXW_GHzY9KFg-J7h3DYLDB9UWEwpKukmywnK7Aq5BguCnHgZ5DbkStwhDSdk162w3-GjzuSkqQvoQEIBAjnUaeCpcuIMra1s6zJsh-TM-Nefg/s640/cryptchange.png" width="640" /></a></div>
<br /></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-85601628062260930892018-02-20T11:32:00.000+05:302018-02-20T11:32:01.858+05:30Open Source Disk Cloning/Backup Softwares for Linux <div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span style="color: #0b5394; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b><u>Free Backup Tools to Clone Linux System Disk</u></b></span></span></div>
<div style="text-align: center;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b>Clonezilla </b>is a partition and disk imaging/cloning program similar to True Image® or Norton Ghost®. It helps you to do system deployment, bare metal backup and recovery. Two types of Clonezilla are available, Clonezilla live and Clonezilla SE (server edition). Clonezilla live is suitable for single machine backup and restore. While Clonezilla SE is for massive deployment, it can clone many (40 plus!) computers simultaneously. Clonezilla saves and restores only used blocks in the hard disk. This increases the clone efficiency. With some high-end hardware in a 42-node cluster, a multicast restoring at rate 8 GB/min was reported.</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfGqfktDOlq1hInl-1uL8NMknuOcy0nS2Ut5hvoh5M8JA7mSpcCrPHIkCK3WycxNu-HF5WE2zr6q1GxSrNu4Wl_0KHiMI6VOKxZFUzq_lzLiukCGZ1En-ysSr3qRuErpirbNSRoFXmGNdj/s1600/maxresdefault.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="900" data-original-width="1600" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfGqfktDOlq1hInl-1uL8NMknuOcy0nS2Ut5hvoh5M8JA7mSpcCrPHIkCK3WycxNu-HF5WE2zr6q1GxSrNu4Wl_0KHiMI6VOKxZFUzq_lzLiukCGZ1En-ysSr3qRuErpirbNSRoFXmGNdj/s640/maxresdefault.jpg" width="640" /></a></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b><u>Features:</u></b></span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Many File systems are supported: (1) ext2, ext3, ext4, reiserfs, reiser4, xfs, jfs, btrfs, f2fs and nilfs2 of GNU/Linux, (2) FAT12, FAT16, FAT32, NTFS of MS Windows, (3) HFS+ of Mac OS, (4) UFS of FreeBSD, NetBSD, and OpenBSD, (5) minix of Minix, and (6) VMFS3 and VMFS5 of VMWare ESX. Therefore you can clone GNU/Linux, MS windows, Intel-based Mac OS, FreeBSD, NetBSD, OpenBSD, Minix, VMWare ESX and Chrome OS/Chromium OS, no matter it's 32-bit (x86) or 64-bit (x86-64) OS. For these file systems, only used blocks in partition are saved and restored by Partclone. For unsupported file system, sector-to-sector copy is done by dd in Clonezilla.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">*LVM2 (LVM version 1 is not) under GNU/Linux is supported.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">*Boot loader, including grub (version 1 and version 2) and syslinux, could be reinstalled.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">*Both MBR and GPT partition formats of hard drive are supported. Clonezilla live also can be booted on a BIOS or uEFI machine.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">*Unattended mode is supported. Almost all steps can be done via commands and options. You can also use a lot of boot parameters to customize your own imaging and cloning.</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZYt5Pqwii1PmH4y3v-UoSjPspg8VvFt-UBzEaw6r81DVgtzBVOhdoSFDjIf2G2O44nDESgLwka0U89fj1PjCcinPfc5oXFmKihWOn6p2589AzJKeOk5JqCb5UUwNiL1maKE8W4xwpIRQX/s1600/clonezilla.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="600" data-original-width="800" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZYt5Pqwii1PmH4y3v-UoSjPspg8VvFt-UBzEaw6r81DVgtzBVOhdoSFDjIf2G2O44nDESgLwka0U89fj1PjCcinPfc5oXFmKihWOn6p2589AzJKeOk5JqCb5UUwNiL1maKE8W4xwpIRQX/s1600/clonezilla.png" /></a></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">*One image restoring to multiple local devices is supported.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">*Image could be encrypted. This is done with ecryptfs, a POSIX-compliant enterprise cryptographic stacked filesystem.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">*Multicast is supported in Clonezilla SE, which is suitable for massive clone. You can also remotely use it to save or restore a bunch of computers if PXE and Wake-on-LAN are supported in your clients.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">*The image file can be on local disk, ssh server, samba server, NFS server or WebDAV server.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">*AES-256 encryption could be used to secures data access, storage and transfer.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">*Based on Partclone (default), Partimage (optional), ntfsclone (optional), or dd to image or clone a partition. However, Clonezilla, containing some other programs, can save and restore not only partitions, but also a whole disk.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">*By using another free software drbl-winroll, which is also developed by us, the hostname, group, and SID of cloned MS windows machine can be automatically changed.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">You may download the latest version of Clonezilla <a href="http://clonezilla.org/downloads.php">here</a>.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"> <b><a href="http://clonezilla.org/downloads.php">DOWNLOAD</a></b></span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<h3 style="background-color: white; border: 0px; color: #333f49; font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 1.25rem; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.3; margin: 0px 0px 1.25rem; padding: 0px; vertical-align: baseline;">
<u>dd (data duplicator) </u></h3>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Dd- Mighty Disk Destroyer. Many Admins fear and even cower when the letters DD are mentioned together DD can be your best friend. Being that you are a Linux Professional and or want to be a professional, you are sometimes faced with the need to clone, backup and or restore Hard Drive images On the Fly. Secondly, you many want to create backups of Hard Drives for future deployment. Lastly, sometimes you have a failing Hard Drive that needs to be migrated over to a good Hard Drive.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">dd command must be used with caution. This command is so powerful and could wipe your data if you use it the wrong way.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">For example: To clone disk 1 (/dev/sdb) to disk 2 (/dev/sda), use the following command:</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif; font-size: 12px;"><span style="font-size: 14px;"># </span></span><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">dd if=/dev/sdb of=/dev/sda status=progress</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">For More information about DD you can use bellow command from your terminal </span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif; font-size: 12px;"><span style="font-size: 14px;"># </span></span><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">man dd</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Or you can visit this website : - <a href="https://www.howtoforge.com/linux-dd-command/">Link </a></span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<h3 style="background-color: white; border: 0px; color: #333f49; font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 1.25rem; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.3; margin: 0px 0px 1.25rem; padding: 0px; vertical-align: baseline;">
<u>Partclone</u></h3>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Partclone is a program similar to the well-known backup utility "Partition Image" a.k.a partimage. Partclone provides utilities to save and restore used blocks on a partition and is designed for higher compatibility of the file system by using existing libraries, e.g. e2fslibs is used to read and write the ext2 partition.</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Partclone now supports ext2, ext3, ext4, hfs+, reiserfs, reiser4, btrfs, vmfs3, vmfs5, xfs, jfs, ufs, ntfs, fat(12/16/32), exfat, f2fs, nilfs. The available programs are:</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">partclone.btrfs</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">partclone.ext2, partclone.ext3, partclone.ext4</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">partclone.fat32, partclone.fat12, partclone.fat16</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">partclone.ntfs</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">partclone.exfat</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">partclone.hfsp</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">partclone.jfs</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">partclone.reiserfs</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">partclone.reiser4</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">partclone.ufs (with SU+J)</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">partclone.vmfs (v3 and v5)</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">partclone.xfs</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">partclone.f2fs</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">partclone.nilfs2</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Partclone support local and remote ssh server to store the backup image. </span></span></div>
<div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif; font-size: 12px;"><span style="font-size: 14px;"># </span></span><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">partclone.ext4 -c -s /dev/sda1 -o ~/data1.img</span></span></pre>
</div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">The command will backup an ext4 partition (/dev/sda1) to data1.img image file. To restore from an image file, use the following command:</span></span></div>
<div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif; font-size: 12px;"><span style="font-size: 14px;"># </span></span><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">partclone.ext4 -r -o /dev/sda1</span></span></pre>
</div>
<div style="text-align: center;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b><a href="https://partclone.org/download/">Download Partclone</a> </b></span></span></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<h3 style="background-color: white; border: 0px; color: #333f49; font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 1.25rem; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.3; margin: 0px 0px 1.25rem; padding: 0px; vertical-align: baseline;">
<u>Deepin Clone</u></h3>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Deepin Clone is a tool to backup and restore developed by Deepin Technology. It supports to clone, backup and restore disk or partition. And works with Deepin Recovery to fix the boot, partition and so on.</span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><div>
<b><u>Project Location:</u></b></div>
<div>
Source Code Location: <a href="https://github.com/linuxdeepin/deepin-clone">https://github.com/linuxdeepin/deepin-clone</a></div>
<div>
<br /></div>
<div>
Beta Version Location: <a href="https://cr.deepin.io/#/admin/projects/deepin-clone">https://cr.deepin.io/#/admin/projects/deepin-clone</a></div>
</span></span></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<h3 style="background-color: white; border: 0px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.3; margin: 0px 0px 1.25rem; padding: 0px; vertical-align: baseline;">
<span style="color: #333f49; font-family: Open Sans, Helvetica, Arial, sans-serif;"><span style="font-size: 20px;"><u>Redo Backup</u></span></span></h3>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Redo Bakcup is a Live CD tool to clone your drivers easily, Redo Backup is a free & Open Source Live System licensed under GPL 3 to do the job, Features are as the website says.</span></span><br />
<br />
<ul style="text-align: left;">
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Easy graphical user interface boots from CD in less than a minute</span></span></li>
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">No installation needed; runs from a CD-ROM or a USB stick</span></span></li>
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Saves and restores Windows and Linux machines</span></span></li>
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Automatically finds local network shares</span></span></li>
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Access your files even if you can't log in</span></span></li>
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Recover deleted pictures, documents, and other files</span></span></li>
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Internet access with a full-featured browser to download drivers</span></span></li>
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Live CD download size is only about 250MB</span></span></li>
</ul>
<br />
<div style="text-align: center;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;"><a href="http://redobackup.org/download.php"><b>Download Redo Backup</b></a></span></div>
<h3 style="background-color: white; border: 0px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.3; margin: 0px 0px 1.25rem; padding: 0px; vertical-align: baseline;">
<span style="color: #333f49; font-family: Open Sans, Helvetica, Arial, sans-serif;"><span style="font-size: 20px;"><u>Mondo Rescue</u></span></span></h3>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b>Mondo is reliable.</b> It backs up your GNU/Linux server or workstation to tape, CD-R, CD-RW, DVD-R[W], DVD+R[W], NFS or hard disk partition. In the event of catastrophic data loss, you will be able to restore all of your data [or as much as you want], from bare metal if necessary. Mondo is in use by Lockheed-Martin, Nortel Networks, Siemens, HP, IBM, NASA's JPL, the US Dept of Agriculture, dozens of smaller companies, and tens of thousands of users.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b>Mondo is comprehensive.</b> Mondo supports LVM 1/2, RAID, ext2, ext3, ext4, JFS, XFS, ReiserFS, VFAT, and can support additional filesystems easily: just e-mail the mailing list with your request. It supports software raid as well as most hardware raid controllers. It supports adjustments in disk geometry, including migration from non-RAID to RAID. It supports BIOS and UEFI boot modes. Mondo runs on all major Linux distributions (Fedora, RHEL, OpenSUSE, SLES, Mageia, Debian, Ubuntu, Gentoo) and is getting better all the time. You may even use it to backup non-Linux partitions, such as NTFS.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b>Mondo is free!</b> It has been published under the GPL v2 (GNU Public License), partly to expose it to thousands of potential beta-testers but mostly as a contribution to the Linux community.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<div style="text-align: center;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b><a href="http://www.mondorescue.org/downloads.shtml">Download Mondo </a></b></span></span></div>
<div>
<br /></div>
<br />
<h3 style="background-color: white; border: 0px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.3; margin: 0px 0px 1.25rem; padding: 0px; vertical-align: baseline;">
<span style="color: #333f49; font-family: Open Sans, Helvetica, Arial, sans-serif;"><span style="font-size: 20px;"><u>doClone</u></span></span></h3>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">DoClone is a free project developed in C++ for creating or restoring GNU/Linux systems images. It can also work on a LAN to transfer data within computers. This tool provides an easy way to manage the GNU/Linux installation in offices or schools, including machines with different hardware, e.g., different hard-disk sizes, using only the space required by the data.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">Features are as the website says.</span><br />
<br />
<ul style="text-align: left;">
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Supports 12 filesystems.</span></span></li>
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Supports 9 disk labels.</span></span></li>
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Clones disks or partitions with different sizes.</span></span></li>
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Clones selinux systems.</span></span></li>
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">GRUB boot loader restoration.</span></span></li>
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Multiple cloning on a LAN.</span></span></li>
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">UUID's and filesystem labels cloning.</span></span></li>
<li><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Live cloning: a system can make images of itself.</span></span></li>
</ul>
<div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">This program is free software and is distributed under the GNU GPL v3 License.</span></span></div>
<br />
<div style="background-color: white; border: 0px none; color: #2d3134; font-family: "Lucida Grande", Verdana, Geneva, Arial, sans-serif; font-size: 14px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 21px; padding: 10px 20px 10px 80px; vertical-align: baseline;">
Latest version is 0.8.0: <a href="http://download.savannah.gnu.org/releases/doclone/doclone-0.8.0.tar.gz" style="border: 0px none; color: #45639f; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: bold; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;">Download</a></div>
<div>
<div style="background-color: white; border: 0px none; color: #2d3134; font-family: "Lucida Grande", Verdana, Geneva, Arial, sans-serif; font-size: 14px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 21px; padding: 10px 20px 10px 80px; vertical-align: baseline;">
<a href="http://download.savannah.gnu.org/releases/doclone/" style="border: 0px none; color: #45639f; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: bold; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;">Explore the download directory</a></div>
</div>
<br /></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-44764484064907813312017-09-22T19:08:00.000+05:302017-09-22T19:08:22.495+05:30How to Install and Configure Amanda Backup Server<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup solution that allows the IT administrator to set up a single master backup server to back up multiple hosts over network to tape drives/changers or disks or optical media. Amanda uses native utilities and formats (e.g. dump and/or GNU tar) and can back up a large number of servers and workstations running multiple versions of Linux or Unix.</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8r3zI99geeFCqnAhyL_W4ik18Y2ec0_hKGF2wSvyU4U0dgSK0miJgw1xFeuvbRMWYRoeVwiF0YUm6D89lr2QNPKYSqXYs2LI96wZoVv-nz9VoQdEVHvRd1ymdfG1px2u_Nvpt6BySxig/s1600/amanda1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="409" data-original-width="611" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8r3zI99geeFCqnAhyL_W4ik18Y2ec0_hKGF2wSvyU4U0dgSK0miJgw1xFeuvbRMWYRoeVwiF0YUm6D89lr2QNPKYSqXYs2LI96wZoVv-nz9VoQdEVHvRd1ymdfG1px2u_Nvpt6BySxig/s1600/amanda1.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b><span style="color: blue;"><br /></span></b></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: blue; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b>Install Amanda Server</b></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: blue; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b>==============</b></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Install amanda packages using yum:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif; font-size: 12px;"><span style="font-size: 14px;"># </span></span><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">yum install -y amanda*</span></span></pre>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Create the configuration file. I am going to name this backup project is ServerNetBackup. We need to create a directory named by this project and all configuration files for this project will be underneath it:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif; font-size: 12px;"><span style="font-size: 14px;"># </span></span><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">mkdir /etc/amanda/ServerNetBackup</span></span></pre>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Create the core configuration file, amanda.conf:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">vim /etc/amanda/ServerNetBackup/amanda.conf</span></span></pre>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">And paste following line:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">org "ServerNetBackup" # Organization name for reports
mailto "address@hackthesec.co.in" # Email address to receive reports
netusage 10000 Kbps # Bandwidth limit, 10M
dumpcycle 1 week # Backup cycle is 7 days
runspercycle 7 # Run 7 times every 7 days
tapecycle 15 tapes # Dump to 15 different tapes during the cycle
tpchanger "chg-disk" # The tape-changer glue script
changerfile "/etc/amanda/ServerNetBackup/changer" # The tape-changer file
tapedev "file://central_backup/ServerNetBackup/slots" # The no-rewind tape device to be used
tapetype HARDDISK # Define the type of tape
infofile "/etc/amanda/ServerNetBackup/curinfo" # Database directory
logdir "/etc/amanda/ServerNetBackup/logs" # Log directory
indexdir "/etc/amanda/ServerNetBackup/index" # Index directory
define tapetype HARDDISK { # Define our tape behaviour
length 100000 mbytes # Every tape is 100GB in size
}
amrecover_changer "changer" # Changer for amrecover
define dumptype global { # The global dump definition
maxdumps 2 # The maximum number of backups run in parallel
estimate calcsize # Estimate the backup size before dump
holdingdisk yes # Dump to temp disk (holdingdisk) before backup to tape
index yes # Generate index. For restoration usage
}
define dumptype root-tar { # How to dump root's directory
global # Include global (as above)
program "GNUTAR" # Program name for compress
comment "root partitions dumped with tar"
compress none # No compress
index # Index this dump
priority low # Priority level
}
define dumptype user-tar { # How to dump user's directory
root-tar # Include root-tar (as above)
comment "user partitions dumped with tar"
priority medium # Priority level
}
define dumptype comp-user-tar { # How to dump & compress user's directory
user-tar # Include user-tar (as above)
compress client fast # Compress in client side with less CPU (fast)
}</span></span></pre>
<div>
<span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: blue; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Configure Backup Location</span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: blue; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">=================</span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Prepare the directory to store all backups:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">mkdir -p /central_backup/ServerNetBackup/slots</span></span></pre>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Assign correct permission to user amandabackup for the configuration directory and backup directory:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ chown amandabackup.disk /central_backup -Rf
$ chown amandabackup.disk /etc/amanda/ServerNetBackup -Rf</span></span></pre>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Login as user amandabackup:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">su - amandabackup</span></span></pre>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Create the virtual tape. This is where the backup files will be stored. We will need to create 15 slots as per tapecycle keyword:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ for n in `seq 1 15`; do mkdir /central_backup/ServerNetBackup/slots/slot${n}; done</span></span></pre>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">We then need to label all slots:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ for n in `seq 1 15` ; do amlabel ServerNetBackup ServerNetBackup-${n} slot ${n}; done</span></span></pre>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Create all required directories as defined in the configuration file:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ mkdir /etc/amanda/ServerNetBackup/curinfo
$ mkdir /etc/amanda/ServerNetBackup/logs
$ mkdir /etc/amanda/ServerNetBackup/index</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Configure Service and What to Backup</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div class="separator" style="clear: both;">
</div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">We need to define what to backup in a file called disklist. As user amandabackup, create this file:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ su - amandabackup
$ vim /etc/amanda/ServerNetBackup/disklist</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">And add following line:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">sv101.hackthesec.co.in /home/webby/public_html comp-user-tar
gogogo.hackthesec.co.in /etc root-tar</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Notes: Make sure the hostname is FQDN and can be resolved to an IP. Add the host entry into /etc/hosts is recomended.</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div class="separator" style="clear: both;">
</div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Exit from amandabackup user and get back to root user:</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Enable amanda service in xinetd.d directory:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">vim /etc/xinetd.d/amanda</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">And change following line from "yes" to "no"</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Enable on boot and restart xinetd service:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ chkconfig xinetd on
$ service xinetd restart</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Check the amanda server whether it is running properly by using following command:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ netstat -a | grep amanda
udp 0 0 *:amanda *:*</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">If you see result as above, amanda server is ready to serve!</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div class="separator" style="clear: both;">
<span style="color: blue; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Install Amanda Backup Client</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: blue; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">======================</span></span></div>
<div class="separator" style="clear: both;">
</div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Login to the client’s server and install required package for Amanda using yum:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ yum install -y amanda amanda-client</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">As user amandabackup, add following line into /var/lib/amanda/.amandahosts to specify where is Amanda backup server:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ su - amandabackup
$ vim /var/lib/amanda/.amandahosts</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">And make sure the value as below:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">office.hackthesec.co.in amandabackup amdump
localhost amandabackup amdump
localhost.localdomain amandabackup amdump</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Exit from user amandabackup and turn to root user:</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Enable amanda service in xinetd.d directory:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ vim /etc/xinetd.d/amanda</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">And change following line from"yes" to "no"</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Enable on boot and start the xinetd service</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ chkconfig xinetd on
$ service xinetd start</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Add an entry in /etc/hosts to define backup server IP by adding following line:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">125.10.90.90 office.hackthesec.co.in</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">In some case, you may need to change the permission of the directory that you want to backup. For example, I need to allow user amandabackup to access directory /home/webby/public_html to create backup:</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div class="separator" style="clear: both;">
</div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">As root user, change the permission of the directory:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ chmod 755 /home/webby</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: blue; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Run the Backup Process</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: blue; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">=================</span></span></div>
<div class="separator" style="clear: both;">
</div>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Now go back to the Amanda server and check our configuration file as amandabackup user:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ su - amandabackup
$ amcheck ServerNetBackup</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">You should see the output similar to this:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">Client check: 2 host checked in 2.070 seconds. 0 problems found.</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">If no error found, you can start the backup process immediately by running following command:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ amdump ServerNetBackup</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Or, we can automate this process using cronjob. Run following command as amandabackup user:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ crontab -e</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">And add following line:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">45 0 * * 2-6 /usr/sbin/amdump ServerNetBackup</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">As root user, reload the crond service to activate this job:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">$ service crond reload</span></span></pre>
<div class="separator" style="clear: both;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div class="separator" style="clear: both;">
<a href="http://forums.zmanda.com/" style="background-color: #7baac3; color: white; display: block; font-family: Arial, Helvetica, sans-serif; font-size: 15.36px; font-weight: 900; padding: 2px 0px 2px 10px; text-decoration-line: none;">Amanda forums</a><a href="http://forums.zmanda.com/" style="background-color: #7baac3; color: white; display: block; font-family: Arial, Helvetica, sans-serif; font-size: 15.36px; font-weight: 900; padding: 2px 0px 2px 10px; text-decoration-line: none;"></a><a href="http://wiki.zmanda.com/index.php/Tapetype%20definitions" style="color: white; display: block; font-size: 15.36px; padding: 2px 0px 2px 10px; text-decoration-line: none;">Tape Type List</a><a href="http://forums.zmanda.com/" style="background-color: #7baac3; color: white; display: block; font-family: Arial, Helvetica, sans-serif; font-size: 15.36px; font-weight: 900; padding: 2px 0px 2px 10px; text-decoration-line: none;"></a><a href="http://wiki.zmanda.com/index.php/Main_Page" style="background-color: #d7e6ee; color: #0f519a; display: block; font-size: 15.36px; padding: 2px 0px 2px 10px; text-decoration-line: none;">Amanda Wiki</a></div>
<div class="separator" style="clear: both;">
<br /></div>
</div>
Sarkari-JOBhttp://www.blogger.com/profile/07703466142666802829noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-52725552384778480742017-07-10T16:27:00.000+05:302017-07-10T16:27:32.035+05:30How to Install LEMP Stack on Debian 9<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span style="color: #0b5394; font-family: verdana, geneva, sans-serif; font-size: large;"><u><b>Install LEMP Stack on Debian 9</b></u></span></div>
<div style="text-align: center;">
<span style="color: #0b5394; font-family: verdana, geneva, sans-serif; font-size: large;"><u><b><br /></b></u></span></div>
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: verdana, geneva, sans-serif;">Today we are going to </span></span><span style="background-color: white; color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">guide you </span><span style="background-color: white; color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">install LEMP stack to brand new Debian GNU/Linux 9 Stretch. <a href="http://www.hackthesec.co.in/search/label/LEMP">LEMP</a> stands for Linux, <a href="http://www.hackthesec.co.in/search/label/NGINX">Nginx </a>(as in Engine X), MySQL and PHP. From Debian 9, <a href="http://www.hackthesec.co.in/search/label/MariaDB">Mariadb</a> is the default mysql server. But you can also choose <a href="http://www.hackthesec.co.in/search/label/Mysql">mysql</a> for installation. It is the counterpart of more popular LAMP stack except instead of Apache httpd we use nginx. Earlier we have tried LEMP stack on Ubuntu and docker container. </span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg_CyZ2-sqaQ5zeqH6JsLUMcrlZhFxzGRc4-5qXc-zZ4ME2BNzx1EM_rKnNCfr3RsjuKfAEKXP23KNH8bvXNA7loj4U5OLKY70uZxVjad0ZRjH0DwLC9PETejcnlyZL0rY1uIxcLrXvh4/s1600/Debian9_LAMP.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="341" data-original-width="713" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg_CyZ2-sqaQ5zeqH6JsLUMcrlZhFxzGRc4-5qXc-zZ4ME2BNzx1EM_rKnNCfr3RsjuKfAEKXP23KNH8bvXNA7loj4U5OLKY70uZxVjad0ZRjH0DwLC9PETejcnlyZL0rY1uIxcLrXvh4/s1600/Debian9_LAMP.png" /></a></div>
<br />
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><b><u>Installing Nginx, Mariadb and PHP</u></b></span></span><br />
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><b><u><br /></u></b></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Installation of nginx, MariaDB and PHP by bellow command line from bash terminal</span></span><span style="background-color: white; color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;"> </span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">apt install nginx mysql-server mysql-client php-fpm php-mysql libfcgi0ldbl</span></span></pre>
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: verdana, geneva, sans-serif;">Now start all needed services with systemd and </span></span><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">enable them to start at boot</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;"># systemctl start php7.0-fpm nginx mysql
# systemctl enable php7.0-fpm nginx mysql</span></span></pre>
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><u><b>Configuring LEMP Stack</b></u></span></span><br />
<span style="background-color: white; color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;"><br /></span>
<span style="background-color: white;"><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Now Configure the mysql through bellow command line and use "y" for every question and set the mysql root password. </span></span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">mysql_secure_installation</span></span></pre>
<span style="background-color: white; color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">Now </span><span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">you need to bind socket for fastcgi through bellow command line </span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">cgi-fcgi -bind -connect /run/php/php7.0-fpm.sock</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Now we are going to configure sites in nginx configuration folder. First we move default config as backup for security purpose</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">mv /etc/nginx/sites-available/default /etc/nginx/sites-available/df.bk</span></span></pre>
<span style="background-color: white; color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">After that we will make our own configuration file by bellow command line</span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">nano /etc/nginx/sites-available/default</span></span></pre>
<span style="background-color: white; color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">After that paste the bellow lines on the "default" empty file </span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;"> server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
}</span></span></pre>
<div>
<span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;"><br /></span></span></div>
<span style="background-color: white; color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">Now make a index.php file in /var/www/html/ by bellow command line</span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">echo "<?php phpinfo(); ?>" > /var/www/html/index.php</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="background-color: white; font-size: 15px;">Now check the mysql is working properly or not. First create a database user and password also a database on the mysql by follow command line </span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">mysql -u root -e "CREATE USER 'hackthesec'@'%' IDENTIFIED BY 'test@123';"
mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'hackthesec'@'%' WITH GRANT OPTION"</span></span></pre>
<span style="background-color: white; color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">To check the mysql is working or not use the following command</span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">nano /var/www/html/db.php</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;"><?php
$dbh = mysqli_connect('localhost', 'hackthesec', 'test@123');
if (!$dbh) {
die('Could not connect: ' . mysqli_error());
}
echo 'Connected successfully';
mysqli_close($dbh);
?></span></span></pre>
<span style="background-color: white; color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;"><br /></span>
<span style="background-color: white; color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">Now reboot the system or restart the services ..</span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">systemctl restart php7.0-fpm nginx mysql</span></span></pre>
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: verdana, geneva, sans-serif;">Now open your web browser and hit your web server ip you will see the bellow test page.</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhog28ZsH9WCt0c57LCs99DOYAVXK9Q1py5BYGxBE_h4X_iJwRdJXq42WHOHT4xMvDvK4roIC0UsGHeS2uDNHpBfAORRVKQG8N5LcDZZf_RxOdfw1p5UJxx7XXwr4GRfl9U8ODB4w48ga4/s1600/LAMP.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="855" data-original-width="1114" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhog28ZsH9WCt0c57LCs99DOYAVXK9Q1py5BYGxBE_h4X_iJwRdJXq42WHOHT4xMvDvK4roIC0UsGHeS2uDNHpBfAORRVKQG8N5LcDZZf_RxOdfw1p5UJxx7XXwr4GRfl9U8ODB4w48ga4/s1600/LAMP.jpg" /></a></div>
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: verdana, geneva, sans-serif;">Allow lamp on firewall through bellow commands </span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">ufw allow 3306/tcp
ufw allow 80/tcp
ufw allow 443/tcp (allow if you use https)</span></span></pre>
<br />
@Hackthesec</div>
Sarkari-JOBhttp://www.blogger.com/profile/07703466142666802829noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-13675353648555381012017-07-10T15:40:00.002+05:302017-07-10T15:40:47.743+05:30Magnus Open Source VOIP Softswitch And Billing<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b><u>VOIP Softswitch And Billing Portal</u></b></span></span></div>
<div style="text-align: center;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><b><u><br /></u></b></span></span></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">MagnusBilling is a VoIP Billing server system that brings together the best IP billing telephony software in the market, creating a comprehensive, flexible and superior tool. MagnusBilling was made for companies that need freedom to build their own VoIP server. </span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">You will be able to chose your termination, giving your business larger flexibility and autonomy.</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8eMX5CtlAhfk9uyEIR0JEcJwOtUWuTzCVTFE_fypN1eDzL76jrmUr1qsZiXhtSc6pcsKP7sTAgJcymqJQAFrw1mGWFRaKaPY7l04jyiGNlAFYKxbFJmXmoYYeg96GSsSGM2uih4H-UbA/s1600/magnusbilling.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="647" data-original-width="1349" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8eMX5CtlAhfk9uyEIR0JEcJwOtUWuTzCVTFE_fypN1eDzL76jrmUr1qsZiXhtSc6pcsKP7sTAgJcymqJQAFrw1mGWFRaKaPY7l04jyiGNlAFYKxbFJmXmoYYeg96GSsSGM2uih4H-UbA/s1600/magnusbilling.jpg" /></a></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">MagnusBilling is a free billing OpenSource to Asterisk.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><u><b>Features of magnusbilling</b></u></span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><u><b><br /></b></u></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Softswitch class 4 & 5</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Voice broadcasting</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">CallingCard</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">DID Management</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">SMS sending</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">CallShop</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">CidCallBack</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">0800Web</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">IVR</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Call queue</span></span><br />
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Integrated with asterisk</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Many More : - https://www.magnusbilling.com/wiki</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">How to install it<br />=================</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">cd /usr/src
yum -y install wget
wget http://downloads.sourceforge.net/project/magnusbilling/install.sh
chmod +x install.sh
./install.sh</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<strong style="background-color: white; box-sizing: border-box; font-family: Roboto, Raleway, Helvetica, Arial, sans-serif; font-size: 14px;"><span style="box-sizing: border-box; color: #3682ce;">WARNING!! THE SERVER WILL BE REBOOTED AFTER THE INSTALL!!</span></strong><span style="background-color: white; font-family: Roboto, Raleway, Helvetica, Arial, sans-serif; font-size: 14px;"></span><br />
<div style="background-color: white; box-sizing: border-box; font-family: Roboto, Raleway, Helvetica, Arial, sans-serif; font-size: 14px; margin-bottom: 10px;">
MagnusBilling's dashboard: <a href="http://your_ip/" style="background-color: transparent; box-sizing: border-box; color: black; text-decoration-line: none; transition: color 400ms, background-color 400ms;"><strong style="box-sizing: border-box;">http://your_ip/</strong></a></div>
<div style="background-color: white; box-sizing: border-box; font-family: Roboto, Raleway, Helvetica, Arial, sans-serif; font-size: 14px; margin-bottom: 10px;">
Default user: <strong style="box-sizing: border-box;">root</strong></div>
<div style="background-color: white; box-sizing: border-box; font-family: Roboto, Raleway, Helvetica, Arial, sans-serif; font-size: 14px; margin-bottom: 10px;">
Default password: <strong style="box-sizing: border-box;">magnus</strong></div>
<div style="background-color: white; box-sizing: border-box; font-family: Roboto, Raleway, Helvetica, Arial, sans-serif; font-size: 14px; margin-bottom: 10px;">
<strong style="box-sizing: border-box;"><em style="box-sizing: border-box;">Remember to change the root's password!!!</em></strong></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
Sarkari-JOBhttp://www.blogger.com/profile/07703466142666802829noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-88125531677172833902017-07-10T15:05:00.000+05:302017-07-10T15:05:59.164+05:30How-to extend a root LVM partition online<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: large;"><u><b>Extend a root LVM partition online</b></u></span></div>
<div style="text-align: center;">
<span style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: large;"><u><b><br /></b></u></span></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">There is also a quick remedy for the emergency situation when your root partition runs out of disk space. There is a feature specific to ext3 and ext4 that can help the goal of resolving the full disk situation. Unless explicitly changed during filesystem creation, both by default reserve five percent (5%) of a volume capacity to the superuser (root).</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg49p9cF_CO5MMzNQBEy_f-AZhdR8y3PPuMATkF7r864Qhex6kGRF8DAdINHqjKC0ToWJLtwK5U12uv00fgXqGrVtCrftGyoa6Ny0c45fpMIAY2mEJkkMlgEQARGDMTeIXE7dmvlWlL0Ww/s1600/maxresdefault.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="360" data-original-width="639" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg49p9cF_CO5MMzNQBEy_f-AZhdR8y3PPuMATkF7r864Qhex6kGRF8DAdINHqjKC0ToWJLtwK5U12uv00fgXqGrVtCrftGyoa6Ny0c45fpMIAY2mEJkkMlgEQARGDMTeIXE7dmvlWlL0Ww/s1600/maxresdefault.jpg" /></a></div>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;"># df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vg_main-lv_root
ext4 8.4G 8.0G 952K 100% /
tmpfs tmpfs 499M 0 499M 0% /dev/shm
/dev/vda1 ext4 485M 33M 428M 8% /boot
# dumpe2fs /dev/vg_main/lv_root | grep 'Reserved block count'
dumpe2fs 1.41.12 (17-May-2010)
Reserved block count: 111513</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">It turned out 111513 of 4KB blocks were reserved for the superuser, which was exactly five percent of the volume capacity.</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">How to enable it?</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;"># tune2fs -m 0 /dev/vg_main/lv_root
tune2fs 1.41.12 (17-May-2010)
Setting reserved blocks percentage to 0% (0 blocks)
# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vg_main-lv_root
ext4 8.4G 8.0G 437M 95% /
tmpfs tmpfs 499M 0 499M 0% /dev/shm
/dev/vda1 ext4 485M 33M 428M 8% /boot</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Now that we have some free space on the root partition to work on we can extend the LVM partition:</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Create a new partition of appropriate size using fdisk</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">fdisk /dev/sdb1</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">This is a key sequence on the keyboard to create a new LVM type (8e) partition:</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">n, p, 1, enter (accept default first sector), enter (accept default last sector), t, 8e, w</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Create a new Physical Volume</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;"># pvcreate /dev/sdb1
Writing physical volume data to disk "/dev/sdb1"
Physical volume "/dev/sdb1" successfully created</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Extend a Volume Group</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;"># vgextend vg_main /dev/sdb1
Volume group "vg_main" successfully extended</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Extend your LVM</span></span><br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">- extend the size of your LVM by the amount of free space on PV</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;"># lvextend /dev/vg_main/lv_root /dev/sdb1
Extending logical volume lv_root to 18.50 GiB
Logical volume lv_root successfully resized</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">- or with a given size</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">lvextend -L +10G /dev/vg_main/lv_root</span></span></pre>
<br />
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Finally resize the file system online</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;"># resize2fs /dev/vg_main/lv_root
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/vg_main/lv_root is mounted on /; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 2
Performing an on-line resize of /dev/vg_main/lv_root to 4850688 (4k) blocks.
The filesystem on /dev/vg_main/lv_root is now 4850688 blocks long.</span></span></pre>
<span style="color: #333333; font-family: verdana, geneva, sans-serif;"><span style="font-size: 15px;">Now we can set the reserved blocks back to the default percentage - 5%</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace, serif;"><span style="font-size: 14px;">tune2fs -m 5 /dev/mapper/vg_main-lv_root
Results:
# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vg_main-lv_root
ext4 19G 8.0G 9.4G 46% /
tmpfs tmpfs 499M 0 499M 0% /dev/shm
/dev/vda1 ext4 485M 33M 428M 8% /boot</span></span></pre>
<br /></div>
Sarkari-JOBhttp://www.blogger.com/profile/07703466142666802829noreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-705712965045950412017-06-05T11:26:00.000+05:302017-06-05T11:26:15.459+05:30Adobe Flash Out-of-Bounds Read in Getting TextField Width Exploit (0DAY)<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span style="color: #0b5394; font-size: large;"><u>Adobe Flash Out-of-Bounds Read in Getting TextField Width Exploit (0DAY)</u></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHW9OqlkWVHdBF-nhyphenhyphencS_1cPDo-uZXXfs-rlvgu6vpZIf0pWdx3I1Pt5TZaDUGAbDqt2_Ho_3ltCP3xoBsH_SuJdKEWjAeYll_FwATWJw_f3CiDaVqN604C7a17dEOAjpBYX1Px32TELbZ/s1600/AdobeFlashoday.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="282" data-original-width="629" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHW9OqlkWVHdBF-nhyphenhyphencS_1cPDo-uZXXfs-rlvgu6vpZIf0pWdx3I1Pt5TZaDUGAbDqt2_Ho_3ltCP3xoBsH_SuJdKEWjAeYll_FwATWJw_f3CiDaVqN604C7a17dEOAjpBYX1Px32TELbZ/s1600/AdobeFlashoday.jpg" /></a></div>
<div style="text-align: center;">
<span style="color: #0b5394; font-size: large;"><u><br /></u></span></div>
<table class="exploit_list" style="background-color: rgb(239, 239, 239) !important; border-radius: 3px !important; border-spacing: 1px; border: 1px solid rgb(221, 221, 221) !important; box-sizing: border-box; color: #666666; font-family: "Open Sans", sans-serif; font-size: 14px; margin: 10px 0px; padding: 1px !important; width: 583px;"><tbody style="box-sizing: border-box;">
<tr style="background-color: rgb(248, 248, 248) !important; box-sizing: border-box;"><td style="border-bottom: 1px solid rgb(232, 232, 232); border-left-color: rgb(232, 232, 232); border-right-color: rgb(232, 232, 232); border-top-color: rgb(232, 232, 232); box-sizing: border-box; padding: 5px 10px;"><br /></td><td style="border-bottom: 1px solid rgb(232, 232, 232); border-left-color: rgb(232, 232, 232); border-right-color: rgb(232, 232, 232); border-top-color: rgb(232, 232, 232); box-sizing: border-box; padding: 5px 10px;"><strong style="box-sizing: border-box;">Author</strong>: Google Security Research</td><td style="border-bottom: 1px solid rgb(232, 232, 232); border-left-color: rgb(232, 232, 232); border-right-color: rgb(232, 232, 232); border-top-color: rgb(232, 232, 232); box-sizing: border-box; padding: 5px 10px;"><strong style="box-sizing: border-box;">Published</strong>: 2017-05-17</td></tr>
<tr style="background-color: rgb(248, 248, 248) !important; box-sizing: border-box;"><td style="border-bottom: 1px solid rgb(232, 232, 232); border-left-color: rgb(232, 232, 232); border-right-color: rgb(232, 232, 232); border-top-color: rgb(232, 232, 232); box-sizing: border-box; padding: 5px 10px;"><strong style="box-sizing: border-box;">CVE</strong>: CVE-2017-3064</td><td style="border-bottom: 1px solid rgb(232, 232, 232); border-left-color: rgb(232, 232, 232); border-right-color: rgb(232, 232, 232); border-top-color: rgb(232, 232, 232); box-sizing: border-box; padding: 5px 10px;"><strong style="box-sizing: border-box;">Type</strong>: Dos</td><td style="border-bottom: 1px solid rgb(232, 232, 232); border-left-color: rgb(232, 232, 232); border-right-color: rgb(232, 232, 232); border-top-color: rgb(232, 232, 232); box-sizing: border-box; padding: 5px 10px;"><strong style="box-sizing: border-box;">Platform</strong>: Multiple</td></tr>
<tr style="background-color: rgb(248, 248, 248) !important; box-sizing: border-box;"><td style="border-bottom: 1px solid rgb(232, 232, 232); border-left-color: rgb(232, 232, 232); border-right-color: rgb(232, 232, 232); border-top-color: rgb(232, 232, 232); box-sizing: border-box; padding: 5px 10px;"><strong style="box-sizing: border-box;">Aliases</strong>: N/A</td><td style="border-bottom: 1px solid rgb(232, 232, 232); border-left-color: rgb(232, 232, 232); border-right-color: rgb(232, 232, 232); border-top-color: rgb(232, 232, 232); box-sizing: border-box; padding: 5px 10px;"><strong style="box-sizing: border-box;">Advisory/Source</strong>: <a class="external" href="https://bugs.chromium.org/p/project-zero/issues/detail?id=1211" rel="nofollow" style="background-color: transparent; box-sizing: border-box; color: #337ab7; outline: 0px; text-decoration-line: none; transition-duration: 0.3s; transition-property: background-color, box-shadow, border, color, opacity, transform;" target="_blank">Link</a></td><td style="border-bottom: 1px solid rgb(232, 232, 232); border-left-color: rgb(232, 232, 232); border-right-color: rgb(232, 232, 232); border-top-color: rgb(232, 232, 232); box-sizing: border-box; padding: 5px 10px;"><strong style="box-sizing: border-box;">Tags</strong>: Out Of Bounds</td></tr>
<tr style="background-color: rgb(248, 248, 248) !important; box-sizing: border-box;"><td style="border-bottom: 1px solid rgb(232, 232, 232); border-left-color: rgb(232, 232, 232); border-right-color: rgb(232, 232, 232); border-top-color: rgb(232, 232, 232); box-sizing: border-box; padding: 5px 10px;"><br /></td><td style="border-bottom: 1px solid rgb(232, 232, 232); border-left-color: rgb(232, 232, 232); border-right-color: rgb(232, 232, 232); border-top-color: rgb(232, 232, 232); box-sizing: border-box; padding: 5px 10px;"><strong style="box-sizing: border-box;">Exploit</strong>: <a href="https://www.exploit-db.com/download/42019" style="background-color: transparent; box-sizing: border-box; color: #337ab7; outline: 0px; text-decoration-line: none; transition-duration: 0.3s; transition-property: background-color, box-shadow, border, color, opacity, transform;"><img alt="Download Exploit Code" border="0" src="https://www.exploit-db.com/wp-content/plugins/edb/ifc/edb-download.png" style="border: 0px; box-sizing: border-box; height: auto; max-width: 100%; vertical-align: middle;" title="Download Exploit Code" /> Download </a></td><td colspan="2" style="border-bottom: 1px solid rgb(232, 232, 232); border-left-color: rgb(232, 232, 232); border-right-color: rgb(232, 232, 232); border-top-color: rgb(232, 232, 232); box-sizing: border-box; padding: 5px 10px;"><strong style="box-sizing: border-box;">Vulnerable App</strong>: N/A</td></tr>
</tbody></table>
<br /><div class="line number1 index0 alt2" style="background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #666666; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap !important; width: auto !important;">
<code class="text plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">Source: <a href="https://bugs.chromium.org/p/project-zero/issues/detail?id=1211" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; text-decoration-line: none; top: auto !important; transition-duration: 0.3s; transition-property: background-color, box-shadow, border, color, opacity, transform; vertical-align: baseline !important; width: auto !important;">https://bugs.chromium.org/p/project-zero/issues/detail?id=1211</a></code></div>
<div class="line number2 index1 alt1" style="background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #666666; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap !important; width: auto !important;">
</div>
<div class="line number3 index2 alt2" style="background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #666666; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap !important; width: auto !important;">
<code class="text plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">The attached swf causes an out-of-bounds read in getting the width of a TextField.</code></div>
<div class="line number4 index3 alt1" style="background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #666666; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap !important; width: auto !important;">
</div>
<div class="line number5 index4 alt2" style="background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #666666; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap !important; width: auto !important;">
</div>
<div class="line number6 index5 alt1" style="background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #666666; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap !important; width: auto !important;">
<code class="text plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">Proof of Concept:</code></div>
<div class="line number7 index6 alt2" style="background: none white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: #666666; direction: ltr !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 14px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre-wrap !important; width: auto !important;">
<code class="text plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><a href="https://github.com/offensive-security/exploit-database-bin-sploits/raw/master/sploits/42019.zip" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; text-decoration-line: none; top: auto !important; transition-duration: 0.3s; transition-property: background-color, box-shadow, border, color, opacity, transform; vertical-align: baseline !important; width: auto !important;">https://github.com/offensive-security/exploit-database-bin-sploits/raw/master/sploits/42019.zip</a></code></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-41545459638118394382017-01-05T12:21:00.001+05:302017-01-05T12:21:17.544+05:30How to replace MySQL with MariaDB in cpanel<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: large;"><b><u>Replace MySQL with MariaDB in cpanel</u></b></span></div>
<div style="text-align: center;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: large;"><b><u><br /></u></b></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><a href="http://www.hackthesec.co.in/search/label/cPanel">cPanel</a> </b>is a Linux-based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site.</span></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBQywZi06TXKZwFsQs3sass_IJeTf3TED7JAhV-aVU3Nobbr9RBdFFwz2EXi8X0XmllWQiIZ88mA5Rg_Qubwf7LOxE2b9cFJQQxL6Uy4qW_ujuMRZHWGugVEnVFgzLK3IpMg-5GACfKw_D/s1600/MySQL-to-MariaDB.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="273" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBQywZi06TXKZwFsQs3sass_IJeTf3TED7JAhV-aVU3Nobbr9RBdFFwz2EXi8X0XmllWQiIZ88mA5Rg_Qubwf7LOxE2b9cFJQQxL6Uy4qW_ujuMRZHWGugVEnVFgzLK3IpMg-5GACfKw_D/s400/MySQL-to-MariaDB.jpg" width="400" /></a></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><a href="http://www.hackthesec.co.in/search/label/MariaDB"><b>MariaDB</b> </a>is a community-developed fork of the MySQL relational database management system intended to remain free under the GNU GPL. It is notable for being led by the original developers of <b><a href="http://www.hackthesec.co.in/search/label/Mysql">MySQL</a></b>, who forked it due to concerns over its acquisition by Oracle.</span></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Make sure to save all existing data just in case there are any issues.</span></span></div>
<div style="clear: both; margin: 10px 0;">
<center>
<script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- linuxtutorial8 -->
<ins class="adsbygoogle" data-ad-client="ca-pub-5744890361111211" data-ad-slot="1658755283" style="display: inline-block; height: 15px; width: 728px;"></ins></center>
</div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">cp -Rf /var/lib/mysql /var/lib/mysql-old
mv /etc/my.cnf /etc/my.cnf-old</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><u>Disable the targets so cPanel no longer handles MySQL updates</u></span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">The following will mark the versions of MySQL we distribute as uninstalled so they are no longer maintained by cPanel/WHM</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">/scripts/update_local_rpm_versions –edit target_settings.MySQL50 uninstalled
/scripts/update_local_rpm_versions –edit target_settings.MySQL51 uninstalled
/scripts/update_local_rpm_versions –edit target_settings.MySQL55 uninstalled</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><u>Remove existing MySQL RPM’s so theres a clean slate for MariaDB</u></span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">The below command will uninstall the MySQL RPM’s!</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">/scripts/check_cpanel_rpms –fix –targets=MySQL50,MySQL51,MySQL55</span></span></pre>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Create a yum repository for MariaDB</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">vi /etc/yum.repos.d/MariaDB.repo</span></span></pre>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Place the following inside of it depending on the DISTRO or you can download the repo details from this bellow link - </span></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">(https://downloads.mariadb.org/mariadb/repositories/):</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5.29/centos6-amd64/
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1</span></span></pre>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Remove php from the /etc/yum.conf file then run the following commands</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">yum install MariaDB-server MariaDB-client MariaDB-devel
/etc/init.d/mysql start
mysql_upgrade
/etc/init.d/mysql restart</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Add php back to the /etc/yum.conf file to ensure future php updates don't get clobbered</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Rebuild easyapache/php to ensure modules are intact/working</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">/scripts/easyapache –build</span></span></pre>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><a href="http://www.hackthesec.co.in/">www.hackthesec.co.in</a></span></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;">#hackthesec,#cPanel</span></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-73723790321733298662017-01-02T18:11:00.000+05:302017-01-02T18:50:24.098+05:30How to Install cockpit on Ubuntu 16.04<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: large;"><u><b>Install cockpit on Ubuntu 16.04</b></u></span></div>
<div style="text-align: center;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: large;"><u><b><br /></b></u></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Cockpit. A remote manager for GNU/Linux servers. Cockpit is a server manager that makes it easy to administer your GNU/Linux servers via a web browser.</span></span></div>
<div style="text-align: left;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;">Cockpit helps make linux system administrator, system maintainers and DevOps easy to manage their server and to perform simple tasks, such as administering storage, inspecting journals, starting and stopping services and more. </span></span></div>
<div style="text-align: left;">
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><br /></span></span></div>
<div style="text-align: left;">
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;">You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.</span></span></div>
<div style="text-align: left;">
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><br /></span></span></div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u>MY LAB SETUP</u></b></span></span><br />
<div style="clear: both; margin: 10px 0;">
<center>
<script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- linuxtutorial8 -->
<ins class="adsbygoogle" data-ad-client="ca-pub-5744890361111211" data-ad-slot="1658755283" style="display: inline-block; height: 15px; width: 728px;"></ins></center>
</div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">operating system – Ubuntu 16.04 server</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="background-color: white; font-size: 15px;"></span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">IP Address – 172.17.56.101/24 also i am using my aws live domain name</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">sudo add-apt-repository ppa:cockpit-project/cockpit</span></span></pre>
<div style="text-align: left;">
<span style="background-color: white;"><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">After adding the repository execute the bellow command from your terminal</span></span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">sudo apt-get update</span></span></pre>
<div style="text-align: left;">
<span style="background-color: white; color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;">After completed the update process run the bellow command for install the cockpit</span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">sudo apt-get install cockpit</span></span></pre>
<div style="text-align: left;">
<span style="background-color: white; color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;">After complete installation just start and enable the service through bellow commands</span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif; font-size: 14px;">systemctl start cockpit.socket
systemctl enable cockpit.socket</span><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px; white-space: normal;">
</span></span></pre>
<div style="text-align: left;">
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;">Cockpit by default runs on port 9090,therefore if firewall is enabled,allow the port by executing the following command:</span></span></div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">ufw allow 9090/tcp</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Now go to your browser and log on using your hostname or IP address in the format similar to one below:</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="background-color: white; font-size: 15px;"></span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">https://<ip address>:9090 or https://<hostname>:9090</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDC498P18R1533axnTLmAa0J2pWTHVazF_cPrCr_jLdEeiNXZ07-WGNXiSV4DMSIz7-MZc0qs7na0qkeOfCD8JPz5QwfC08iWVfAlym2V37WyubSlhBRrY8zqislUd56zYhFBOuFm1ubm6/s1600/cockpit_login.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDC498P18R1533axnTLmAa0J2pWTHVazF_cPrCr_jLdEeiNXZ07-WGNXiSV4DMSIz7-MZc0qs7na0qkeOfCD8JPz5QwfC08iWVfAlym2V37WyubSlhBRrY8zqislUd56zYhFBOuFm1ubm6/s1600/cockpit_login.png" /></a></div>
<div style="text-align: left;">
<span style="background-color: white; color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;">Now, we'll be asked to enter the login details in order to enter into the dashboard. Here, the username and password is the same as that of the login details we use to login to our linux server. After we enter the login details and click on Log In button, we will be welcomed into the Cockpit Dashboard.</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQvJUc8HFWApb6PyNDUy3-GnmULOEj-G9ovR-5eXqApzkBDsKoiyvUYHR-0n2ZcJ6lNeEAq0Z6FWc4Mci96wOqAXdjDyQuDyD9ByS-7RXhWFGtaUJYVDnHmszTGyS641dlJtUlZGEkFrE2/s1600/cockpit.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQvJUc8HFWApb6PyNDUy3-GnmULOEj-G9ovR-5eXqApzkBDsKoiyvUYHR-0n2ZcJ6lNeEAq0Z6FWc4Mci96wOqAXdjDyQuDyD9ByS-7RXhWFGtaUJYVDnHmszTGyS641dlJtUlZGEkFrE2/s1600/cockpit.png" /></a></div>
<div style="text-align: left;">
<span style="background-color: white; color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;">www.hackthesec.co.in</span></div>
<div style="text-align: left;">
<br /></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-71580362362461274232017-01-02T14:22:00.000+05:302017-01-02T14:22:01.762+05:30How to install Latest VirtualBox Version In Debian/Ubuntu/Linux Mint<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: large;"><u>VirtualBox Version In Debian/Ubuntu/Linux Mint</u></span></div>
<div style="text-align: center;">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: large;"><u><br /></u></span></div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><a href="http://www.hackthesec.co.in/search/label/VirtualBox">VirtualBox</a> is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. Not only is VirtualBox an extremely feature rich, high performance product for enterprise customers, it is also the only professional solution that is freely available as Open Source Software under the terms of the GNU General Public License (GPL) version 2. See "About <a href="http://www.hackthesec.co.in/search/label/VirtualBox">VirtualBox</a>" for an introduction.</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Presently, VirtualBox runs on Windows, Linux, Macintosh, and Solaris hosts and supports a large number of guest operating systems including but not limited to Windows (NT 4.0, 2000, XP, Server 2003, Vista, Windows 7, Windows 8, Windows 10), DOS/Windows 3.x, Linux (2.4, 2.6, 3.x and 4.x), Solaris and OpenSolaris, OS/2, and OpenBSD.</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1EU4txNG33okIHaxZHNeSNJjV2iDxbuPzaM1pJPhtf8FT8fpY8IG_DGpw-wMCruEXniPPSRa3L8MknEWIyqE3lgilMoy8opSkV59j0qDfeOAGOeju5-9BEXtg38-6Ba1DAOlTf8_Zm_iN/s1600/moving-virtualbox-vm.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1EU4txNG33okIHaxZHNeSNJjV2iDxbuPzaM1pJPhtf8FT8fpY8IG_DGpw-wMCruEXniPPSRa3L8MknEWIyqE3lgilMoy8opSkV59j0qDfeOAGOeju5-9BEXtg38-6Ba1DAOlTf8_Zm_iN/s1600/moving-virtualbox-vm.png" /></a></div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">VirtualBox is being actively developed with frequent releases and has an ever growing list of features, supported guest operating systems and platforms it runs on. VirtualBox is a community effort backed by a dedicated company: everyone is encouraged to contribute while Oracle ensures the product always meets professional quality criteria.</span></span><br />
<div style="text-align: left;">
<span style="background-color: white; color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;"><br /></span></div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Download <a href="https://www.virtualbox.org/wiki/Downloads">Extensions</a> for VirtualBox (like: Usb 2.0, etc). You can even download <a href="https://www.virtualbox.org/wiki/Linux_Downloads">deb file</a> if you don't want to add repository.</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="background-color: white; font-size: 15px;"></span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">For other distributions download from <a href="https://www.virtualbox.org/wiki/Linux_Downloads">here</a>.</span></span><br />
<div style="clear: both; margin: 10px 0;">
<center>
<script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- linuxtutorial8 -->
<ins class="adsbygoogle" data-ad-client="ca-pub-5744890361111211" data-ad-slot="1658755283" style="display: inline-block; height: 15px; width: 728px;"></ins></center>
</div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox_2016.asc -O- | sudo apt-key add -</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">sudo apt-get update</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">sudo apt-get install virtualbox-5.1</span></span></pre>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
Done</div>
<div style="text-align: left;">
<span style="background-color: white; color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;"><br /></span></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-59504958868425331352016-12-30T14:37:00.000+05:302016-12-30T14:39:12.758+05:30How to Install and Configure Nextcloud on CentOS 7 / RHEL 7<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: large;"><u>Install and Configure Nextcloud on CentOS / RHEL 7</u></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: large;"><u><br /></u></span>
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Nextcloud is functionally very similar to the widely used Dropbox, with the primary functional difference being that Nextcloud is free and open-source, and thereby allowing anyone to install and operate it without charge on a private server. </span></span><br />
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">In contrast to proprietary services like Dropbox, the open architecture allows adding additional functionality to the server in form of so-called applications.</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcCnuhnD5JV7hXxzNrLUGJBFH-PKLY7ZsM2-1VbEkPN_eAeh9DL0cSL4wpvR78lvHl1wFC8KR1fH0IwRLrfsBqb6u3mCUK7-MlaOt4jbni9Rbg1Rvt6BX4HXeBR_sC6ljsCd2TwTqxoi3l/s1600/nextcloud-hackthesec.co.in.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcCnuhnD5JV7hXxzNrLUGJBFH-PKLY7ZsM2-1VbEkPN_eAeh9DL0cSL4wpvR78lvHl1wFC8KR1fH0IwRLrfsBqb6u3mCUK7-MlaOt4jbni9Rbg1Rvt6BX4HXeBR_sC6ljsCd2TwTqxoi3l/s1600/nextcloud-hackthesec.co.in.jpg" /></a></div>
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Nextcloud is an actively maintained fork of ownCloud.</span></span><br />
<div style="clear: both; margin: 10px 0;">
<center>
<script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- linuxtutorial8 -->
<ins class="adsbygoogle" data-ad-client="ca-pub-5744890361111211" data-ad-slot="1658755283" style="display: inline-block; height: 15px; width: 728px;"></ins></center>
</div>
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u>Some of the Key features of Nextcloud are listed below:</u></b></span></span><br />
<div>
<ul style="text-align: left;">
<li><span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">File access & sharing </span></span></li>
<li><span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Security & control </span></span></li>
<li><span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Mobile & desktop clients </span></span></li>
<li><span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">External storage </span></span></li>
<li><span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Calendar & Contacts </span></span></li>
<li><span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Secure audio & video calls</span></span></li>
<li><span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Collabora Online Office</span></span></li>
<li><span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Videos of Nextcloud in action</span></span></li>
</ul>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u>Requirement to Install NextCloud on RHEL AND CENTOS</u></b></span></span></div>
</div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u><br /></u></b></span></span></div>
<span style="font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;">Minimum of 512 MB RAM</span><br />
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Web Server : Apache (httpd) / Nginx</span></span><br />
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Database Server : MariaDB / MySQL / PostgreSQL</span></span><br />
<br />
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">PHP 5.4 +</span></span><br />
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Installation</span></span><br />
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">========</span></span><br />
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Use the below yum command to install Apache Web Server (httpd), PHP packages and its other dependent packages.</span></span><br />
<br />
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">In the default CentOS and RHEL repositories PHP 5.4 packages are available</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; color: white; font-family: monospace, serif; font-size: 14px; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;">yum install httpd php php-mysql sqlite php-dom php-mbstring php-gd php-pdo php-json php-xml php-zip php-gd curl php-curl php-mcrypt php-pear</pre>
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Start and startup enable apache web service using this command</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">systemctl start httpd ; systemctl enable httpd</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u>MariaDB database for Nextcloud</u></b></span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">yum install -y mariadb-server mariadb</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="background-color: white; font-size: 15px;"></span></span><br />
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Start and startup enable MariaDB service using this command</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">systemctl start mariadb; systemctl enable mariadb</span></span></pre>
<span style="background-color: white; font-size: 15px;"><span style="font-family: "verdana" , "geneva" , sans-serif;">For set MariaDB root password use the following command</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">mysql_secure_installation</span></span></pre>
<span style="background-color: white;"><span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">After completed the MariaDB installation just create a database for next-cloud application for me my database name is "</span></span></span><span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b>nextcloud_db</b>".</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">[root@nextcloud ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.47-MariaDB MariaDB Server
Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database nextcloud_db;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]></span></span></pre>
<span style="background-color: white; font-size: 15px;"><span style="font-family: "verdana" , "geneva" , sans-serif;">Create a database user (<b>nxtuser</b>) and grant all the privileges to the user on the database "<b>nextcloud_db</b>"</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">MariaDB [(none)]> grant all on nextcloud_db.* to 'nxtuser'@'localhost' identified by 'Nextcloud@123#';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> exit
Bye
[root@nextcloud ~]#</span></span></pre>
<span style="background-color: white; font-size: 15px;"><span style="font-family: "verdana" , "geneva" , sans-serif;"><b><u>Download the latest version of NextCloud</u></b></span></span><br />
<br />
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">First Install two packges on your server using bellow command</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">yum install wget bzip2 -y</span></span></pre>
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">After that download the file from nextcloud official website - <a href="https://download.nextcloud.com/server/releases/">ClickHere</a></span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">wget https://download.nextcloud.com/server/releases/nextcloud-9.0.53.tar.bz2</span></span></pre>
<span style="background-color: white;"><span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">When your download is complete just extract the downloaded "<b>nextcloud-9.0.53.tar.bz2</b>" file to Web Server document root (/var/www/html) using bellow command.</span></span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">tar -jxpvf nextcloud-9.0.53.tar.bz2 -C /var/www/html/</span></span></pre>
<span style="background-color: white; font-size: 15px;"><span style="font-family: "verdana" , "geneva" , sans-serif;">Set the required permissions on nextcloud directory and its sub directories and files</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">chown -R apache:apache nextcloud /var/www/html/nextcloud</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Open the ports in firewall for nextcloud (or you can stop the firewall) using bellow command.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">[root@nextcloud ~]# firewall-cmd --permanent --zone=public --add-service=http
[root@nextcloud ~]# firewall-cmd --permanent --zone=public --add-service=https
[root@nextcloud ~]# firewall-cmd --reload</span></span></pre>
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;">In my Case I am putting selinux in disabled mod using below command you can use it as </span></span><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">permissive mod</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">setenforce 0</span></span></pre>
<span style="background-color: white;"><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">For Permanently disabled edit the following line and find this line"</span></span></span><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">SELINUX=enforcing" to disabled</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">vi /etc/sysconfig/selinux</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"># This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
</span></span></pre>
<div>
<span style="font-family: monospace , serif;"><span style="font-size: 14px;"><b><u><br /></u></b></span></span></div>
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u>Now Access nextCloud portal from Web Browser</u></b></span></span><br />
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u><br /></u></b></span></span>
<span style="background-color: white; font-size: 15px;"><span style="font-family: "verdana" , "geneva" , sans-serif;">After Complete the nextcloud installation you can access it from your web browser using your system ip or server ip</span></span><br />
<span style="background-color: white; font-size: 15px;"><span style="font-family: "verdana" , "geneva" , sans-serif;"><br /></span></span>
<span style="background-color: white; font-size: 15px;"><span style="font-family: "verdana" , "geneva" , sans-serif;">In my case my server ip is - 192.168.2.251</span></span><br />
<span style="background-color: white; font-size: 15px;"><span style="font-family: "verdana" , "geneva" , sans-serif;"><br /></span></span>
<span style="background-color: white; font-size: 15px;"><span style="font-family: "verdana" , "geneva" , sans-serif;">Specify the user name as admin and password that you want to set, Select the Database type as MariaDB and mentioned the database name, database user and its credentials. Once you’re are done with settings then click on finish Setup.</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdUrqikKS0fdC9vlvzf9cX3bWfHm71ek6WelCDrecpcoLHugEpivoFl-Qhw5vVh5XP2fAWp0YrzONCRJrGDdgCfp03W2YewPc2SzHQ_CZwyyXnekMxKGxBGYZh94QRMM4Ns1uniGvdNm3P/s1600/nextcloud-gui-installation.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdUrqikKS0fdC9vlvzf9cX3bWfHm71ek6WelCDrecpcoLHugEpivoFl-Qhw5vVh5XP2fAWp0YrzONCRJrGDdgCfp03W2YewPc2SzHQ_CZwyyXnekMxKGxBGYZh94QRMM4Ns1uniGvdNm3P/s1600/nextcloud-gui-installation.jpg" /></a></div>
<span style="background-color: white; color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;"><br /></span>
<span style="background-color: white; font-size: 15px;"><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;">Change the upload file size limit for nextcloud and restart the apache service</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">vi /etc/php.ini
============================
post_max_size = 30M
upload_max_filesize = 30M</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">systemctl restart httpd</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Now start uploading the files and share with your contacts and whatever you want</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2PxEvhX1ArtRP5Fdy3pFhPQ8HeBKSsjGmEkn_A5A__-5WpoUcVJyaRfNioIJeS2gOK56ZBrqgZtA6oCilfDIimiMbdvu7ethxJtJXahn6xLwSeUsd7hiRGlNXTBIglUxhh9kh-QGR4n8N/s1600/nextcloud.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2PxEvhX1ArtRP5Fdy3pFhPQ8HeBKSsjGmEkn_A5A__-5WpoUcVJyaRfNioIJeS2gOK56ZBrqgZtA6oCilfDIimiMbdvu7ethxJtJXahn6xLwSeUsd7hiRGlNXTBIglUxhh9kh-QGR4n8N/s1600/nextcloud.png" /></a></div>
<span style="background-color: white; color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;"><br /></span>
<a class="g-profile" href="https://plus.google.com/113492055880844042777" target="_blank">+Linux Tutorial</a><br />
<br /></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-69712401691124261982016-12-02T16:47:00.000+05:302016-12-02T16:47:40.679+05:30Enabling email authentication (SPF and DKIM) for all existing accounts – cPanel/WHM<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 class="post-title entry-title" style="background-color: white; border: 0px; font-family: Raleway, Arial, sans-serif; font-stretch: inherit; font-variant-numeric: inherit; letter-spacing: -1px; line-height: 1.3em; margin: 0px 0px 10px; padding: 0px; text-align: center; vertical-align: baseline; word-wrap: break-word;">
<span style="color: #0b5394; font-size: large;"><u>Enabling email authentication (SPF and DKIM)</u></span></h1>
<div style="text-align: left;">
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">cPanel is a <a href="http://www.hackthesec.co.in/search/label/Linux%20Tutorial">Linux-based</a> web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides capabilities for administrators, resellers, and end-user website owners to control the various aspects of website and server administration through a standard web browser.</span></span></div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">In addition to the GUI, cPanel also has command line and API-based access that allows third party software vendors, web hosting organizations, and developers to automate standard system administration processes.</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAkJl6hJop48ubGUcohyjiYe7l2NlI19NrUPyIFcoYjEgQnYB2tzK_DfQWZN353P70nxXNTldw9E01BCXn92E0K9Zap-kxI-Sdghj0DDkLVz_5H7gNr55rPnszn138M4gEskTn7ScUsrxe/s1600/cpanel.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAkJl6hJop48ubGUcohyjiYe7l2NlI19NrUPyIFcoYjEgQnYB2tzK_DfQWZN353P70nxXNTldw9E01BCXn92E0K9Zap-kxI-Sdghj0DDkLVz_5H7gNr55rPnszn138M4gEskTn7ScUsrxe/s1600/cpanel.jpg" /></a></div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">cPanel is designed to function either as a dedicated server or virtual private server. The latest cPanel version supports installation on CentOS, Red Hat Enterprise Linux (RHEL), and CloudLinux OS. cPanel 11.30 is the last major version to support FreeBSD.</span></span></div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Application-based support includes Apache, PHP, MySQL, PostgreSQL, Perl, and BIND (DNS). Email based support includes POP3, IMAP, and SMTP services. cPanel is accessed via https on port 2083</span></span></div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"></span></span><br />
<div>
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u><span style="color: #0b5394;">cPanel script to enable SPF via commandline:</span></u></b></span></span></div>
<span style="font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">
<div style="clear: both; margin: 10px 0;">
<center>
<script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- linuxtutorial8 -->
<ins class="adsbygoogle" data-ad-client="ca-pub-5744890361111211" data-ad-slot="1658755283" style="display: inline-block; height: 15px; width: 728px;"></ins></center>
</div>
<div style="color: #333333;">
Syntax</div>
</span></span></div>
<div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"># /usr/local/cpanel/bin/spf_installer $username</span></span></pre>
</div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Where, $username is the cPanel user name</span></span></div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;"><br /></span></div>
<div>
<span style="font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;"><b><u><span style="color: #0b5394;">cPanel script to enable DKIM via commandline:</span></u></b></span><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"></span><br />
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;">
<div>
<span style="font-size: 15px;">Syntax</span></div>
</span></div>
<div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"># /usr/local/cpanel/bin/dkim_keys_install $username</span></span></pre>
</div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Replace $username with the actual cPanel username.</span></span></div>
<div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
<div>
<div style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">
The above commands will help you to enable email authentications for single cPanel users. If you have hundreds of accounts and you want to enable SPF and DKIM for all accounts, please follow the simple for loop.</div>
<div style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">
<br /></div>
<div style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">
Here we can get the cPanel usernames from "/var/cpanel/users". Then give that to installations scripts. Please see the sample script below:</div>
<div>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">for username in `ls -A /var/cpanel/users` ; do
/usr/local/cpanel/bin/dkim_keys_install $username &&
/usr/local/cpanel/bin/spf_installer $username ; done</span></span></pre>
</div>
<div style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">
Thanks for support</div>
</div>
<div style="color: #333333; font-family: verdana, geneva, sans-serif; font-size: 15px;">
<a href="http://www.hackthesec.co.in/">www.hackthesec.co.in</a></div>
</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6353083638681129765.post-62089263639949921962016-12-01T18:18:00.000+05:302019-01-02T15:41:34.886+05:30How to Install Go 1.7 on Ubuntu 16.04 / 14.04 / CentOS 7 / Fedora 24<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #0b5394; font-family: "verdana" , "geneva" , sans-serif; font-size: large;"><b><u>Install Go 1.7 on Ubuntu 16.04 / 14.04 / CentOS 7 / Fedora 24</u></b></span><br />
<span style="color: #0b5394; font-family: "verdana" , "geneva" , sans-serif; font-size: large;"><b><u><br /></u></b></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Go (often referred to as golang) is a free and open source programming language created at Google in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson. It is a compiled, statically typed language in the tradition of Algol and C, with garbage collection, limited structural typing, memory safety features and CSP-style concurrent programming features added.</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBBvny9pyLCA-DGCTjvXwcsfTDyRGFmfSw3muCt-XMd3aEDl_ZXEUtltnvg2NFm9Y73eB_VOu_bmnO9GbFQp1pDoWLHLQ9gK6WUEI0B-_fkqUzvIseI95633MHVY_ictfMUMH1434iFeEV/s1600/appenginegophercolor.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBBvny9pyLCA-DGCTjvXwcsfTDyRGFmfSw3muCt-XMd3aEDl_ZXEUtltnvg2NFm9Y73eB_VOu_bmnO9GbFQp1pDoWLHLQ9gK6WUEI0B-_fkqUzvIseI95633MHVY_ictfMUMH1434iFeEV/s1600/appenginegophercolor.jpg" /></a></div>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">The language was announced in November 2009; it is used in some of Google's production systems,as well as by other firms. Two major implementations exist: Google's Go compiler, "gc", is developed as open source software and targets various platforms including Linux, OS X, Windows, various BSD and Unix versions, and since 2015 also mobile devices, including smartphones.A second compiler, gccgo, is a GCC frontend. The "gc" toolchain is self-hosting since version 1.7</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<span style="color: #0b5394; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u>Download and Install Go Language:<br /></u></b></span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Switch to the root user.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif; font-size: 14px;">$ su -
### Ubuntu 16.04 / 14.04 ###
# apt-get update
# apt-get -y upgrade
### CentOS / RHEL / Fedora ###
# yum -y update</span><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px; white-space: normal;">
</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Download the Go language binary package using the following command. Alternatively, you can visit <a href="https://golang.org/dl/">Go Language download</a> page to download the latest version of Go.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"># wget https://storage.googleapis.com/golang/go1.7.1.linux-amd64.tar.gz</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Extract the archive and move it to /usr/local. You can also place the Go lang binary to your custom location instead of /usr/local.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"># tar -zxvf go1.7.1.linux-amd64.tar.gz -C /usr/local/</span></span></pre>
<span style="color: #0b5394; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u>Setup Go Environment variables:</u></b></span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Setup two important variables for Go, GOROOT (PATH) and GOPATH. Add <b>/usr/local/go/</b>bin to your path variable.run below command (temporary) or place the following command in <b>/etc/profile or $HOME/.profile</b> file for persistent across sessions.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">export PATH=$PATH:/usr/local/go/bin</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">For Go custom location replace /usr/local/go/bin/ with /path/to/bin/ directory.</span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span>
<br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">GOPATH is a Go environment variable for your project workspace. Create a workspace directory called "projectwork" in your home directory.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">mkdir $HOME/projectwork</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Set GOPATH variable run below command (temporary) or place the following command in /etc/profile or $HOME/.profile file for persistent across sessions.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">export GOPATH=$HOME/</span></span><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">projectwork</span></span></pre>
<span style="color: #0b5394; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u>Verify Go Installation:</u></b></span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"># go version
go version go1.7.1 linux/amd64</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"># go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/</span></span><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">projectwork</span></span>"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"</span></span></pre>
<span style="color: #0b5394; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><b><u>Create your first project:</u></b></span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">The workspace called "projectwork" located in $HOME directory. I am a root user, in my case "/root/</span></span><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">projectwork</span></span>" is my workspace. goto your workspace using below command</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"># cd $GOPATH
or
# cd $HOME/work</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"># mkdir -p src/hello</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"># vi src/hello/hello.go</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">and place the following content in the <b>hello.go</b> file.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">package main
import "fmt"
func main() {
fmt.Printf("Welcome To hackthesec\n")
}</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">Compile it with go command.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"># go install hello</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;">go command will put an executable command (hello) inside the bin directory of your workspace. Execute the executable using the following command.</span></span><br />
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;"># $GOPATH/bin/hello</span></span></pre>
<pre style="background: rgb(68, 67, 65); border-radius: 6px; border: 1px solid rgb(227, 227, 227); box-sizing: border-box; clear: none !important; margin-bottom: 10px !important; margin-top: 10px !important; overflow: auto; padding: 10px !important; width: auto !important; word-break: break-all;"><span style="color: white; font-family: monospace , serif;"><span style="font-size: 14px;">Welcome To hackthesec</span></span></pre>
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif; font-size: 15px;">Thanks for reading..</span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><a href="http://www.hackthesec.co.in/">www.hackthesec.co.in</a></span></span><br />
<span style="color: #333333; font-family: "verdana" , "geneva" , sans-serif;"><span style="font-size: 15px;"><br /></span></span></div>
Unknownnoreply@blogger.com0