1
Hacking and Security / Re: How to counter a "virus"?
« on: February 24, 2013, 12:01:45 pm »
counter? please explain
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#!/usr/bin/python
'''
Form Field Jack for Firefox (currently only tested on Ubuntu)
v1.0 Feb 6, 2013
Authored by Live Wire
'''
import glob
import sqlite3 as sql
output = open("field_history_output.txt","w")
ffFormFields = "/home/drew/.mozilla/firefox/*.default/formhistory.sqlite"
def findFile(path):
return glob.glob(path)
def main():
fieldsSQL = findFile(ffFormFields) #returns as array
con = sql.connect(fieldsSQL[0])
cur = con.cursor()
cur.execute("select * from moz_formhistory;")
rawSQLData = cur.fetchall()
strSQLData = str(rawSQLData) #converts to string data
output.write(strSQLData) #writes to file
if __name__=="__main__":
main()
It's still garbage because it just print random chars in a line...
#include <iostream.h>
int main(){
int input;
int y = 0;
char numbers[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890`~!@#$%^&*()-=_+";
cout << "Please enter a number: ";
cin >> input;
system("color 2");
for (int x=0;x<=input; x++){
system("color 5");
cout << numbers[rand() % 78] ;
system("color 28");
cout << " ";
system("color 5");
cout << numbers[rand() % 78] ;
system("color 23");
cout << "*";
system("color 59");
cout << numbers[rand() % 78] ;
system("color 71");
if (y%7 == 1){
cout << "\t";
system("color 18");
y = 4;
}else{
y++;
system("color 61");
}
}
system("color 7");
return 0;
}
Code: [Select]import sys
def distFrmLeZero(foo):
bar = ""
try:
#PHP wud need le triple = for diz nigga
if (type(foo) == float) or (type(foo) == int):
bar += "Yo dawg, yo numberz will equal somethim liek diz %d" % abs(foo)
else:
bar += "Yo dawg, pick a diff number yo.\n"
except:
print "Sompin evil happens yo."
sys.exit()
return bar
You bypass crt0 which may include some stuff you don't want like it may set up memory in a way you don't want or something obscure like that.