Zenno poster and @ symbols as separator - How to fix it?

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Hello,

I am having a really really annoying problem. When I purchase proxies, the supplier sometime adds @ and : in the proxies password, this causes zenno posted to understand them as separators because they should be organized as below:

login:pass@ip:port

How can I use let's say a password that it like this:

klkgdf@:oiue in zenno poster as my suppliers each time struggle to change the passwords.

Is there a way in Zenno to change the separators and replace them with something else?


Thank,
 

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 404
Благодарностей
313
Баллы
83
I think, the only way to reach te problem is to say to supplier, for he changed the password.
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Yep and this is the problem.....each time I order some proxies it takes them ages to replace the password and I lose time.
I was hoping to find a solution in zenno poster itself but it looks like there are none.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Yep and this is the problem.....each time I order some proxies it takes them ages to replace the password and I lose time.
I was hoping to find a solution in zenno poster itself but it looks like there are none.
You can stract IP, port, username and password from taken proxy within your project (with regex for example)
And keep this info in variables named: ip, port, username, password
and use this C# code after that;

Код:
instance.ClearProxy();       
    instance.SetProxy(project.Variables["ip"].Value, Convert.ToInt32(project.Variables["port"].Value), "http", project.Variables["username"].Value, project.Variables["port"].Value);
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Hi,

Thank you for your help.
So what will be the first step? I create a list, take line form this list, then how do I filter this list using the code above? Which logic block do I need to use please?

Thanks
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Your list with proxies?
Then you take 1 line (with one proxy) with list processing action.
After that you will have full proxy line in variable.
Correct?
Which format do they use?
user:pass:ip:port?
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Thanks, Currently they use this:
ip:port:username:password
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Example
 

Вложения

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Thanks Rostonix
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
I will have to play around as I am not sure I understood how to link this code to my project.

What I am trying to do is:
Clear Cookies and cache
Take a proxy
go to url www.
Stay there for 60 seconds or more then stop.

That's all
 

Tobbe

Client
Регистрация
01.08.2013
Сообщения
428
Благодарностей
148
Баллы
43
 

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 404
Благодарностей
313
Баллы
83
Add a list, then from list get the first proxy, and put it in the variable, then use the code that sended to you Rostonix, it`s all you need to do.
In the beging of the code you can write.

Код:
instance.ClearCache();
instance.ClearCookie();
var proxy = project.Variables["proxy"].Value;
var ip = Macros.TextProcessing.Split(proxy,":","0").First();
var port = Macros.TextProcessing.Split(proxy,":","1").First();
var username = Macros.TextProcessing.Split(proxy,":","2").First();
var password = Macros.TextProcessing.Split(proxy,":","3").First();
instance.ClearProxy();     
instance.SetProxy(ip, Convert.ToInt32(port), "http", username, password);

So, he can only use one proxy and each time he must to change it.
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Thanks for your help but I have just realised that in fact you haver a regex parser inside the Zenno proxy itself, if you click on :
Settings>>ProxyChecker Settings>>

All you have to do is remove the @ symbol in the regex and that's it, no more problems :-)
 
  • Спасибо
Реакции: qzen4i

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
I replaced the line with this:
(?<=\s|;|,|>)[\w]*:[\w]*::(\d{1,3}\.){3}\d{1,3}:\d{2,5}

"::"
 

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 404
Благодарностей
313
Баллы
83
Example, with list.
 

Вложения

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 404
Благодарностей
313
Баллы
83

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Yes just tried, and by removing the @ symbol in the regex in the proxy checker and adding instead :: it works, just tried it.
So in fact the guys at Zenno already thought about that one :-)) Just needed to get to it.
Nice feature to be honest.
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Well actually I had to come back to square one, the stuff I did above worked for passwords that did not have a "@" symbol.
I then integrated your code above, it is picking up the proxies and everytime you have a "@" symbol in the password, the proxy fails to work in Zenno.

I have noticed that even with your code above, in the proxy check(at the bottom of the little browsers) the urls are showing as:
http://username:password@ip:port

Which sometime ends up as:
http://username:984UJ#@[email protected]:67777

you may have 2 @ symbols in the url which is causing the problem.

And it look like their support os struggling changing the passwords each time when a lot of proxies are orderered.....any other solutions please?

There is one thing I do not understand, even by replacing the regex from @ to : in the proxy checker, the url at the bottom of the small browser still output @ as a separator...I am not understanding this.


Thanks
 

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 404
Благодарностей
313
Баллы
83
2 @ Symbols are the password? or second is for step to the IP? if @ is password, you need to add : symbol after it http://username:984UJ#@IO@:xxx.xx.xxx.xx:67777 and you must change your code by this,
Код:
var proxy = project.Variables["proxy"].Value;
var ip = Macros.TextProcessing.Split(proxy,":","2").First();
var port = Macros.TextProcessing.Split(proxy,":","3").First();
var username = Macros.TextProcessing.Split(proxy,":","0").First();
var password = Macros.TextProcessing.Split(proxy,":","1").First();
instance.ClearProxy(); 
instance.SetProxy(ip, Convert.ToInt32(port), "http", username, password);
Because, when Rostonix sended to you, you had said him, that format of your proxy is this format ip:port:username:password but now you had sended an other

format. http://username:password@ip:port

Which sometime ends up as:
http://username:984UJ#@[email protected]:67777


If secnond @ symbol is not password, you need only to change it on : symbol, if it is a password, you need to enter after him : symbol, an examle
username:984UJ#@IO@:xxx.xx.xxx.xx:67777 and without http://
 
Последнее редактирование:

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Actually I did not explain it properly....

No that's right my details are recorded as "ip:port:username:password " from my list of passwords.

What I was trying to explain is that even with the first code and the order from my list as "ip:port:username:password ", I see the http request in the tiny browsers as:
http://username:984UJ#@[email protected]:67777 and still with the @ symbol, this is weird.

I restarted the pc just now, let's see if this makes any difference as I have noticed that sometime some settings are stuck in Zenno and I need to restart the whole machine in order to clear everything.
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Yes just tried again, whatever I do still brings me this in the browsers:
username:984UJ#@IO@:xxx.xx.xxx.xx:6777

I cannot get rid of the "@" But in my proxy list they are organized like
[ip]:[port]:username]:[password]


Now this code here:
Код:
instance.ClearCache();
instance.ClearCookie();
var proxy = project.Variables["proxy"].Value;
var ip = Macros.TextProcessing.Split(proxy,":","0").First();
var port = Macros.TextProcessing.Split(proxy,":","1").First();
var username = Macros.TextProcessing.Split(proxy,":","2").First();
var password = Macros.TextProcessing.Split(proxy,":","3").First();
instance.ClearProxy();
instance.SetProxy(ip, Convert.ToInt32(port), "http", username, password);
Should split the 0,1,2, and third value when ":" are found which is the case as the project is now running this by picking the right values:
http://username:984UJ#@[email protected]:67777

But what I am trying to tell you is not the pickup of the details list that is not working but the way Zenno is taking those values and outputting them into the browser, it re-adds the "@" symbol which is what is causing the bug.

Please try yourself and you will see. Run your project and look at the bottom left of the tiny browsers, you will see the @ symbol put back into the url. And this is my problem. The list picking is all good and working perfectly.

Hope you understand now.
 

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 404
Благодарностей
313
Баллы
83

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 404
Благодарностей
313
Баллы
83
Oh i understood, you mean it like this getting
, need to wait Rostonix, because i can`t answer to you about this.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Ehhhh (
My bad.
I thought it would work .
I guess not.
I've set task to developers to think about how we can integrate usage of proxies with @ in passwords or usernames.
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Yes qzen4i, you are right, I mean that area yes.

Thanks Rostonix:-)
Yes this would help because asking the proxy guys to change their passwords is a bit of a nightmare each time...thanks.
 

Кто просматривает тему: (Всего: 2, Пользователи: 0, Гости: 2)