Skip to content

Commit 68c609a

Browse files
authored
Add course 6 (#39)
* solve 404 error for course4 * add course 6
1 parent 1cda3c2 commit 68c609a

File tree

2 files changed

+103
-1
lines changed

2 files changed

+103
-1
lines changed

public/courses/course6.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<h1 id="heading-topic-to-be-covered">Topic to be covered:</h1>
2+
<ol>
3+
<li><p>Installing package’s in Termux</p>
4+
</li>
5+
<li><p>Exporting path for python,go, rust tool,etc</p>
6+
</li>
7+
<li><p>Using Bug hunting tool’s in termux.</p>
8+
</li>
9+
</ol>
10+
<h1 id="heading-about-termux">About Termux:</h1>
11+
<p>Termux is a powerful terminal emulator for Android that supports Linux-like environments, making it a great tool for mobile penetration testing and programming.</p>
12+
<p>Well, It has been app for just show off in Youtube By so called youtuber’s. <mark>They have never felt the true power of termux.</mark> They don’t know how to use what to use , Just running some tool’s with their title “Hack Everything using Termux blabla“.</p>
13+
<p>Here’s the Github Link for repo: <a target="_blank" href="https://github.com/termux">https://github.com/termux</a></p>
14+
<h3 id="heading-lets-get-started">Let’s Get Started:</h3>
15+
<p>Just after installing termux update &amp; upgrade it or simply copy paste below command’s.</p>
16+
<p><code>apt update &amp;&amp; apt upgrade -y</code></p>
17+
<p><code>pkg install python-pip git -y</code></p>
18+
<p><code>pkg i vim</code> </p>
19+
<p><code>clear</code></p>
20+
<p>Before Starting I will suggest you to Learn about basic linux tutorials..</p>
21+
<h1 id="heading-using-zsh-shell">Using Zsh shell:</h1>
22+
<p>Termux supports all kind of shell but we will be using zsh .We will learn to setup <strong>autocompletion</strong>,<strong>autosuggestion and syntax-highlighting</strong> .</p>
23+
<p>Repo for ohmyzsh: <a target="_blank" href="https://github.com/ohmyzsh/ohmyzsh">Ohmyzsh</a>. </p>
24+
<p>You Just need to Clone this Repo either by using <em>git or by using curl,wget</em>.</p>
25+
<h1 id="heading-installation">Installation:</h1>
26+
<p>paste the below code in termux :</p>
27+
<p><code>wget</code> <a target="_blank" href="https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh"><code>https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh</code></a></p>
28+
<p><code>sh</code> <a target="_blank" href="http://install.sh"><code>install.sh</code></a></p>
29+
<p>You will have to get new session like this .After this, Close the termux app and reopen it, You will see zsh shell (~) ,if not just type "zsh" without ("") you will see zsh shell being active</p>
30+
<p><img loading="lazy" src="https://tryhackme-images.s3.amazonaws.com/user-uploads/63bfcbba3541b8005f5b8c61/room-content/3fa1f9b12ab1862423aa4e61877998de.jpg" alt /></p>
31+
<p>For Auto-sugg &amp; auto completion’s.</p>
32+
<p>Paste this directly in Terminal.</p>
33+
<p><code>git clone</code> <a target="_blank" href="https://github.com/zsh-users/zsh-autosuggestions"><code>https://github.com/zsh-users/zsh-autosuggestions</code></a> <code>${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions</code></p>
34+
<p> <code>git clone</code> <a target="_blank" href="https://github.com/zsh-users/zsh-syntax-highlighting.git"><code>https://github.com/zsh-users/zsh-syntax-highlighting.git</code></a> <code>${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting</code></p>
35+
<p><strong>Now for .zshrc</strong></p>
36+
<p>We have to add those in path . For this ,if you want to use vim only type :alias nano="vim". Now as we will use nano Type. Just Copy and paste inside plugins():</p>
37+
<p><code>nano ~/.zshrc</code></p>
38+
<p><code>zsh-autosuggestions zsh-syntax-highlighting zsh-autocomplete</code></p>
39+
<p>it should look like this: <mark>plugins(git zsh-autosuggestions zsh-syntax-highlighting zsh-autocomplete)</mark></p>
40+
<p><img loading="lazy" src="https://tryhackme-images.s3.amazonaws.com/user-uploads/63bfcbba3541b8005f5b8c61/room-content/7d28f5a6002bda2213dcd228c5b17830.jpg" alt /></p>
41+
<p>tap CTRL+x ,then y, then hit enter from keyboard and Restart the terminal </p>
42+
<p>Now you should see the changes like this:)</p>
43+
<p><img loading="lazy" src="https://tryhackme-images.s3.amazonaws.com/user-uploads/63bfcbba3541b8005f5b8c61/room-content/a90cb32533b529278efcb12da828d6e8.jpg" alt /></p>
44+
<p>See it suggest and do Autocomplete on choosing arrow keys or TAB keys from Keyboard.</p>
45+
<p>If you are in office or workplace and have free time , You can do bug bounty stuff,solve programming problems from your android mobile too.</p>
46+
<h1 id="heading-exporting-path"><strong>Exporting path</strong></h1>
47+
<p><mark>Exporting go/python path for using golang/python based tool from anywhere in terminal.</mark></p>
48+
<h1 id="heading-headache-for-beginners">HeadAche for beginner’s</h1>
49+
<p>Before you need to change the directory to run go tool like this:</p>
50+
<p><img loading="lazy" src="https://tryhackme-images.s3.amazonaws.com/user-uploads/63bfcbba3541b8005f5b8c61/room-content/e89467a3a99bf2997a60a3bcb303aeaa.jpg" alt /></p>
51+
<p>But we will export go path and use this types of tool from anywhere in terminal.We will be using <a target="_blank" href="https://github.com/owasp-amass/amass">amass</a> .</p>
52+
<p> Same goes for python based tool .We will learn to setup for them too in termux.We will use <a target="_blank" href="https://github.com/sqlmapproject/sqlmap">sqlmap</a> .</p>
53+
<h1 id="heading-for-go-based-tool">For Go based tool</h1>
54+
<p>Move to zshrc and copy and paste there.</p>
55+
<p><code>nano ~/.zshrc</code></p>
56+
<p>Paste below code in zshrc :</p>
57+
<p><code>export GOROOT=/data/data/com.termux/files/usr/lib/go</code></p>
58+
<p><code>export GOPATH=$HOME/go</code></p>
59+
<p><code>export PATH=$PATH:$GOROOT/bin:$GOPATH/bin</code></p>
60+
<p><img loading="lazy" src="https://tryhackme-images.s3.amazonaws.com/user-uploads/63bfcbba3541b8005f5b8c61/room-content/f8c795d4de593442a66097e005c512bc.jpg" alt /></p>
61+
<p>2.Exit you know the method:)</p>
62+
<p><em><mark>Now restart the termux and see the magic ,just type amass and hit enter ,it runs from direct terminal no need to change directory.</mark></em></p>
63+
<p><img loading="lazy" src="https://tryhackme-images.s3.amazonaws.com/user-uploads/63bfcbba3541b8005f5b8c61/room-content/220c7f926b0b83dcb448aaa396e55988.jpg" alt /></p>
64+
<h1 id="heading-for-python-tool">For Python tool</h1>
65+
<p><mark>You have to change dir for python based tool too</mark>. It’s pain in ass and time consuming too.</p>
66+
<p>Before: For running sqlmap</p>
67+
<p><strong>cd sqlmap</strong> </p>
68+
<p><strong>python</strong> <a target="_blank" href="http://sqlmap.py"><strong><a href="http://sqlmap.py" class="autolinkedURL autolinkedURL-url" target="_blank">sqlmap.py</a></strong></a> <strong>-u <a href="http://target.com" class="autolinkedURL autolinkedURL-url" target="_blank">target.com</a></strong></p>
69+
<p>We will solve this too. locate where sqlmap or other python tool is located .</p>
70+
<p>Again move to ~/.zshrc</p>
71+
<p>for sqlmap</p>
72+
<p>1.paste this at the end of line</p>
73+
<p><code>sqlmap() {</code></p>
74+
<p><code>python /data/data/com.termux/files/home/sqlmap/</code><a target="_blank" href="http://sqlmap.py"><code>sqlmap.py</code></a> <code>"$@"</code></p>
75+
<p><code>}</code></p>
76+
<p><mark>sqlmap runs with python, python3 so i have kept python at beginning if it's python2 tool keep python2 at first</mark></p>
77+
<p>let's take one more example of paramspider.</p>
78+
<p><code>paramspider() {</code></p>
79+
<p><code>python /data/data/com.termux/files/home/ParamSpider/</code><a target="_blank" href="http://paramspider.py"><code>paramspider.py</code></a> <code>"$@"</code></p>
80+
<p><code>}</code></p>
81+
<p><a target="_blank" href="http://2.Save">Save</a> and exit and see the changes, No need to struggle more for changing directory.</p>
82+
<p><strong>now you can run python tools directly as</strong></p>
83+
<p><strong>sqlmap -u</strong> </p>
84+
<p><strong>paramspider --h</strong></p>
85+
<p><strong>from anywhere anytime…………….</strong></p>
86+
<p><img loading="lazy" src="https://tryhackme-images.s3.amazonaws.com/user-uploads/63bfcbba3541b8005f5b8c61/room-content/a8b6e164e7c5bcc56bf6f704c611f3f9.jpg" alt /></p>
87+
<h1 id="heading-more-apps">More app’s:</h1>
88+
<p>1.Hackbar ,DH hackbar ,AndroHackbar,PentestSuite,Nmap scanner,OpenVpn</p>
89+
<p>2.Coding C C++,Spck editor,Java,Kiwi Browser</p>
90+
<p>We can host dvwa,our own sql servers,etc JuSt search it in Youtube .Do research.</p>
91+
<h1 id="heading-final-thought">Final Thought:</h1>
92+
<p>With Termux, you can learn bug hunting, programming,R.E. and more—all from your Android device. Use your free time wisely, whether you’re at work or free.</p>
93+
<p>Remember, <strong>don’t limit yourself</strong>—you are the only one stopping yourself from achieving your goals. Start with what you have and go from there.</p>
94+
<p>Best of luck on your journey!</p>

src/data/courseData.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,19 @@ const courses = {
3333
},
3434
'course 5: bash scripting basics': {
3535
title: 'Course 5: Bash Scripting Basics',
36-
author: 'Dev Gautam Kumar',
36+
author: 'Sangharsh',
3737
image: 'https://dummyimage.com/600x400/8BC34A/fff&text=Bash+Scripting+Basics', // Green
3838
description: 'Learn the basics of Bash scripting and automate tasks.',
3939
embed_link: 'https://www.youtube.com/embed/SPwyp2NG-bE',
4040
contentFile: 'course5.md',
41+
},
42+
'course 6: termux for web testing': {
43+
title: 'Course 6: Termux For Web Testing',
44+
author: 'Dev Gautam Kumar',
45+
image: 'https://dummyimage.com/600x400/8BC34A/fff&text=Termux+For+Web+Testing', // Green
46+
description: 'Hello there, I am dropping a Termux Guide mainly focused for Web Bug Hunting . It will help you to save time , esp if you are doing a full time Job like me. This might aid in your journey especially to those who are starting this bug hunting journey on Andorid.',
47+
embed_link: 'https://dummyimage.com/600x400/8BC34A/fff&text=Termux+For+Web+Testing',
48+
contentFile: 'course6.md',
4149
}
4250
};
4351

0 commit comments

Comments
 (0)