Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
62% Quality Score
Upvotes Received
5
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
2
~22.1K People Reached
Favorite Tags
Member Avatar for debasishgang7

Hi All, Using pydbg I'm opening certain files(ex. c:\\myfile.txt) within a win32 application(Ex. c:\\notepad.exe) in this way. dbg = pydbg() dbg.load("c:\\notepad.exe", "c:\\myfile1.txt") So my question is, if the target application(Ex. c:\\notepad.exe) is already running then,then is it possible to open a another file(For example c:\myfile2.txt ) within the same application …

Member Avatar for debasishgang7
0
254
Member Avatar for debasishgang7

Hi, I have a problem.I have a third party HTML/Javascript code in which they have text area.They post the content of the text area when user press enter. there is no button to submit the form. So I wanna know how can I submit that form using javascript. Thanks.

Member Avatar for imBaCodes
0
178
Member Avatar for debasishgang7

Hi, I am trying to write a python func. which can replace nth occurance of any substring present in any string. For example: main_string = "badZZZZZZZZZZZZZZZZZZbadZZZZZZZZZZZZZZZZZZZZzbadZZZZZZZZZZZZZZZZZ" If I wanna replace the 2nd occurance of string "bad" with 'good' i will pass customreplace(main_string,'bad','good',2) So the Function should return badZZZZZZZZZZZZZZZZZZgoodZZZZZZZZZZZZZZZZZZZZzbadZZZZZZZZZZZZZZZZZ I have …

Member Avatar for bumsfeld
0
6K
Member Avatar for debasishgang7

Hi Guys, I am trying to modify an xml string on the fly. I will enter a sample XML string and the code should generate modified xml.I have exploied it later. xml = xml = '''<FixedPage xmlns="http://schemas.microsoft.com/xps/2005/06" xmlns:x="http://schemas.microsoft.com/xps/2005/06/resourcedictionary-key" xml:lang="en-us" Width="793.92" Height="1122.24"><FixedPage.Resources><ResourceDictionary><LinearGradientBrush x:Key="b0" StartPoint="0,0" EndPoint="0,1122.24" ColorInterpolationMode="SRgbLinearInterpolation" MappingMode="Absolute" SpreadMethod="Pad"><LinearGradientBrush.GradientStops><GradientStop Color="#FFFFFFFF" Offset="0" /><GradientStop …

Member Avatar for TrustyTony
0
305
Member Avatar for debasishgang7

Hi All, I wanna generate all possible combination of certain list using python. For Example I have a list like list = ['A','B','C'] I wanna generate all possible combination of these list elements like using "itertools": AAA AAB AAC ABA ABB ABC ACA ACB ACC BAA BAB BAC BBA BBB …

Member Avatar for TrustyTony
0
1K
Member Avatar for debasishgang7

Hi all, I wanna extract a certain link from a web page using python regular expression. The scenario is like this.. The code: blah... ... .... <div class="test" src="[B][url]http://www.test.com/file.ext[/url][/B]" style="top:0px;width:100%;" .... blah blah blah I wanna extract the url "http://www.test.com/file.ext" from the page using python regular expression. Thanks in advance!

Member Avatar for snippsat
0
278
Member Avatar for debasishgang7

Hi all here is my problem, I have a text area in html page containing a long html code. like [CODE]some code ..... ....... <input type="text" name="mobile" value="1234567890"/> some code ..... .......some code ..... .......[/CODE] From that code present in the <textarea> i need to extract following line <input type="text" …

Member Avatar for pritaeas
0
160
Member Avatar for debasishgang7

Hi All, I want to create a pattern like this using python.. [CODE]Aa0Aa1Aa2Aa3Aa4Aa5......Ab0Ab1Ab2.........and so on.[/CODE] Thanks...

Member Avatar for debasishgang7
0
259
Member Avatar for debasishgang7

Hi all, I am trying to extract some text from a HTML page using regex. [CODE]<html> ...some code.... <B><FONT color="green">TEXT to BE EXTRACTED 1</FONT></B><br> <P> <B><FONT color="green">TEXT to BE EXTRACTED 2</FONT></B><br> <P> <B><FONT color="red">TEXT to BE EXTRACTED 3</FONT></B> ....some code.... </html> [/CODE] I want to make a script which will …

Member Avatar for debasishgang7
0
124
Member Avatar for debasishgang7

hi all, I am trying to pass an array to a function. an array is like char game[4] = {'S', 'R', 'D'}; i wanna pass the entire array to a function which accept. like this void name(char *game) How to do this..?

Member Avatar for abhimanipal
0
179
Member Avatar for debasishgang7

hi all, i am trying to make a prog. which will read the first line of a text file and put the first line into an array and pass the entire array to a function. Here is my code: [CODE]#include <stdio.h> #include <conio.h> #include <string.h> #include <string.h> void exe(char cmd) …

Member Avatar for abhimanipal
0
187
Member Avatar for debasishgang7

[CODE]#include <stdio.h> #include <conio.h> main() { int i; char full; char array[10]="ABCD"; for (i=0;i<=6;i++) full = array[i]; printf("%c",full); } [/CODE] I wanna convert an array to a full character .So that i can print the character like this line printf("%c",full); This program unable to print the character?? Whats wrong in …

Member Avatar for abhimanipal
0
159
Member Avatar for debasishgang7

Hi guys here is my problem.I am trying to send ICMP packets to a HOST using WINSOK.So here is my code: [CODE]#define WIN32_LEAN_AND_MEAN #include <winsock2.h> #include <ws2tcpip.h> #include <stdio.h> #include <stdlib.h> #define IP_RECORD_ROUTE 0x7 // // IP header structure // typedef struct _iphdr { unsigned int h_len:4; // Length of …

0
156
Member Avatar for debasishgang7

As i dont know php i am unable to understand how this code is working? Can any body please help me to convert the following php code into python code. [CODE] function icmpChecksum($data) { if (strlen($data)%2) $data .= "\x00"; $bit = unpack('n*', $data); $sum = array_sum($bit); while ($sum >> 16) …

Member Avatar for debasishgang7
0
93
Member Avatar for debasishgang7

Hi all, I am trying to calculate checksum of some data using python. I am putting a sample ICMP header here and the correct checksum of that packet(Got this by sniffing network with wireshark) [B]DATA is "08 00 69 eb 8e 13 00 01" And the correct checksum is "0xa9eb". …

Member Avatar for debasishgang7
0
396
Member Avatar for debasishgang7

Hi all, I am trying convert IP addresses form Decimal format [Like 192.168.12.13] to HEX format [c0 a8 9d 80]. For Example the IP "192.168.157.128" is equivalent to "c0 a8 9d 80" in HEX. How to do that.??

Member Avatar for debasishgang7
0
2K
Member Avatar for debasishgang7

Hi all, I am trying to send Binary data using In python raw socketusing socket.send(). For that i will do following. [CODE]s = '\x01\x00\x12\x59' # some binary data sock.send(s) # assuming "sock" is a valid, open socket object[/CODE] i have created a DATAGRAM in HEX in by sniffing a network …

Member Avatar for debasishgang7
0
1K
Member Avatar for debasishgang7

Hii, I am trying to get a content of a php page(Dynamic) with the help of Ajax by sending Get request to the server page.Like the script should fetch the content of server page (Can be changeable with time )into a certain div tag that i will define. I dont …

Member Avatar for Palle L
0
160
Member Avatar for debasishgang7

I am trying to open multiple ports in a computer with PYTHON Sockets. Here is my code.. [CODE]import socket import thread from threading import * BUFSIZ = 1024 clientsock = socket.socket() def handler(clientsock,addr): while 1: data = clientsock.recv(BUFSIZ) if not data: break def function(): for n in range(1,5): var = …

Member Avatar for Tech B
0
1K
Member Avatar for debasishgang7

Hi all, Here is mu scenario.I am trying to open multiple port on a compute. I am trying to make the code multi threaded.So here is my code: [CODE]import socket import thread from threading import * s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) def handler(clientsock,addr): while 1: data = clientsock.recv(BUFSIZ) if not data: …

Member Avatar for debasishgang7
0
880
Member Avatar for debasishgang7

So guys here is my situation. There is text file.Which contains some strings.They are all comma separated. What i wanna do is just read the text file and print individually those strings which are comma separated. Suppose the text file contains: dog,cat,bird,good,bad,blah,blah,blah etc.... The python script should print dog cat …

Member Avatar for vegaseat
0
140
Member Avatar for debasishgang7

I am designing a commenting script.I am fetching comments from My sql database with the help of php.And after fetching all comments i am trying to append the comment form (Enter Name:,Enter Comment blah blah...)at the last of the page. For Example: The main page here... ++++++++++++++++++++++++++++++ Name: XXX XXX …

Member Avatar for floatingDivs
0
124
Member Avatar for debasishgang7

I am Trying to design a footer which will Always be in the center bottom of a page.The dynamic page i am working with is Extending as visitors are posting new comments.And after a certain time the footer is getting overlapped by comments posted.How can i design a footer which …

Member Avatar for teedoff
0
115
Member Avatar for debasishgang7

So,Here is the scenario. [Linux PC -1]-----Virtual LAN----[Windows 7-PC2]---Ethernet----[Some PC PC-3] Virtual--Vm ware LAN. I wanna access all ports of the PC 3 from the Extreme left Linux PC.(Ex.if a web server is running on PC-3 then i should be able to access the web server from the PC-1).How to …

0
57
Member Avatar for debasishgang7

Hi,i want to access the filename of a any file using python.Ex. Suppose a folder contain some files Picture1.jpg,picture2.jpg,mypic.jpg..etx i want to make a program which will print all the file name Picture1.jpg picture2.jpg mypic.jpg of the certain folder.And the folder can have random file name but with .JPG extension. …

Member Avatar for TrustyTony
0
104
Member Avatar for debasishgang7

I am working with a chat application.I am putting all chat history into a div tag.Is it possible to add a side scroll bar,by which with time the chat window will not grow bigger but one can scroll the window to view the history..!!!

Member Avatar for macneato
0
74
Member Avatar for debasishgang7

I am designing a php,Ajax chat application with Mysql back-end.Its working fine.I wanna add an extra feature in this apps.I wanna show the users who is present in the chat room.When some one left the chat room it should write XXXX has left the chat room and his/her name should …

Member Avatar for debasishgang7
0
124
Member Avatar for debasishgang7

I am trying to call a function repeatedly after a certain amount of time delay with the help of java script. [CODE]<html> <head> <script type="text/javascript" src="prototype.js"></script> <script> function sendRequest() { Something to do } </script> </head> <body> <script type="text/javascript"> setTimeout ( "sendRequest()", 2000 ); </script> </body> </html>[/CODE] If i use …

Member Avatar for debasishgang7
0
128
Member Avatar for debasishgang7

I am using a XXS filter function to filter unwanted code.Here is my function xxs.php [CODE]<?php function clean($data) { // Fix &entity\n; $data = str_replace(array('&amp;','&lt;','&gt;'), array('&amp;amp;','&amp;lt;','&amp;gt;'), $data); $data = preg_replace('/(&#*\w+)[\x00-\x20]+;/u', '$1;', $data); $data = preg_replace('/(&#x*[0-9A-F]+);*/iu', '$1;', $data); $data = html_entity_decode($data, ENT_COMPAT, 'UTF-8'); // Remove any attribute starting with "on" or …

Member Avatar for debasishgang7
0
1K
Member Avatar for debasishgang7

I am trying to make a php Database Driven commenting script.I have to fetch comment and name from the Database according to page id.Suppose i have to fetch comments against the id 45.Then the "fetchcomment.php?id=45".It should fetch all the comments One by one Under the Page ???How to do this.The …

Member Avatar for debasishgang7
0
144