Stories
Slash Boxes
Comments

SoylentNews is people

Log In

Log In

Create Account  |  Retrieve Password


More DOS hacking

Posted by NCommander on Saturday September 03 2016, @04:38AM (#2050)
3 Comments
Code

Another day, another 500 miles, and another round of hacking. I'm dedicating an hour to this on and off over the weekend.

Right now, I've got an accurate int to hex function written in assembler for printing values of registers, an interrupt handler + installation, and some test code. Right now, I ran into a snag with calling the TSR function on int 21h, but I think its due to lack of sleep. Last few days has been very very stressful and I'm only picking at this as I go. I think I'm going to have to add a section to the next article talking about position-dependent vs. position-independent code as it will become important when we go to install into RAM.

Wish some of the documentation though on the specifics of how TSRs work internally survived; a lot say you have to use small memory model even though I have example code of tiny model TSRs.

Deep in the bowls of x86

Posted by NCommander on Friday September 02 2016, @02:31AM (#2047)
2 Comments
Code

Work has been going slow on the next installment of my retro-malware article. Right now, I've got an itoa function written in assembly, but real life has been kinda kicking my ass and I'm not making much headway in writing as I would like. As of right now, I know exactly what I need to write and code, but making the code flow.

Bleh. It doesn't help right now I'm travelling cross-country.

Working on Part 2 of real mode programming

Posted by NCommander on Thursday September 01 2016, @04:54AM (#2044)
4 Comments
Code

I'm absolutely stocked with the response the first bit of original content I've written for SN has gotten over 80 comments (even if a fair number are my own). It's very good motivation to keep going with it, and I've started working on outlining and planning the next section which I think will cover the following.

  • The Stack
  • SI/DS registers
  • Terminate and Stay Resident
  • (Maybe) DOS memory layout

I'm targetting ~2000 words in total, not counting the prelude section of the article. This will serve as a prelude to looking at the DOS memory map as a whole as well as get our first taste of how segmentation and relocation work under DOS since we will have to manage CS/DS/SS when we're in TSR mode. I'm currently writing out some demo code but its been fairly slow going since I got tripped up by the fact a pointer is 2 bytes (16-bit), and a lack of free time until this weekend. I'm hoping to have the code half of this cranked out by Friday to write up over the weekend.

I've decided for the time being to continue using NASM. While NASM is not a period specific assembler, its very easy to use, free software and has excellent documentation, and its the only assembler that can target x86_16 from Win64 and Linux64 that actually works. I wouldn't mind using the OpenWatcom assembler except its essentially undocumented. If I was going for period specific, I would need a 16-bit copy of LINK.EXE and MASM. Both are in the Windows DDK but extremely unfriendly to setup, or use Turbo Assembler and code in VirtualBox (pass; I like Notepad++ on Windows).

I've had some hangups on figuring out where to go beyond the basics of TSR programming. Unfortunately, non-IP based stuff appears to have dropped off the face of the internet. LANMAN client on Microsoft's FTP is completely MIA, and I can't find a freeware stack available anywhere that supports anything !TCP/IP. I could write something using Layer 2 protocols, but even then I'm kinda "eh" since that really doesn't go into the history of early networking or stuff. As best I can tell, at least for IPX, the actual Novell NetWare client was TSR, but its essentially non-existent. LANMAN in theory is free on Microsoft's FTP, but no developer documentation that I can find.

One idea I had though was perhaps reviving my ham radio stuff, and plugging the whole thing into AX.25. KA9Q for DOS is open source and implements KISS, and I can emulate another AX.25 host over the serial port (or go full turkey, and plug the other side into an actual radip using Linux as a glorified BNC). That would get me a period specific way of getting the data out of a target system in a targetting attack. (obviously, real NSA would use something beside amauter radio bands, but the concept exists. You could easily hide a micro-radio in a PC case wired up to an ISA slot or something, using the case itself as an antenna).

It's Time to Kill the $100 Bill

Posted by Papas Fritas on Tuesday February 23 2016, @12:14AM (#1780)
3 Comments
News
The NYT has an interesting editorial on why getting rid of big bills will make it harder for criminals to do business and make it easier for law enforcement to detect illicit activity. That’s why officials in Europe and elsewhere are proposing to end the printing of high-denomination bills. According to a recent paper from Harvard’s John F. Kennedy School of Government, a stack of 500-euro notes worth $1 million weighs just five pounds and can be carried in a small bag, whereas a pile of $20 bills worth $1 million would weigh 110 pounds and would be much more difficult to move around. Lawrence Summers, the former Treasury secretary and former adviser to President Obama, has argued that the United States should get rid of the $100 bill. "The fact that in certain circles the 500 euro note is known as the “Bin Laden” confirms the arguments against it," says Sanders. "Technology is obviating whatever need there may ever have been for high denomination notes in legal commerce."

Critics who oppose such changes say the big bills make it easier for people to keep their savings in cash, especially in countries with negative interest rates. Some people also prefer not to conduct transactions electronically because they fear security breaches. According to Sanders the idea of removing existing notes is a step too far but a moratorium on printing new high denomination notes would make the world a better place. "The United States stopped distributing $500, $1,000, $5,000 and $10,000 bills in 1969," concludes the NYT editorial. "There are now so many ways to pay for things, and eliminating big bills should create few problems."

America's Best Days May Be Behind Us

Posted by Papas Fritas on Saturday January 23 2016, @08:43PM (#1723)
0 Comments
News
Take a look back at a popular TV programs from the mid-1960s, say “The Dick Van Dyke Show,” and what do you see? Like today, middle-class Americans typically had washing machines and air-conditioning, telephones and cars. The Internet and video games were not yet invented but life, over all, did not look that different. Now flash back 50 years earlier to 1910 and less than half the population lived in cities, Model T’s were just starting to roll off the assembly line, most homes weren’t wired for electricity, and average life expectancy was only 53. Now Eduardo Porter writes in the NYT that although Americans like to think they live in an era of rapid and unprecedented change, the truth is that the most momentous changes of the 20th century arose between 1920 and 1970 and according to Robert J. Gordon, author of “The Rise and Fall of American Growth," despite the burst of progress of the Internet era, total factor productivity has risen in the last fifty years at only about one-third the pace of the previous five decades. “This book,” Gordon writes in the introduction, “ends by doubting that the standard of living of today’s youths will double that of their parents, unlike the standard of living of each previous generation of Americans back to the late 19th century.”

But that's not the worst part of the story. According to Gordon, the labor force will continue to decline, as aging baby boomers leave the work force and women’s labor supply plateaus and gains in education, an important driver of productivity that expanded sharply in the 20th century, will contribute little. Moreover, the growing concentration of income means that whatever the growth rate, most of the population will barely share in its fruits. Altogether, Professor Gordon argues, the disposable income of the bottom 99 percent of the population, which has expanded about 2 percent per year since the late 19th century, will expand over the next few decades at a rate little above zero. Gordon says that the explosion of innovation and prosperity from 1920 through 1970 was a one-time phenomenon. From now on, progress will continue at the more gradual pace of both the last 40 years and the period before 1920. "If you think about the productivity effects of the computer revolution, they started way back in the 1960s, with the first computer-produced telephone bills and bank statements and went on in the 1970s with airline reservation systems. In the early 80s there was the invention of the personal computer, the ATM cash machine and barcode scanning which greatly increased productivity in retail. And so much of the impact of computers in replacing human labor had already occurred at the time the internet was introduced in the late 1990s. And actually, depending on which part of the internet you are looking at, it was introduced before then. Most of us were doing email by the early 90s. Amazon was founded in 1994, so we’re 20 years now into the age of e-commerce," says Gordon. “There is plenty of room in my forecast for evolutionary change. What is lacking is sharp, discrete change.”

The War Against Noisy Leaf Blowers

Posted by Papas Fritas on Saturday January 16 2016, @11:32PM (#1718)
1 Comment
News
Perry Stein writes in the Washington Post that the fight against noisy leaf blowers is gaining momentum, in part, because residents are framing it as a public health issue. Two-stroke engine leaf blowers mix fuel with oil and don’t undergo a complete combustion, emitting a number of toxins, like carbon monoxide and nitrous oxide, which their operators inevitably inhale. Municipalities throughout the country have moved to ban them. “You find two-stroke engines in poorer countries because they’re cheap,” says James Fallows citing a 2004 National Institutes of Health study showing that two-stroke engines on two- and three-wheeled vehicles in Delhi, India, account for a significant amount of air pollution. “You don’t find them in richer countries because they’re so dirty and polluting.” In Washington DC leaf blowers can’t exceed 70 decibels as measured from 50 feet away. (A normal conversation is typically about 60 decibels.) Haskell Small, a composer and concert pianist who is helping to lead the leaf-blower battle in Wesley Heights, describes the sound as “piercing.” “When I try to compose or write a letter, there is no way for me to listen to my inner voice, and the leaf blower blanks out all the harmonic combinations."

But help is on the way. A new generation of leaf blowers is more environmentally friendly as the emergence of battery-powered leaf blowers takes us closer to the Holy Grail of equipment that is both (1) powerful and (2) quiet. Fallows supports the notion of a kind of trade-in program, where loud, old leaf blowers are exchanged for the less offensive kind. Ted Rueter, founder of Noise Free America, facilitated one such scheme. In the heat of his front lawn dispute with his neighbor, he offered a solution. “If you agree to use them, I will buy you two new leaf blowers,” Rueter told his neighbor. "The offer was accepted and the noise level in his front yard was restored to a peaceful level," says Lawrence Richards. "When it comes to the balancing act of protecting landscaping jobs while reducing noise and emissions, it helps that someone was willing to pay for progress."

OkCupid Adds Feature for Polyamorous Relationships

Posted by Papas Fritas on Sunday January 10 2016, @04:27PM (#1707)
0 Comments
News
Olga Khazan reports at The Atlantic that in response to a rapid uptick in the number of OkCupid users interested in non-monogamous relationships, the online-dating behemoth is adding a feature for polyamorous people allowing users who are listed as “seeing someone,” “married,” or “in an open relationship” on the platform to link their profiles and search for other people to join their relationship. "It's a very big deal and I'm delighted that OkCupid has gotten this far with it," says Anita Illig Wagner, founder of Practical Polyamory. "I hope other sites take it seriously and we find ourselves welcome in even more major websites."

According to the company’s data, 24 percent of its users are “seriously interested” in group sex and forty-two percent would consider dating someone already involved in an open or polyamorous relationship. “It seems that now people are more open to polyamory as a concept,” says Jimena Almendares, OkCupid’s chief product officer. Though specialized dating sites for polyamorous people exist, this appears to be the first instance of a mainstream online-dating platform allowing two users to search for sexual partners together, as a unit. Almendares says OkCupid is agnostic about the kinds of relationships people pursue on its platform—it’s simply following the numbers. “Finding your partner is very important. You should have the option to express specifically and exactly who you are and what you need.”

Study Finds Attractive Female Students Earn Higher Grades

Posted by Papas Fritas on Wednesday January 06 2016, @06:33PM (#1702)
4 Comments
News
Scott Jaschik writes at Inside Higher Education that although most faculty members would deny that physical appearance is a legitimate criterion in grading, a study finds that among similarly qualified female students, those who are physically attractive earn better grades than less attractive female students. For male students, there is no significant relationship between attractiveness and grades. The results hold true whether the faculty member is a man or a woman. The researchers obtained student identification photographs for students at at Metropolitan State University of Denver and had the attractiveness rated, on a scale of 1-10, of all the students. Then they examined 168,092 course grades awarded to the students, using factors such as ACT scores to control for student academic ability. For female students, an increase of one standard deviation in attractiveness was associated with a 0.024 increase in grade (on a 4.0 scale).

The results mirror a similar study that found that those who are attractive in high school are more likely to go on to earn a four-year college degree. Hernández-Julián says that he found the results of the Metro State study “troubling” and says that there are two possible explanations: “Is it that professors invest more time and energy into the better-looking students, helping them learn more and earn the higher grades? Or do professors simply reward the appearance with higher grades given identical performance? The likely answer, given our growing understanding of the prevalence of implicit biases, is that professors make small adjustments on both of these margins."

The Dirty Truth About 'Clean Diesel'

Posted by Papas Fritas on Monday January 04 2016, @04:26AM (#1695)
2 Comments
News
Volkswagen persuaded consumers it had created a new generation of so-called clean diesel cars — until investigators discovered that phony testing concealed the fact that its vehicles emitted up to 40 times the permitted levels of pollutants during regular use. Now Taras Grescoe writes in the NY Times that the public outrage over the fraud obscures the much larger issue that 'clean diesel' is causing a precipitous decline in air quality for millions of city-dwellers. Monitoring sites in European cities like London, Stuttgart, Munich, Paris, Milan and Rome have reported high levels of the nitrogen oxides and particulate matter, or soot, that help to create menacing smogs. Although automakers worked hard to convince consumers that a new generation of “clean diesel” cars were far less polluting, diesel has a fatal flaw. It tends to burn dirty, particularly at low speeds and temperatures. In cities, where so much driving is stop and start, incomplete diesel combustion produces pollution that is devastating for human health.

Fortunately, Volkswagen sold only half a million of its “clean diesel” cars to the American public before the emissions scandal broke. Today, fewer than 1 percent of the passenger vehicles sold in the United States run on diesel fuel. Europe is now scrambling to undo the damage. In London, Mayor Boris Johnson last year called for a national program to pay some drivers to scrap their diesel vehicles. In Paris, Mayor Anne Hidalgo has gained broad support for a proposed ban on diesel cars. "Last month, the signatories of the climate deal in Paris agreed that the world has to begin a long-term shift from fossil fuels to more sustainable forms of energy," concludes Grescoe. "Recognizing “clean diesel” for the oxymoron it is would be a good place to start."

Copyright Expires on Adolf Hitler's Mein Kampf

Posted by Papas Fritas on Friday January 01 2016, @04:04PM (#1691)
1 Comment
News
Adolf Hitler's Nazi manifesto Mein Kampf was originally printed in 1925 - eight years before Hitler came to power. After Nazi Germany was defeated in 1945, the Allied forces handed the copyright to the book to the state of Bavaria who refused to allow the book to be reprinted to prevent incitement of hatred. Now BBC reports that under European copyright law, the rights of an author of a literary or artistic work runs for the life of the author and for 70 years after his death - in Hitler's case on 30 April 1945, when he shot himself in his bunker in Berlin, so for the first time in 70 years, Mein Kampf will be available to buy in Germany.

Authorizing the book’s release into the public domain has been a tortuous process. In 2012 it was agreed, after much consultation between Bavarian authorities and representatives of Jewish and Roma communities, that a scholarly edition should be planned in an attempt to demystify the book. Munich's Institute of Contemporary History willpublish the new edition with thousands of academic notes, will aim to show that Mein Kampf (My Struggle) is incoherent and badly written, rather than powerful or seductive. From the original book’s 1,000 pages, the publisher has produced a two-volume book that is twice as long as the original, with 3,700 annotations. Christian Hartmann, one of the team of five historians who spent several years working on the academic edition, described his relief at being able to analyse the text, even if he felt in need of regularly airing his tiny Munich office in order to cope with the task. “It is a real feeling of triumph, to be able to pick over this rubbish and then to debunk it bit by bit."