Author Archive
Microsoft vs. No-IP and the failure of the US legal system
There is one thing that really troubled me about the Microsoft dynamic DNS fiasco that no one seems to talk about, which I really wanted to raise, but first here’s a short recap for those not in the know: Microsoft “cyber-security” department convinced a US federal court to issue an order to transfer 22 internet domains owned by the popular No-IP dynamic DNS service into their custody, in an attempt to remove specific hosts under those domains that are supposedly used as malware control centers.
The issue I have is very simple – under what conditions can it be possible for a private company, to ask a court to transfer ownership of a property from another private company? This sounds seriously like private policing and somehow it is endorsed by the judicial system ?!? Under what authority can something like this be allowed?
This situation is massively more grievous because the court order was given “ex-parte” – legalese for “without the other party appearing to defend itself”, but even if everything was over the table and in the clear, and the defending lawyer incredibly incompetent, what kind of argument a private entity can offer to get a court to simply transfer control of another private entity?1.
Related articles
- Microsoft Cybercrime Shutdown Hit Users Says DDNS Provider(techweekeurope.co.uk)
- No-IP regains control of some domains wrested by Microsoft(pcworld.com)
- Microsoft’s “draconian” No-IP takedown hits millions(pcpro.co.uk)
- Millions of dynamic DNS users suffer after Microsoft seizes No-IP domains(arstechnica.com)
- except obviously arguing that the property was stolen, which is clearly not the case [↩]
Code Spaces break-in lessons: using your infrastructure provider for backup is a single point of failure
Summary of the events of the Code Space break-in: Code Spaces was hosting their services on Amazon Web Services VPS infrastructure. An attacker managed to gain access to their AWS administration console account and after his demands for ransom were not answered, proceeded to delete all the data in the account.
The disaster recovery plan for Code Spaces was based on having machine images and data backups stored in AWS, everything was gone, and Code Spaces basically had to shutdown.
Why I hate 4K displays
Well, I don’t have very high resolution displays at all (you might call them UHD displays?), but the name “4K” is really stupid – so please stop using it.
What is it 4000 of anyway? Can anyone tell me? Hint – no it doesn’t have 4000 pixels, nor 4000 scan lines or 4000 anything or event anything else that is divisible by 4000. Although the horizontal resolution is almost 4000 (actuallly 3840 pixels wide), and while Wikipedia will have you believe that is the reason for the name, it is not so.
No, the reason is so much stupider than that: the name “4K” is because “4K displays” are 4 times larger (in pixel count) than 1080p displays (1080 being about 1K). This is so stupid, because while UHD displays do indeed have 4 times the pixels of a 1080p (“1K”) display, the 1080 in the number does not relate to the number of pixels – it is the number of scan lines in the picture – of which a UHD display has only twice as much. But “2K” just doesn’t have the right ring to it… so, the branding masters made do with what they have. Sooooo stupid…
What to do when your virtual private server is really slow
Ok, this is not a real solution for all types of problems – just a tip, that worked for me today, to try out if you can’t figure out what the problem is.
I’m running a VM on Amazon EC2, and looking at top
, I saw that most of the CPU time was spent either in “steal/guest
” or “IRQ
“. Now steal/guest
is kernel speak for “I wanted to allocate some CPU time for progams, but the hypervisor stole it” – which is not surprising on a a virtualization solution, but if it happens all the time then that means that your physical host is constantly loaded by other VMs that take as much CPU time as they can. The second item “IRQ
” is time the kernel spends at handling interrupt requests from the hardware. This shouldn’t consume a significant amount of time unless the hardware has a problem – another good indication that you want to move your VPS to another physical host.
Script Day: Upload Files to Amazon S3 Using Bash
Here is a very simple Bash script that uploads a file to Amazon’s S3. I’ve looked for a simple explanation on how to do that without perl scripts or C# code, and could find none. So after a bit of experimentation and some reverse engineering, here’s the simple sample code:
Script Day: SSH to a host behind a NAT
I use SSH daily to work with different remote services, and its always a very straight-forward process… unless the remote server you want to work with is on LAN somewhere behind NAT1. When you need to access such an internal server, the only option is to SSH into the firewall2, and then SSH again to your server of choice.
But there’s a better way, and you don’t even have to fiddle with the firewall server!
(this is not actually a script, though minimal text editing is required)
The solution is actually quite simple: set up an alias in your .ssh/config
file that you can use to call the remote server when you are outside the LAN (if you are inside the LAN its better to access it directly), and for that alias we will set up a ProxyCommand
that will tell SSH to first access the firewall server and open a tunnel to the target LAN server.
It looks like this:
Host remote-alias
ProxyCommand ssh firewall-user@firewally-server nc lan-server 22
This set up works best if your access to the firewall-user
account is without password or passphrase (using an SSH private key that is either without passphrase or already loaded in the agent), then the login is as streamlines as a direct access – but the worst is that you’d need to type in two passwords.
Related articles
- SSH Keys(wiki.archlinux.org)
- Simplify Your Life With an SSH Config File : Nerderati(nerderati.com)
- LKP’s Blog – Day 9 – How to SSH tunnel!(forum.codecall.net)
- SSH Password less Login(paulmellors.net)
- router that does Network Address Translation so the servers address is not accessible from outside the LAN [↩]
- or some other server that has legs both inside and outside the LAN – I’m using a DNATed server, what most off-the-shelf routers incorrectly call “DMZ“ [↩]
ifttt is a new service that lets you connect internet services one to another
For example, when I post to my blog, it will automatically tweet my post on my behalf – on my twitter account (automagically). Is it awesome or not?
BTW – “tweet” or “twit”? How does one “operate” in twitter?
הקלות הבלתי נסבלת של מספר ת”ז באינטרנט
באופן מעצבן יותר ויותר (ככל שהפילוט של המאגר הביומטרי נמשך ומאיים להביא עלינו אסון), כל מיני אתרי אינטרנט טריוויאלים לחלוטין דורשים מאיתנו האזרחים לספק להם את הזיהוי היחודי שלנו במאגר (הביומטרי וגם זה שלא) של הממשלה (הווה אומר “מספר תעודת הזהות”).
אני לא בטוח בכלל מה הזכות של חברות מסחריות אקראיות לדרוש מאיתנו את הפרט הזה, אבל אני די בטוח שאני לא חייב לספק אותו, וזה ממש מעצבן שהם דורשים את הזהות שלי כתנאי למכירה של כרטיס קולנוע, או שאר דברים טריוויאלים.
בגלל שאני בטוח שגם אותכן זה מעצבן, ובגלל שאני חושב שכל הפרקטיקה מטופשת (אפילו אם היא חוקית, ויש חשד קל שהיא לא), הנה לשרותכם – מחשב מספרי תעודות זהות ישראלית:
לשם הנוחות העמוד הנ”ל ידידותי לטלפונים חכמים והכתובת הישירה אליו היא: https://geek.co.il/articles/israeli-id.html
עוד נקודה: הוצע לי ששימוש במספר ת”ז לא שלכן באתר של ספק שרות זה עבירה על החוק – סוג של גניבת זהות. אני לא חושב שזה המצב – ואני אשמח לדעתכן בנושא, אבל לשם הזהירות:
- אין בבנית התוכנה הנ”ל משום המלצה להציג מספרי זהות שאינם שלכם לספקי שרות ואחרים. אם אתם בוחרים לעשות זאת זה על אחריותכם בלבד.
- אם אתם בכל זאת בוחרים להציג מספרי זהות כך, אני ממליץ לבחור מספרים שלא סביר שנמצאים בשימוש, כמו מספרים שמתחילים בשלוש פעמים אפס או שלוש פעמים תשע