Архив автора: admin

Команды для iMacros — оно Вам нужно?

Чуть ранее, когда еще сам изучал аймакрос и все благодаря одному сайту, на котором хорошо заработал на макросе, выкладывал список команд, которые собрал непосредственно в интернете и перепроверил их работоспособность. Если б не было того сайта, на котором нужна была автоматизация для сбора центов, то я так и не научился бы аймакросу. Даже в первый раз, когда установил аймакрос, по началу скептически отнесся к нему и было желание удалить его. Но так как было большая необходимость автоматизировать действия в броузере, чтобы ночью спать спокойно, а комп зарабатывал, пришло изучать то что есть — а был под рукой только что установленный аймакрос. Нашел в интернете  команды некоторые, научился процессу записи и редактирования макросов и уже в этот же день написал и собрал из строчек по кирпичикам макрос который собирал центы с того сайта.
Откуда я вообще узнал про этот аймакрос? В общем где попался в буксе ссылка на фрибиткоин и он раздавал макрос по сбору сатошей за реферальство. Ну про фрибиткоин я уже знал в это время и регнулся по его ссылке только ради того, чтобы получить макрос и посмотреть код работы с капчей — то есть отправка в сервис и получение ответа. И вот так получил примерный код распознавания капчи. Мне казалось это тогда сложным процессом. А так как на моем сайте ввели через несколько дней капчи, мне этот код и пример как раз то и пригодился.
В общем вот так по чуть чуть сайт усложнял работу и менял капчи, мне приходилось постоянно редактироваться свой макрос и в один момент мне показалось недостаточно аймакроса, так как не хватало управления — условий, циклов. Я знал что в аймакросе должен работать яваскрипт, но как я не пытался туда написать ява код — он не работал. И только позже узнал что для того, чтобы заработал код яваскрипт, нужно давать расширению файлу js. Так откуда мне было знать это? Но когда я узнал об этом, вот тогда и понял всю функциональность и полезность этого аймакроса. Это очень полезная вещь в автоматизации работы в броузере и даже не только — ведь оттуда можно и приложения запускать и пакетные файлы, то есть влиять на работу виндовс. После этого постепенно и понемногу собирал инфу уже о командах и функциях ява скрипта.
Одним из сложных моментов это еще было подключения файла для считывания данных или помещениях и сбора данных файл. В основном нужно было считывание логинов и паролей и емайлов пользователей для сайтов. Так как пользователей было порядка 1000, то аймакрос здорово мне помог, потому что вручную я бы 100 не обработал. Позже я нашел код подключения файла в яваскрипте — это еще более круче и проше сделало код.
Теперь же для написания кодов скриптов и макросов больше половины кода используется ява скрипт и коды аймакроса использую только нажатие на кнопки, заполнение форм, екстаркты инфы со страницы, задержку в секундах, а остальная часть ява скрипт, так как это проще и легче. Сравните подключение файла в аймакросе и в ява скрипте и сами увидите разницу.
Поэтому здесь не будет команд аймакроса, а если они вам все таки нужны, то я уже писал про них и выкладывал — вот по этой ссылке.

Автор: New PC

Видеолапароскопия в хирургии холедохолитиаза

В отделе лапароскопической хирургии и холелитиаза лапароскопические вмешательства на ОЖП выполняют с 1996 года. К настоящему времени выполнено более 6500 ЛХЭ, из них ревизию и санацию желчных протоков применяли у 117 (1,8%) больных в возрасте 18-80 лет. Соотношение мужчин и женщин было 1:5.
Лапароскопическую эксплорацию ОЖП осуществляли через культю пузырного протока (ПП) — у 78 (66,7%) больных, с ее рассечением — у 32 или путем холедохотомии в супрадуоденальном отделе — у 39 (33,3%). Лапароскопический подход к ОЖП был разработан нами первоначально транспузырным путем, из-за легкости закрытия протока, не прибегая к эндокорпоральным швам, что необходимо при его рассечении.

Исследуемую группу из 117 больных разделили на 4 подгруппы.
1-я подгруппа — 53 больных с осложненной ЖКБ, которым вначале выполняли ЛХЭ. Во время операции имела место миграция мелких конкрементов из желчного пузыря через широкий ПП в ОЖП или при ревизии выявляли расширенный более 1 см гепатохоледох с конкрементами.
Выполняли в 35 случаях чреспузырную эксплорацию ОЖП, а у 18 больных супрадуоденальную холедохолитотомию (СДХЛТ). Операцию заканчивали НДХ по Пиковскому — у 28, по Керу — у 10, клиппированием ПП — у 19 больных. Читать

Защита хостинга. Уязвимость в логах

Много лет назад, когда только начинал заниматься сайтами, обнаружил «брешь» в шеред хостинге. Надеюсь, хостинги больше не допускают подобные ошибки в настройке серверов, поэтому опишу метод.

Если хотите взломать чей-то сайт, то вам запрещено читать дальше! Эта статья — не пособие для взлома, а наблюдение за небезопасными хостингами! Читать

MikroTik RADIUS Server (User Manager) Installation

RADIUS Server is a centralized user authentication, authorization and accounting application. RADIUS authentication gives the ISP or network administrator ability to manage PPP users, login users and Hotspot users from one server throughout a large network. MikroTik RouterOS has a RADIUS client that is able to authenticate login users, Hotspot users and PPP users through a RADIUS server. MikroTik team also developed a totally separate RADIUS server package named User Manager that can be used to authenticate MikroTik users smoothly. But frankly speaking, MikroTik User Manager is not suitable for medium to large organizations because it is limited to customization. On the other hand, freeRADIUS is a modular RADIUS suite that can be customized according to organizational requirements but freeRADIUS has to be customized by yourself. In this article, I will only discuss about MikroTik User Manager RADIUS Server and how to install and configure MikroTik User Manager Package properly. For freeRADIUS installation and configuration, visit my another article about freeRADIUS installation and basic configuration on CentOS 7 Linux distribution.




RADIUS Server




RADIUS, short for Remote Authentication Dial-In User Service, is a client-server networking protocol that is used to manage (authentication, authorization and accounting) users who connect and use network services.  RADIUS server runs in the application layer and it can use either TCP or UDP as transport.  A lot of RADIUS server applications are found today but among these User Manager RADIUS Server developed by MikroTik is specially used for MikroTik user authentication and authorization purpose.




MikroTik User Manager RADIUS Server




User Manager is an optional and totally separate MikroTik RouterOS RADIUS Server Package that is used to manage MikroTik user authentication, authorization and accounting. ISP Company or network administrator can use User Manager as their login user authentication, PPP user authentication, and Hotspot user authentication as well as billing purpose. But before using User Manager RADIUS Server Package in your network, you should know the minimum system requirements of this package.




User Manager Package Requirements




User Manager RADIUS Server installation must have below minimum requirements.               




  • MikroTik RouterOS and User Manager Package must have the same version.
  • The MikroTik User Manager works on x86, MIPS, PowerPC and TILE processor based routers and CHR devices.
  • The router should have at least 32MB RAM and 2MB free HDD space.






How RouterOS Client and User Manager RADIUS Server Works




MikroTik User Manager works like a judge. It receives question from RADIUS client and must give answer. For example, when a user (say, bob) like below network diagram wants to connect to the network, the RouterOS RADIUS client first check its local user database and if it fails to authenticate from local database, it asks to User Manager RADIUS Server: “is user ‘bob’ is allowed to network?”




MikroTik RADIUS Server Network
MikroTik RADIUS Server Network




If user ‘bob’ is present in RADIUS server’s user database, it answers: “Yes but with profile limitation”. If user is not in RADIUS Server’s user database, the server replies with NO.




How to Install MikroTik User Manager RADIUS Server




User Manager is a MikroTik RouterOS Package. So, User Manager Package installation in your network can be divided into methods.




  • User Manager Package can be installed in your physical MikroTik RouterOS. Or,
  • User Manager Package can be installed in a Server Machine or in a PC where MikroTik RouterOS is running.




I always prefer the second method because User Manager will generate a lot of logs and a physical RouterOS machine has limited storage capacity as well as to handle multiple RouterOS request in a large network, a User Manager should have a stable and powerful physical machine.




Install User Manager Radius Server Package in a Physical MikroTik RouterOS




As User Manager is a separate RouterOS Package, it is usually not included with MikroTik Roterboard Operating System.  However, you can check your RouterOS whether it contains User Manager Package or not by visiting Winbox System > Packages menu. In this Package List window, you will find all the available packages that are installed in your RouterOS. If User Manager Package is installed, you will find a list named user-manager. If User Manager Package is not installed, follow the below steps to install User Manager Package in your RouterOS.




  • Login Mikrotik Router with Winbox Software.
  • From Winbox, go to System > Resources menu item and find Architecture Name and RouterOS Version from Resources window.




MikroTik Router Resources Window
MikroTik Router Resources Window




  • Go to MikroTik download section and select your MikroTik RouterOS version and download all packages zip file that will match with your Architecture Name (all_packages-architecture_name-routeros_version.zip).



  • Now extract downloaded zip file and you will find User Manager (user-manager-routeros_version-architecture_name.npk) file within this zip file.



  • Click on Files menu item from Winbox and drag and drop this user-manager file to File List window.



  • Now reboot your RouterOS.



  • User Manager Package will be installed at the time of next booting and user-manager package will be available in your Package List window.




    Install User Manager RADIUS Server Package in a Dedicated Server Machine or in a PC




    This is the best method to use User Manager RADIUS Server in a network. In this method, MikroTik RouterOS is installed on a dedicated server machine or on a personal Desktop Computer having only basic system package and user manager package installed.




    MikroTik RouterOS can be installed on a dedicated physical machine or on a virtual machine. If you use physical machine, download the latest MikroTik RouterOS ISO file from MikroTik download section and burn the ISO file on a DVD or on a USB drive and then boot your computer from this media. If you wish to install RouterOS on a virtual machine, just download the ISO file and attach the ISO file to CD/DVD drive and then boot your virtual machine. While booting your machine, MikroTik package selection window will appear. You will just select System Package and User Manager Package from this window and then start installation. Within a few seconds MikroTik RouterOS installation will be completed.




    If you feel confused to install MikroTik RouterOS ISO on your machine, read my article about Install MikroTik RouterOS on PC where I have described how to install MikroTik RouterOS on a PC and a video is also included. I hope your confusion will be reduced if you follow the article carefully.




    After completing RouterOS installation, login with user admin and password left blank and then run this command: ip address add address=radious_server_ip interface=ether1 to assign IP address to ether1 interface.




    Note: Put your RADIUS Server IP that you want to assign in the place of radious_server_ip such as 192.168.110.10/24




    Now open your favorite web browser and type https://radious_server_ip/userman. If everything is OK, you will find a login prompt like below image to login to your User Manager RADIUS Server.




    User Manager Login Screen
    User Manager Login Screen




    By default User Manager creates an owner customer named admin with no password. So, put admin as login and password left blank and then click on Lon in button. You will now find User Manger Dashboard where we will do our entire User Management activity.




    MikroTik User Manager Radius Server Package can easily be installed and configured if you follow above steps carefully. However, if you face any difficulty to do above steps properly, follow my video tutorial about MikroTk User Manager Radius Server installation and configuration. I hope, it will reduce your any confusion.