Hack Forums
From email pass to email,pass - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Website Hacking (https://hackforums.net/forumdisplay.php?fid=43)
+---- Thread: From email pass to email,pass (/showthread.php?tid=3533856)



From email pass to email,pass - ๖ۣۜAlexander - Jun 7, 2013

So I've did manual SQLi on a website and got a lot of emails + passwords in the format of

Code
email pass
(e.g. [email protected] andthisismypass)

Anybody knows how I can convert this to a excel file with the format of

Code
email,pass
(e.g. [email protected],andthisismypass)

Help is appreciated.
Cheers!


* - Vintage‌‌‌‌‌ - Jun 7, 2013

What is the difference? You could manually do it, If I think of the program i'll let you know.


* - ๖ۣۜAlexander - Jun 7, 2013

It makes a different because I'm using a tool that checks if a email and a password matches. Would it work if I use notepad++ and replace ' ' with ','?

EDIT: lol, that actually worked. Sometimes the answer is right infront of you. Sorry, SOLVED!


* - Vintage‌‌‌‌‌ - Jun 7, 2013

I guess so, you could try it, Unless emails contain it, It would work


* - ๖ۣۜAlexander - Jun 7, 2013

Worked. This is solved. Thanks!

goddamnsimmacapyoass


* - hansp - Jun 7, 2013

Or, for the future ;)
Python Code:
import string
a = raw_input("Enter name of the file (has to be in the same or in sub-directory)")
b = open(a,'r')
data = ""
while True:
dat = b.readline()
if not dat:
break
data = data + string.replace(dat,' ',',')
b.close()
c = open("output.txt",'w')
c.write(data)
c.close()

^Haven't written any python code for a while, there could be mistakes in it
Edit: Fuck this formatting :(


* - bckslsh. - Jun 7, 2013

(Jun 7, 2013 09:35 AM)hansp Wrote:  Or, for the future ;)
Python Code:
import string
a = raw_input("Enter name of the file (has to be in the same or in sub-directory)")
b = open(a,'r')
data = ""
while True:
dat = b.readline()
if not dat:
break
data = data + string.replace(dat,' ',',')
b.close()
c = open("output.txt",'w')
c.write(data)
c.close()

^Haven't written any python code for a while, there could be mistakes in it
Edit: Fuck this formatting :(

lol'd

Open it up in your favorite text editor, hit ctrl + h, replace any spaces with commas.


* - hansp - Jun 7, 2013

(Jun 7, 2013 10:04 AM)bckslsh. Wrote:  lol'd

Open it up in your favorite text editor, hit ctrl + h, replace any spaces with commas.

Why easy if you can do it complicated ? :D


* - bckslsh. - Jun 7, 2013

(Jun 7, 2013 10:10 AM)hansp Wrote:  Why easy if you can do it complicated ? :D

That isn't complicated it's retarded.