<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bakul Gupta on Medium]]></title>
        <description><![CDATA[Stories by Bakul Gupta on Medium]]></description>
        <link>https://medium.com/@bullhacks3?source=rss-16308c78a86------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*z8qUIV1eDZY0iA_mXc88TQ.png</url>
            <title>Stories by Bakul Gupta on Medium</title>
            <link>https://medium.com/@bullhacks3?source=rss-16308c78a86------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 09:52:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bullhacks3/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Hands On A2A (Agent To Agent Protocol) — Part I]]></title>
            <link>https://bullhacks3.medium.com/hands-on-a2a-agent-to-agent-protocol-part-i-4b38deb38c1b?source=rss-16308c78a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b38deb38c1b</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[agentic-security]]></category>
            <dc:creator><![CDATA[Bakul Gupta]]></dc:creator>
            <pubDate>Tue, 25 Nov 2025 03:00:45 GMT</pubDate>
            <atom:updated>2025-11-25T03:00:45.492Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hands On A2A (Agent To Agent Protocol) — Part I</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vL38T51ohsdmxLTgOq76Nw.png" /></figure><blockquote>&gt; Agent: Capability to perform the tasks independently in an automated way</blockquote><h3>A2A</h3><ul><li>As human needs a <strong>common language</strong> to communicate with one another. In same way, A2A (agent-to-agent) protocol is an open standarad which helps agents to<strong> communicate and collaborate</strong> with each other</li><li>Agent-to-agent protocol allows agents developer by different organizations/developers to work together without worrying about underlying agent mechanism and integrations related pain-points</li></ul><h3>Installation</h3><p>Clone the a2a-saamples repository</p><pre>git clone https://github.com/a2aproject/a2a-samples.git -b main --depth 1</pre><p>1: Python Setup</p><pre># Create virtual environment<br>uv venv <br><br># activate the virtual environment<br>source .venv/bin/activate<br><br># Install all dependencies<br>uv pip install -r samples/python/requirements.txt<br><br><br># Verify installation<br>python3 -c &quot;import a2a;print(&#39;Lets learn about a2a in practical way&#39;)&quot;</pre><p>2: Agent Skills &amp; Cards</p><p><strong>Skills: </strong><em>What agent can do (aka helps to knows which type of tasks an agent can perform well)</em></p><pre>skill = AgentSkill(<br>  id=&#39;learn_a2a&#39;,<br>  name=&#39;Print learning a2a&#39;,<br>  description=&#39;placeholder to only print learning a2a&#39;,<br>  tags=[&#39;learn&#39;],<br>  examples=[&#39;learn&#39;,&#39;learning&#39;]<br>)</pre><p><strong>Cards</strong>: How other agents or clients find about it’s capabilities . It’s a JSON document which describes the various capabilities in agent( aka business card)</p><p>Agent cards are made available to public by A2A server</p><pre>sample_agent_card = AgentCard(<br>  name=&#39;Learn A2A Agent Card&#39;,<br>  description=&#39;Sample learning a2a agent&#39;,<br>  url=&#39;http://localhost:3333&#39;,<br>  version=&#39;0.0.1&#39;,<br>  default_input_modes=[&#39;text&#39;],<br>  default_output_modes=[&#39;text&#39;],<br>  capabilities=AgentCapabilities(streaming=True),<br>  skills=[skill] # list of Agent Skills that an agent offers<br>)</pre><p>3. Agent Executor</p><p><em>Responsible to ensure how an A2A agent process an request and generate responses</em></p><p><strong>async def execute(self, context: RequestContext, event_queue: EventQueue):</strong></p><ul><li>Handles incoming requests that require a response</li></ul><p><strong>async def cancel(self, context: RequestContext, event_queue: EventQueue):</strong></p><ul><li>Handle request to cancel an ongoing task</li></ul><p>&gt; <em>event_queue is used by executor to send the events back to client (requestor)</em></p><pre>class LearnA2A:<br>  &quot;&quot;&quot;Learning A2A Protocol&quot;&quot;&quot;<br><br>  async def invoke(self) -&gt; str:<br>    return &quot;Let&#39;s learn A2A protocol&quot;<br><br>class LearnA2AAgentExecutor(AgentExecutor):<br>  &quot;&quot;&quot;AgentExecutor Class Test&quot;&quot;&quot;<br><br>  def __init__(self):<br>    self.agent = LearnA2A()<br><br>  async def execute(<br>      self,<br>      context: RequestContext,<br>      event_queue: EventQueue,<br>    ) -&gt; None:<br>     result = await self.agent.invoke()<br>     await event_queue.enqueue_event(new_agent_text_message(result))</pre><p>This post contains only the basis introduction to some concepts in A2A protocol.</p><p>In next part, we will continue the discussion and put out together a practical running A2A server example.</p><h3>Resources</h3><ul><li><a href="https://a2a-protocol.org/latest/">https://a2a-protocol.org/latest/</a></li><li><a href="https://a2a-protocol.org/latest/tutorials/python/1-introduction/">https://a2a-protocol.org/latest/tutorials/python/1-introduction/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b38deb38c1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brief Introduction To GIT ( DVCS)]]></title>
            <link>https://bullhacks3.medium.com/brief-introduction-to-git-dvcs-60a22a1332cd?source=rss-16308c78a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/60a22a1332cd</guid>
            <category><![CDATA[cheatsheet]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Bakul Gupta]]></dc:creator>
            <pubDate>Thu, 26 Sep 2019 18:35:26 GMT</pubDate>
            <atom:updated>2019-09-26T18:35:26.520Z</atom:updated>
            <content:encoded><![CDATA[<p>GIT</p><ol><li>LCS (Local Control Systems ) A database was maintained, responsible for keeping track of various local changes to a specific directory or a files Example:- RCS</li><li>CVS ( Centralised Version Control System ) Allows developers or multiple people to collaborate on the same project</li></ol><ul><li>Includes various features such as versioning of the software ,log messages generation</li></ul><p>Example:-</p><pre>1. Subversion<br>2. Perforce</pre><p>Disadvantages:</p><p>Single Point Of Failure :</p><p>Corruption of hard-disk leads to havoc :</p><p>No hierarchical model is possible i.e multiple collaboration at a time</p><ol><li>DVCS ( Distributed Version Control System )</li></ol><p>Each contributor has its own copy of the project. In case if the server goes down, and server data is corrupted. Then any of the contributors that upload the code to the repository. No single point of failure Flexibility to push local changes to the remote repository</p><blockquote><em>Example :-</em></blockquote><ul><li>Git</li><li>Mercurial</li><li>Bazaar</li><li>Darcs</li></ul><p>History of GIT</p><p>Year Milestone</p><p>2002 Linux kernel uses proprietary DVCS called BitKeeper</p><p>2005 Relationship between BitKeeper and Linux kernel maintainer broke down</p><p>2005 Lead towards the development of open-source dvcs (git)</p><p>GIT Storing scheme:</p><p>Streams of snapshot</p><p>Other:</p><p>Store changes as list of file-based changes</p><p>Also known as delta version control</p><p>Git has integrity: Checksummed every piece of information with SHA-1 algorithm (40 character string)</p><p>Three states of GIT</p><ol><li>Committed: Means data is successfully stored in the local database</li><li>Modified: Means u have changed the file but not yet committed</li><li>Staged :</li></ol><p>Three-section of Git project:-</p><ol><li>Git Directory: Stores the metadata and object database</li><li>Working Tree :</li><li>Staging Area</li></ol><p>| echo “Hello” &gt; first.txt; echo “World” &gt; second.txt | — → working Tree | git add first.txt | — → staging Tree | git commit -m “Ready to be committed” | — → git Directory</p><p><strong>Installation on ubuntu</strong></p><p>sudo apt-get install -y git-all</p><p><strong>Check the git version</strong></p><p>git --version</p><p><strong>Location of git-config file</strong></p><pre>locate gitconfig<br>find . -name .gitconfig -type f</pre><pre>cat ~/.gitconfig | cat ~/.git/config | cat /etc/gitconfig</pre><p><strong>Initial Git Setup</strong></p><p><strong>Step 1:- Setup your name</strong></p><pre>git config --global user.name &quot;Bakul Gupta&quot;</pre><p><strong>Step 2:- Setup your email-id</strong></p><pre>git config --global user.email &quot;bakulgupta11@gmail.com&quot;</pre><p><strong>Step 3:- Setup the default editor for git</strong></p><pre>git config --global core.editor vim</pre><p><strong>Step 4:- See the git configuration settings</strong></p><pre>git config --list</pre><p><strong>Step 5:- Also show the location of the git config file</strong></p><pre>git config --show-origin --list</pre><p>GIT BASICS</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*faeGdDH4loUEp23UHQK1Jw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*X4WdTvxWpefuWKgrFlnEDw.png" /></figure><h3>Initialize a git repository</h3><pre>cd /home/bakul/Git<br>git init</pre><h3>Add files to the staging area</h3><pre>echo &quot;Hello World&quot; &gt; first.txt<br>git add first.txt</pre><h3>Commit the file</h3><pre>git commit -m &quot;First file added&quot;</pre><h3>Clone an existing repository</h3><pre>git clone &lt;url of the repository&gt;</pre><pre>Example :- git clone https&quot;//github.com/BullHacks3/try.git</pre><h3>Clone a git repo into a particular directory</h3><pre>git clone &lt;url of git repo&gt; &lt;name_of_destination_directory&gt;</pre><h3>Stage of a file</h3><pre>Untracked -&gt; Unmodified -&gt; Modified -&gt; Staged</pre><h3>Check the status of the files</h3><pre>git status [file_name]</pre><h3>Attribute of git status command</h3><pre>git status -s<br>     or<br>git status --short</pre><h3>Ignoring the files</h3><pre>echo &quot; *.cpp &quot; &gt;&gt; .gitignore<br>It means ignore all the files with extensions .cpp to be added in the git repository</pre><h3>Example of git ignore file includes</h3><pre># Ignore all files ending with .secret<br>*.secret<br># Do track bakul.secret ,even u r ignoring the *.secret files<br>!bakul.secret<br>#Ignore all files in the directory hacking<br>hacking/<br>#Ignore all the files in the doc/direcotry an any of its subdirectories<br>doc/**/*.pdf</pre><pre>For more example refer to the following link :- <a href="https://github.com/github/gitignore">https://github.com/github/gitignore</a></pre><h3>To show the differences between the various files in git</h3><pre>git diff<br>git diff --staged<br>git diff --cached</pre><h3>Remove a file or directory from a git repository</h3><pre>git rm first.txt<br>git rm /directory</pre><h3>Rename a file in git</h3><pre>git mv first.txt second.txt<br>       or<br>mv first.txt second.txt<br>git rm first.txt<br>git add second.txt</pre><h3>See the logs of the repository</h3><pre>git log                   : Show the commit log ,in reverse chronological order<br>git log -p (--patch)      : Show the logs along with the differences<br>git log --stat            : Show the stat of the log<br>git log --pretty=oneline  : Provide the one line output for each commit<br>git log --pretty=short<br>git log --pretty=full<br>git log --pretty=fuller<br>git log --pretty=format: &quot;%h %s&quot; --graph<br>git log --since=1.weeks<br>git log --grep<br>git log -S function_name</pre><h3>Undoing the changes</h3><pre>If u make an early commit ,and forgot to add the file ,then u can make use of ammend option<br>git commit --amend</pre><h3>Un-staging a staged file</h3><pre>git reset HEAD [fiile_name]<br>Example:-<br>git add first.txt<br>git reset HEAD first.txt</pre><h3>Un-modifying a modified file</h3><pre>git checkout -- [file_name]</pre><h3>Working with Remotes</h3><h3>To see the remote URLs</h3><pre>git remote<br>git remote -v</pre><h3>To add a remote to a repository</h3><pre>git remote add origin [git_repo url]</pre><h3>To update the repository</h3><pre>git fetch &lt;remote&gt;</pre><h3>Git fetch vs git pull</h3><pre>git pull : git fetch + git merge<br>git fetch : download all the changes to local system but doesn&#39;t merge the changes automatically</pre><h3>Pushing your remotes</h3><pre>git push &lt;remote&gt; &lt;branch&gt;<br>Example: git push origin master</pre><h3>Inspecting a remote</h3><pre>git remote show origin</pre><h3>Renaming and removing remotes</h3><pre>git remote rename origin newremote<br>git remote rm newremote</pre><h3>Tagging</h3><pre>Tagging allows to keep track of versioning of the projects<br>git tag           : used to list the tag available in the git repository<br>git tag -l &quot;v1.0&quot; : used to search the repo with particular version</pre><h3>Creation of tags</h3><pre>Annonated Tags<br>git tag -a v1.0 -m &quot;First version 1.0&quot;</pre><pre>LightWeight Tags<br>git tag v1.1-lw</pre><h3>Pushing the tag</h3><pre>git push origin &lt;tagname&gt;<br>            or<br>git push origin --tags</pre><h3>Git Aliases</h3><pre>git config --global alias.c checkout<br>git config --global alias.br branch<br>git config --global alias.unstage &#39;reset HEAD --&#39;</pre><h3>Git Branching</h3><p>Finds its application when one needs to perform multiple features related tasks on the git repository. Or When multiple developers need to work on the same project Creates a new branch with name testing</p><pre>git branch testing</pre><h3>Switch to a different branch</h3><pre>git checkout testing</pre><h3>Creation as well as switching to a different branch</h3><pre>git checkout -b testing</pre><h3>Git Merging Techniques</h3><ol><li>Fast Forward technique</li><li>Recursive merge technique</li></ol><h3>Delete a remote branch</h3><pre>git push origin --delete [remote_branch_name]</pre><h3>Git Rebasing</h3><p>In git, there are two ways to integrate the changes from one branch to another branch</p><ol><li>rebase</li><li>merge</li></ol><p>Rebase: it used to deploy the changes on branch to another branch Used to make commit looks like in serial order instead of parallel execution</p><pre>git checkout testing<br>git rebase master</pre><pre>Example:<br>git rebase --onto master server client<br>It means consider the client branch,and apply those patches that are diverged from the server branch<br>git rebase master server<br>It will rebase a server branch on top of master branch</pre><h3>Git Insights</h3><p>Various protocols used by the git.Usually, git make use of four protocols</p><ol><li>Local</li><li>HTTP 2.1 Smart HTTP Protocol 2.2 Dumb HTTP Protocol</li><li>Secure Shell</li><li>Git 4.1 Dedicated port(9418)</li></ol><h3>Types Of Workflow in Git</h3><ol><li>Centralized workflow</li><li>Integration-Manager Workflow</li><li>Dictator and Lieutenants Workflow</li></ol><h3>Git Tools</h3><p>Contains information about the HEAD and branch references ```git reflog git log -g</p><pre>To view the logs in more descriptive way</pre><p>git log — pretty=format: ‘%h %s’ — graph</p><pre>Show the changes that have not been merged into the master branch</pre><p>git log testing..master</p><pre>### Stashing the work<br>git stash command is used to temporarily save work on current working directory</pre><p>git stash apply git stash — list git stash drop</p><p><a href="https://github.com/BullHacks3/Learning_Modules/blob/master/Git/README.md">BullHacks3/Learning_Modules</a></p><p>Enjoy Learning @@@</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60a22a1332cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking | Scripts | Download Pdf of website]]></title>
            <link>https://bullhacks3.medium.com/hacking-scripts-download-pdf-of-website-494f36a181e0?source=rss-16308c78a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/494f36a181e0</guid>
            <category><![CDATA[script]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Bakul Gupta]]></dc:creator>
            <pubDate>Fri, 15 Mar 2019 15:22:04 GMT</pubDate>
            <atom:updated>2019-03-15T15:22:04.769Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I was looking for pdf of a book on the internet, simply I used the google dorking in order to make my search fruitful and easier.</p><p>index of: /hacking pdf</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NVvH6jDwLuEyPV7NayITiw.png" /></figure><p>Using this dork, I was able to find out the book that I want to have.</p><p>But when I open the website, then I find other interesting books.I have left with two options</p><ol><li>Either download each file manually, by clicking on the each link</li><li>Automate the process.</li></ol><p>So, I have chosen the second step,I automate the process. There can be various ways to automate the process, but here I am considering the python to do this.</p><p>Python Modules Used</p><p>a. BeautifulSoup</p><p>b.Urllib</p><p>c.Requests</p><p>#! /usr/bin/python3</p><p># GitHub :- Bullhacks3</p><p># Modules Import<br>from bs4 import BeautifulSoup<br>from urllib import request</p><p>def files_downloader(url):<br> site_url=request.urlopen(url)<br> soup=BeautifulSoup(site_url,’html.parser’)<br> for links in soup.findAll(‘a’):<br> if links[‘href’].split(‘.’)[-1] == ‘pdf’:<br> print (‘File Downloading is in process :-’+str(links[‘href’]))<br> full_url=url+links[‘href’]<br> storage=’/media/bakul/@Bakul@/CyberSecurity/Books’+links[‘href’]<br> request.urlretrieve(full_url,storage)<br> print (‘File successfully downloaded’)</p><p>if __name__ == “__main__” :<br> take_input=str(input(“Enter the url of the website :-”))<br> files_downloader(take_input)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*rqyv96cvmblqJvVSNQstwA.png" /></figure><p>Output :-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*E5BtGTaLdW7uJpV3QnME9Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=494f36a181e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[K@li Linux Information Gathering Tool {demitry}]]></title>
            <link>https://bullhacks3.medium.com/k-li-linux-information-gathering-tool-demitry-3e60130fad15?source=rss-16308c78a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e60130fad15</guid>
            <category><![CDATA[film]]></category>
            <dc:creator><![CDATA[Bakul Gupta]]></dc:creator>
            <pubDate>Thu, 05 Apr 2018 11:56:57 GMT</pubDate>
            <atom:updated>2018-04-05T11:56:57.962Z</atom:updated>
            <content:encoded><![CDATA[<p>Tool Name :- dmitry</p><p><strong>Objective :-</strong></p><ul><li>Dmitry also as known as Deepmagic Information Gathering Tool</li><li>It is a UNIX/LINUX command utility ,coded in C programming langugage.</li><li>Responsible for gathering information such as :-</li></ul><p>(i)Subdomains</p><p>(ii)Email-addresses</p><p>(iii)Uptime Information</p><p>(iv)TCP Port Scan</p><p>(v)Whois Lookups</p><p><strong>Features:-</strong></p><p>An open source project</p><ul><li>Perform an Internet Number whois lookup.</li><li>Retrieve possible uptime data, system and server data.</li><li>Perform a SubDomain search on a target host.</li><li>Perform an E-Mail address search on a target host.</li><li>Perform a TCP Portscan on the host target.</li><li>A Modular program allowing user specified modules</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OULnJN47W1sK7R_QSSwwOg.png" /><figcaption>Various Options Supported By Dmitry</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*_fcaOx5Hz9wzlAmjhI1gvw.png" /><figcaption>Practical Demonstration Of dmitry -i</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*edOnIK5_FwIoJjKnVa5dSw.png" /><figcaption>Description Of dmitry -w</figcaption></figure><p>Video Tutorial Of Using Dmitry :-</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DruWqQVGQ2KI&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FruWqQVGQ2KI&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c3af81b0b85e05db259cc25f07be17ce/href">https://medium.com/media/c3af81b0b85e05db259cc25f07be17ce/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e60130fad15" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>