Web_programming
Kanalga Telegram’da o‘tish
Sharif web programming If you have any questions, please feel free to ask(@yumcoder)
Ko'proq ko'rsatish1 052
Obunachilar
+124 soatlar
Ma'lumot yo'q7 kunlar
-530 kunlar
Postlar arxiv
1 052
Talk about the vulnerability exposed by WeChat payment
#WeChat #payment #vulnerability
https://translate.googleusercontent.com/translate_c?act=url&depth=1&hl=en&ie=UTF8&prev=_t&rurl=translate.google.com&sl=auto&sp=nmt4&tl=en&u=http://www.importnew.com/29134.html&xid=17259,15700021,15700124,15700149,15700186,15700191,15700201,15700214&usg=ALkJrhg4P-bfgnRa99KRgAYmOmdD4_mMqQ …
1 052
let create a C program named hello.c
#include <stdio.h>
int main() {
printf("Hello World\n");
}
Now, copy the hello.c to hello_new.c $ cp hello.c hello_new.cand edit the hello_new.c as shown below:
#include <stdio.h>
int main(int argc, char *argv[]) {
printf("Hello World\n");
return 0;
}
Finally, create the patch file using diff command:$ diff -u hello.c hello_new.c > hello.patch. It create a patch file named “hello.patch”.
--- hello.c 2018-10-03 09:09:06.762269317 +0330
+++ hello_new.c 2018-10-03 09:10:19.663639835 +0330
@@ -1,5 +1,6 @@
-#include <stdio.h>
+#include <stdio.h>
-int main() {
+int main(int argc, char *argv[]) {
printf("Hello World\n");
+return 0;
}
To apply Patch File using Patch Command
$ patch < hello.patch patching file hello.cAnd the hello.c
#include <stdio.h>
int main(int argc, char *argv[]) {
printf("Hello World\n");
return 0;
}1 052
دو لینک آخر نسخه ابزارهای آنها کمی قدیمی است و بیشتر هدف اشنایی با این مفهوم است
1 052
ریاضیات مورد نیاز برای درک پروتکل mtproto همان constructive type theory است در درس formal method توسط دکتر میریان تدریس میشود
1 052
https://gyp.gsrc.io/
کاربرد برای کدهای که محیط توسعه مختلف را میخواهند پشتیبانی کنند (فرض کنید میخواهید پروژه در clion-VS-xcode,... توسعه داده شود.)
نمونه کاربرد پروژه کروم و تلگرام دیسکتاب
1 052
اگر مطالعه کردید و مشکل داشتید میتوانید به من پیغام دهید 😀. لازم به ذکر است برای درک مقاله فوق باید دستورهای linux مانند:
epoll, pipe, eventfd,...
آشنا باشید. ولی حقیقا مقاله بسیار بسیار خوب، دقیق و کاملی است.
1 052
چگونه تلگرام جلوی replay-attack را میگیرد؟
A (time-dependent) 64-bit number used uniquely to identify a message within a session. Client message identifiers are divisible by 4, server message identifiers modulo 4 yield 1 if the message is a response to a client message, and 3 otherwise. Client message identifiers must increase monotonically (within a single session), the same as server message identifiers, and must approximately equal unixtime*2^32. This way, a message identifier points to the approximate moment in time the message was created. A message is rejected over 300 seconds after it is created or 30 seconds before it is created (this is needed to protect from replay attacks) . In this situation, it must be re-sent with a different identifier (or placed in a container with a higher identifier). The identifier of a message container must be strictly greater than those of its nested messages.
Important: to counter replay-attacks the lower 32 bits of msg_id passed by the client must not be empty and must present a fractional part of the time point when the message was created.
Endi mavjud! Telegram Tadqiqoti 2025 — yilning asosiy insaytlari 
